Home » date » 2009 » Dec » 27 »

Toon Nauwelaerts

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 27 Dec 2009 05:19:39 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z.htm/, Retrieved Sun, 27 Dec 2009 13:20:21 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7.3 7.1 7.1 6.8 6.5 6.3 6.1 6.1 6.3 6.3 6 6.2 6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.006018-0.05480.478203
2-0.092802-0.84550.200141
3-0.386396-3.52020.000352
4-0.318172-2.89870.002396
50.0797240.72630.234843
60.1596131.45410.074839
70.1511641.37720.086082
80.0640650.58370.280515
90.0405230.36920.356466
10-0.138079-1.2580.105967
110.0622930.56750.285947
12-0.214808-1.9570.026855
130.0555040.50570.307217
140.0360540.32850.371694
150.0739510.67370.251179
160.052280.47630.317558
17-0.15831-1.44230.076494
180.1292111.17720.121246
19-0.11627-1.05930.146276
200.1364131.24280.108724
21-0.065362-0.59550.276572
22-0.040582-0.36970.356267
230.0361940.32970.371212
24-0.052356-0.4770.317313
250.0636660.580.281735
260.0681760.62110.268113
27-0.000156-0.00140.499434
28-0.06242-0.56870.285557
29-0.026236-0.2390.405838
30-0.21479-1.95680.026865
310.0569210.51860.302718
320.1160681.05740.146692
330.1828921.66620.049719
340.1245641.13480.129856
35-0.133772-1.21870.113202
36-0.149741-1.36420.088095
37-0.220767-2.01130.02377
380.1117541.01810.155788
390.0639540.58270.280854
400.1017990.92740.178195
410.1162081.05870.146402
42-0.072817-0.66340.254457
43-0.00615-0.0560.477725
44-0.164272-1.49660.069146
450.007120.06490.474217
460.0260940.23770.406339
470.1031320.93960.17508
48-0.053643-0.48870.313167
490.048020.43750.331449
50-0.090147-0.82130.20692
510.0420.38260.351483
520.0314690.28670.387528
53-0.016173-0.14730.441609
540.0304340.27730.391133
55-0.071286-0.64940.258923
560.0696760.63480.26366
57-0.027689-0.25230.400734
584.7e-054e-040.499828
59-0.013124-0.11960.452559
60-0.011674-0.10640.457778


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.006018-0.05480.478203
2-0.092841-0.84580.200041
3-0.390948-3.56170.000307
4-0.411924-3.75280.000162
5-0.111294-1.01390.15678
6-0.119776-1.09120.139169
7-0.190554-1.7360.043135
8-0.105617-0.96220.169369
90.104640.95330.171598
10-0.065729-0.59880.275463
110.1620471.47630.071821
12-0.112306-1.02320.154604
130.06780.61770.269236
140.0473920.43180.333516
150.0402490.36670.357392
16-0.042098-0.38350.351155
17-0.179255-1.63310.053119
180.189651.72780.043872
19-0.125131-1.140.128783
200.0519560.47330.318607
21-0.014919-0.13590.446106
22-0.030485-0.27770.390955
230.1298481.1830.120099
24-0.111774-1.01830.155746
250.0693460.63180.264635
260.1200281.09350.138668
270.0421020.38360.351141
280.0489170.44570.328503
29-0.101272-0.92260.179438
30-0.11426-1.0410.15046
31-0.204592-1.86390.032934
320.0132990.12120.451928
330.0104060.09480.46235
34-0.028868-0.2630.3966
350.1617091.47320.072235
36-0.01434-0.13060.448186
37-0.012759-0.11620.453872
380.1425881.2990.098763
39-0.019155-0.17450.430945
40-0.095768-0.87250.19273
410.0530720.48350.315004
42-0.012668-0.11540.454198
43-0.054023-0.49220.311948
44-0.171717-1.56440.060762
450.1424671.29790.098952
46-0.022476-0.20480.419127
470.0327340.29820.383141
48-0.049911-0.45470.325252
490.0057650.05250.479118
500.0790890.72050.236609
510.0226850.20670.418388
52-0.061148-0.55710.289484
530.0569340.51870.302677
54-0.035498-0.32340.373601
550.0824680.75130.227294
56-0.037066-0.33770.368227
570.0405640.36960.356327
58-0.026539-0.24180.404774
590.0256990.23410.407732
600.0109070.09940.460542
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z/1dypw1261916375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z/1dypw1261916375.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z/2xzuu1261916375.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/27/t126191641965cost4iuf4xk6z/2xzuu1261916375.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 2 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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 (par6 == 'White Noise') par6 <- 'white' else par6 <- 'ma'
par7 <- as.numeric(par7)
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='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
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 2:(par1+1)) {
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(abs(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,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(abs(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:

  • personalize online software applications according to your needs
  • enforce strict security rules with respect to the data that you upload (e.g. statistical data)
  • manage user sessions of online applications
  • alert you about important changes or upgrades in resources or applications

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