Home » date » 2007 » Dec » 01 » attachments

paper auto 3

R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 01 Dec 2007 05:16:26 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2007/Dec/01/t11965107317llta8ceqm73rkm.htm/, Retrieved Sat, 01 Dec 2007 13:05:34 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
88,8 93,4 92,6 90,7 81,6 84,1 88,1 85,3 82,9 84,8 71,2 68,9 94,3 97,6 85,6 91,9 75,8 79,8 99 88,5 86,7 97,9 94,3 72,9 91,8 93,2 86,5 98,9 77,2 79,4 90,4 81,4 85,8 103,6 73,6 75,7 99,2 88,7 94,6 98,7 84,2 87,7 103,3 88,2 93,4 106,3 73,1 78,6 101,6 101,4 98,5 99 89,5 83,5 97,4 87,8 90,4 97,1 79,4 85
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
017.7460
10.0378650.29330.385153
2-0.255508-1.97920.973804
30.2696742.08890.020484
4-0.217732-1.68650.951558
5-0.014381-0.11140.544161
60.5651564.37772.4e-05
7-0.056108-0.43460.667299
8-0.223125-1.72830.955463
90.1817981.40820.082117
10-0.362642-2.8090.996651
11-0.06892-0.53390.702292
120.5402884.18514.7e-05
13-0.141091-1.09290.860593
14-0.203485-1.57620.939879
150.1475181.14270.128858
16-0.254922-1.97460.973541
17-0.061915-0.47960.683369
180.3598212.78720.003555
19-0.095492-0.73970.768811
20-0.055854-0.43260.666589
210.0981140.760.225118
22-0.303252-2.3490.988932
230.0651150.50440.30792
240.3649352.82680.00319
25-0.117816-0.91260.817448
26-0.093339-0.7230.763756
270.0913450.70760.24098
28-0.215594-1.670.949934
29-0.025086-0.19430.576709
300.2365881.83260.035913
31-0.093304-0.72270.763673
32-0.060176-0.46610.678591
33-0.066402-0.51430.695551
34-0.253006-1.95980.972664
350.0002510.00190.499228


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
00.0378650.29330.385153
1-0.257311-1.99310.974599
20.3127032.42220.009232
3-0.396611-3.07210.998403
40.3539362.74160.004023
50.3034332.35040.01103
6-0.015949-0.12350.548954
7-0.094627-0.7330.766786
80.0121240.09390.462747
9-0.41621-3.22390.998977
100.2406361.8640.033611
110.0538090.41680.339154
120.0073670.05710.477343
13-0.07154-0.55410.709231
140.0085440.06620.473727
150.0542730.42040.337848
16-0.044763-0.34670.634997
17-0.090331-0.69970.756592
180.1021850.79150.215879
190.0688130.5330.297992
20-0.146025-1.13110.868743
210.0721820.55910.289082
220.0815890.6320.264899
230.0592370.45880.324002
24-0.044729-0.34650.634898
25-0.113586-0.87980.808769
260.0543340.42090.337677
27-0.037503-0.29050.61378
28-0.131139-1.01580.843097
290.074690.57850.282531
30-0.039131-0.30310.618571
31-0.079567-0.61630.729994
32-0.136131-1.05450.852052
330.0620960.4810.316135
34-0.172285-1.33450.906461
350.0993830.76980.222213
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t11965107317llta8ceqm73rkm/1kfqa1196511384.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t11965107317llta8ceqm73rkm/1kfqa1196511384.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t11965107317llta8ceqm73rkm/22pdm1196511384.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2007/Dec/01/t11965107317llta8ceqm73rkm/22pdm1196511384.ps (open in new window)


 
Parameters:
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ;
 
R code (references can be found in the software module):
if (par1 == 'Default') {
par1 = 10*log10(length(x))
} else {
par1 <- as.numeric(par1)
}
par2 <- as.numeric(par2)
par3 <- as.numeric(par3)
par4 <- as.numeric(par4)
par5 <- as.numeric(par5)
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x,par1,main='Autocorrelation',xlab='lags',ylab='ACF')
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
dev.off()
(myacf <- c(racf$acf))
(mypacf <- c(rpacf$acf))
lengthx <- length(x)
sqrtn <- sqrt(lengthx)
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','ACF(k)','click here for more information about the Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(myacf[i],6))
mytstat <- myacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Partial Autocorrelation Function',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Time lag k',header=TRUE)
a<-table.element(a,hyperlink('http://www.xycoon.com/basics.htm','PACF(k)','click here for more information about the Partial Autocorrelation Function'),header=TRUE)
a<-table.element(a,'T-STAT',header=TRUE)
a<-table.element(a,'P-value',header=TRUE)
a<-table.row.end(a)
for (i in 1:par1) {
a<-table.row.start(a)
a<-table.element(a,i-1,header=TRUE)
a<-table.element(a,round(mypacf[i],6))
mytstat <- mypacf[i]*sqrtn
a<-table.element(a,round(mytstat,4))
a<-table.element(a,round(1-pt(mytstat,lengthx),6))
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
 





Copyright

Creative Commons License

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 License.

Software written by Ed van Stee & Patrick Wessa


Disclaimer

Information provided on this web site is provided "AS IS" without warranty of any kind, either express or implied, including, without limitation, warranties of merchantability, fitness for a particular purpose, and noninfringement. We use reasonable efforts to include accurate and timely information and periodically update the information, and software without notice. However, we make no warranties or representations as to the accuracy or completeness of such information (or software), and we assume no liability or responsibility for errors or omissions in the content of this web site, or any software bugs in online applications. Your use of this web site is AT YOUR OWN RISK. Under no circumstances and under no legal theory shall we be liable to you or any other person for any direct, indirect, special, incidental, exemplary, or consequential damages arising from your access to, or use of, this web site.


Privacy Policy

We may request personal information to be submitted to our servers in order to be able to:

We NEVER allow other companies to directly offer registered users information about their products and services. Banner references and hyperlinks of third parties NEVER contain any personal data of the visitor.

We do NOT sell, nor transmit by any means, personal information, nor statistical data series uploaded by you to third parties.

We carefully protect your data from loss, misuse, alteration, and destruction. However, at any time, and under any circumstance you are solely responsible for managing your passwords, and keeping them secret.

We store a unique ANONYMOUS USER ID in the form of a small 'Cookie' on your computer. This allows us to track your progress when using this website which is necessary to create state-dependent features. The cookie is used for NO OTHER PURPOSE. At any time you may opt to disallow cookies from this website - this will not affect other features of this website.

We examine cookies that are used by third-parties (banner and online ads) very closely: abuse from third-parties automatically results in termination of the advertising contract without refund. We have very good reason to believe that the cookies that are produced by third parties (banner ads) do NOT cause any privacy or security risk.

FreeStatistics.org is safe. There is no need to download any software to use the applications and services contained in this website. Hence, your system's security is not compromised by their use, and your personal data - other than data you submit in the account application form, and the user-agent information that is transmitted by your browser - is never transmitted to our servers.

As a general rule, we do not log on-line behavior of individuals (other than normal logging of webserver 'hits'). However, in cases of abuse, hacking, unauthorized access, Denial of Service attacks, illegal copying, hotlinking, non-compliance with international webstandards (such as robots.txt), or any other harmful behavior, our system engineers are empowered to log, track, identify, publish, and ban misbehaving individuals - even if this leads to ban entire blocks of IP addresses, or disclosing user's identity.


FreeStatistics.org is powered by