Home » date » 2010 » Dec » 28 »

*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: Tue, 28 Dec 2010 08:43:45 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05.htm/, Retrieved Tue, 28 Dec 2010 09:41:31 +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/2010/Dec/28/t1293525688k3p5ocpb1r6bz05.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
547.344 554.788 562.325 560.854 555.332 543.599 536.662 542.722 593.530 610.763 612.613 611.324 594.167 595.454 590.865 589.379 584.428 573.100 567.456 569.028 620.735 628.884 628.232 612.117 595.404 597.141 593.408 590.072 579.799 574.205 572.775 572.942 619.567 625.809 619.916 587.625 565.742 557.274 560.576 548.854 531.673 525.919 511.038 498.662 555.362 564.591 541.657 527.070 509.846 514.258 516.922 507.561 492.622 490.243 469.357 477.580 528.379 533.590 517.945 506.174 501.866 516.141 528.222 532.638 536.322 536.535 523.597 536.214 586.570 596.594 580.523 564.478 557.560 575.093 580.112 574.761 563.250 551.531 537.034 544.686 600.991 604.378 586.111 563.668 548.604
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time11 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2145481.82050.036419
20.2852782.42070.009008
30.2905692.46560.008032
40.1895131.60810.056098
50.1290051.09460.138661
60.1639721.39130.084202
70.0804760.68290.248442
80.1290221.09480.13863
90.0739720.62770.266102
10-0.096887-0.82210.206864
110.1685651.43030.078475
12-0.151243-1.28330.101744
13-0.120669-1.02390.154652
140.0546730.46390.322055
15-0.069197-0.58720.279468
16-0.09923-0.8420.201289
17-0.040712-0.34540.365382
18-0.092236-0.78270.218199
19-0.029699-0.2520.400877
20-0.07502-0.63660.263213
21-0.202263-1.71630.045208
22-0.064647-0.54860.292505
23-0.113136-0.960.170136
24-0.247171-2.09730.019739
25-0.072659-0.61650.269743
26-0.188656-1.60080.0569
27-0.235501-1.99830.024731
28-0.180769-1.53390.064721
29-0.093536-0.79370.214996
30-0.129269-1.09690.138174
31-0.005635-0.04780.480998
32-0.096252-0.81670.20839
330.0441330.37450.354573
34-0.051135-0.43390.33283
350.0198410.16840.433389
36-0.01889-0.16030.436553
37-0.024712-0.20970.417252
38-0.013548-0.1150.4544
39-0.017597-0.14930.44086
400.0328520.27880.390614
41-0.045998-0.39030.348731
420.0517450.43910.330962
43-0.016522-0.14020.444448
440.0228510.19390.423402
45-0.051371-0.43590.332107
46-0.05256-0.4460.328473
47-0.026513-0.2250.411321
48-0.006989-0.05930.476438


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2145481.82050.036419
20.2507912.1280.018379
30.213551.8120.037076
40.059540.50520.307477
5-0.023438-0.19890.42146
60.0446410.37880.352977
7-0.020319-0.17240.431799
80.0571470.48490.314608
9-0.004626-0.03930.484398
10-0.196506-1.66740.049889
110.1714031.45440.07509
12-0.204202-1.73270.043714
13-0.113175-0.96030.170054
140.1386621.17660.121618
15-0.017392-0.14760.441546
16-0.035034-0.29730.383556
17-0.040023-0.33960.367572
18-0.013859-0.11760.453357
190.0533320.45250.326122
20-0.060747-0.51550.303908
21-0.111302-0.94440.174055
22-0.084807-0.71960.237046
230.0231740.19660.422331
24-0.12737-1.08080.141703
25-0.04333-0.36770.357098
26-0.058579-0.49710.310332
27-0.098641-0.8370.202681
28-0.081886-0.69480.244701
290.1128330.95740.170779
300.0094120.07990.468283
310.1188731.00870.158256
320.0114680.09730.461375
330.0458170.38880.349296
34-0.123969-1.05190.148179
350.1520511.29020.100556
36-0.124017-1.05230.148087
37-0.127576-1.08250.141318
380.0141970.12050.452225
39-0.088389-0.750.227848
40-0.01583-0.13430.44676
41-0.006756-0.05730.477223
420.0223230.18940.425149
430.0373390.31680.376144
44-0.031314-0.26570.395613
45-0.023194-0.19680.422266
46-0.14399-1.22180.112885
470.058780.49880.309732
48-0.016921-0.14360.443117
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/1mmce1293525814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/1mmce1293525814.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/2xvtz1293525814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/2xvtz1293525814.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/3xvtz1293525814.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293525688k3p5ocpb1r6bz05/3xvtz1293525814.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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