Home » date » 2009 » Dec » 04 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 04 Dec 2009 03:28:02 -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/04/t1259922624eli1c3u3c4ca528.htm/, Retrieved Fri, 04 Dec 2009 11:30:26 +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/04/t1259922624eli1c3u3c4ca528.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 «
462 455 461 461 463 462 456 455 456 472 472 471 465 459 465 468 467 463 460 462 461 476 476 471 453 443 442 444 438 427 424 416 406 431 434 418 412 404 409 412 406 398 397 385 390 413 413 401 397 397 409 419 424 428 430 424 433 456 459 446
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9359777.250
20.8520666.60010
30.7996466.1940
40.7742885.99760
50.7589765.8790
60.7212065.58640
70.6461325.00493e-06
80.5500924.2613.6e-05
90.4701323.64160.000283
100.4173443.23270.000997
110.4015683.11050.001428
120.3631492.81290.003313
130.2547841.97350.026522
140.1458051.12940.131612
150.0679510.52630.300295
160.0173480.13440.446778
17-0.016106-0.12480.450566
18-0.058613-0.4540.325728
19-0.12403-0.96070.170271
20-0.208225-1.61290.056007
21-0.268956-2.08330.020745
22-0.302886-2.34610.011145
23-0.311426-2.41230.009463
24-0.336165-2.60390.0058
25-0.394857-3.05850.001661
26-0.445895-3.45390.00051
27-0.464463-3.59770.000325
28-0.460553-3.56740.000358
29-0.440402-3.41130.000581
30-0.419206-3.24720.000955
31-0.412944-3.19870.001103
32-0.416555-3.22660.001015
33-0.39446-3.05550.001675
34-0.364271-2.82160.003235
35-0.330425-2.55950.006511
36-0.303192-2.34850.011081
37-0.299563-2.32040.011868
38-0.294937-2.28460.012945
39-0.280159-2.17010.016984
40-0.254479-1.97120.02666
41-0.221593-1.71640.04562
42-0.188573-1.46070.07466
43-0.168018-1.30150.099038
44-0.148544-1.15060.127228
45-0.122749-0.95080.172758
46-0.101149-0.78350.218209
47-0.077965-0.60390.274088
48-0.054532-0.42240.33712
49-0.041139-0.31870.375545
50-0.029881-0.23150.408874
51-0.018055-0.13990.444622
52-0.004428-0.03430.486376
530.0071090.05510.478134
540.0143970.11150.455788
550.016560.12830.449181
560.0208380.16140.436156
570.0237260.18380.427404
580.0156020.12090.452106
590.0046940.03640.485558
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9359777.250
2-0.193531-1.49910.069548
30.2424761.87820.032607
40.108790.84270.201377
50.0768440.59520.276964
6-0.151818-1.1760.122125
7-0.234042-1.81290.037426
8-0.213774-1.65590.051483
9-0.036167-0.28010.390165
10-0.003349-0.02590.489694
110.2738372.12110.019026
12-0.1811-1.40280.082916
13-0.425171-3.29340.000832
140.0846820.65590.257184
15-0.028948-0.22420.411669
16-0.051981-0.40260.344322
170.04740.36720.357396
180.0172860.13390.446968
190.0484040.37490.354514
20-0.158285-1.22610.112481
210.0931920.72190.236592
22-0.11994-0.9290.178293
23-0.096207-0.74520.229526
240.0088270.06840.472857
250.0269690.20890.417617
26-0.00044-0.00340.498645
270.1435691.11210.13527
28-0.035565-0.27550.391946
290.0947460.73390.232935
300.0053170.04120.483643
310.0870670.67440.251317
32-0.01072-0.0830.46705
330.0671410.52010.302463
34-0.206214-1.59730.057723
35-0.06715-0.52010.30244
360.0130730.10130.459839
37-0.07277-0.56370.287538
38-0.120512-0.93350.177156
39-0.070117-0.54310.294529
40-0.000221-0.00170.49932
410.0292270.22640.410833
42-0.014722-0.1140.454796
430.1486881.15170.127
440.0254650.19720.422149
45-0.13175-1.02050.155788
460.0415950.32220.374212
470.0038660.02990.488104
48-0.081364-0.63020.265463
490.0310140.24020.405485
50-0.043622-0.33790.368312
510.0352720.27320.392812
52-0.091471-0.70850.240679
530.0151240.11720.453566
54-0.053075-0.41110.341226
55-0.053582-0.4150.339795
560.0510770.39560.346887
570.076370.59160.278184
58-0.04107-0.31810.375747
590.0016630.01290.494881
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922624eli1c3u3c4ca528/1e82n1259922480.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922624eli1c3u3c4ca528/1e82n1259922480.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922624eli1c3u3c4ca528/23uz81259922480.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259922624eli1c3u3c4ca528/23uz81259922480.ps (open in new window)


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