Home » date » 2009 » Dec » 12 »

autocorrelation

*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: Sat, 12 Dec 2009 06:36:00 -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/12/t1260625033ejqxlyl9mqjvbqz.htm/, Retrieved Sat, 12 Dec 2009 14:37:15 +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/12/t1260625033ejqxlyl9mqjvbqz.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 «
593530 610763 612613 611324 594167 595454 590865 589379 584428 573100 567456 569028 620735 628884 628232 612117 595404 597141 593408 590072 579799 574205 572775 572942 619567 625809 619916 587625 565742 557274 560576 548854 531673 525919 511038 498662 555362 564591 541657 527070 509846 514258 516922 507561 492622 490243 469357 477580 528379 533590 517945 506174 501866 516141 528222 532638 536322 536535 523597 536214 586570
 
Output produced by software:


Summary of computational 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
10.2201731.70550.046641
2-0.222616-1.72440.044894
3-0.262838-2.03590.023089
4-0.181764-1.40790.082155
50.0815470.63170.265004
60.2184721.69230.047891
70.080470.62330.267719
8-0.226669-1.75580.042116
9-0.263116-2.03810.022978
10-0.209417-1.62210.055009
110.287682.22840.014808
120.730145.65560
130.0957840.74190.230509
14-0.226375-1.75350.042312
15-0.233897-1.81180.037514
16-0.177837-1.37750.086735
170.0446020.34550.365469
180.1341411.0390.151475
190.0233510.18090.428536
20-0.232716-1.80260.038236
21-0.240087-1.85970.033916
22-0.163883-1.26940.104595
230.2360421.82840.036233
240.4977533.85560.000142
250.0165880.12850.449096
26-0.199679-1.54670.063596
27-0.17113-1.32560.095004
28-0.119586-0.92630.178998
290.0431650.33440.369639
300.0749360.58040.281893
310.0010850.00840.496662
32-0.191374-1.48240.071736
33-0.17799-1.37870.086553
34-0.067865-0.52570.300525
350.1695391.31320.09705
360.290062.24680.014172
37-0.004493-0.03480.486176
38-0.092735-0.71830.237673
39-0.100969-0.78210.218616
40-0.027524-0.21320.415947
410.0343950.26640.395412
420.0447930.3470.364916
430.0042850.03320.486816
44-0.093231-0.72220.236499
45-0.077837-0.60290.274416
46-0.011318-0.08770.465217
470.0987420.76490.223678
480.1369921.06110.146441
49-0.018841-0.14590.44223
50-0.039544-0.30630.380215
51-0.036402-0.2820.389468
52-4e-0600.499987
530.0032560.02520.489982
540.0047250.03660.485462
55-0.003167-0.02450.490254
56-0.043885-0.33990.367546
57-0.01259-0.09750.461319
580.0157060.12170.451789
590.0429590.33280.370239
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2201731.70550.046641
2-0.284904-2.20690.015581
3-0.15685-1.2150.114572
4-0.162016-1.2550.107177
50.0675690.52340.301315
60.0854240.66170.255352
7-0.013463-0.10430.458647
8-0.21263-1.6470.052391
9-0.119785-0.92790.178601
10-0.226946-1.75790.041931
110.2927472.26760.013484
120.6056024.6918e-06
13-0.146714-1.13640.130145
140.0063690.04930.480407
150.0235760.18260.427857
16-0.113897-0.88220.190583
17-0.088853-0.68830.246972
18-0.20925-1.62080.055148
19-0.049231-0.38130.352149
20-0.021852-0.16930.433078
21-0.011949-0.09260.463282
22-0.031729-0.24580.403349
23-0.162685-1.26020.106246
24-0.046898-0.36330.358841
25-0.030329-0.23490.407531
26-0.079172-0.61330.27101
270.0399870.30970.378917
280.0257720.19960.421223
290.0536130.41530.339708
30-0.041093-0.31830.37568
31-0.006143-0.04760.481104
32-0.007151-0.05540.478005
33-0.024299-0.18820.42567
340.0645110.49970.309557
35-0.127028-0.9840.164544
36-0.148193-1.14790.127783
370.0562420.43560.332327
380.052080.40340.344042
39-0.066966-0.51870.302933
400.0477770.37010.356315
41-0.039771-0.30810.379549
420.0502550.38930.349227
43-0.008133-0.0630.474987
440.0690660.5350.29732
450.0209540.16230.435805
46-0.008475-0.06560.47394
470.0391190.3030.381462
48-0.06034-0.46740.320956
49-0.112085-0.86820.194371
50-0.029321-0.22710.41055
51-0.058939-0.45650.324826
52-0.084602-0.65530.257383
53-0.056502-0.43770.331601
54-0.007023-0.05440.478399
55-0.047234-0.36590.357874
56-0.053147-0.41170.341022
570.0108930.08440.466518
58-0.002678-0.02070.491759
590.0476410.3690.356703
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260625033ejqxlyl9mqjvbqz/11v0p1260624959.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260625033ejqxlyl9mqjvbqz/11v0p1260624959.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/12/t1260625033ejqxlyl9mqjvbqz/23z3p1260624959.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260625033ejqxlyl9mqjvbqz/23z3p1260624959.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; 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