Home » date » 2010 » Dec » 07 »

ACF 2.2

*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, 07 Dec 2010 15:16:06 +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/07/t1291734866oz7b7ediyiar2p9.htm/, Retrieved Tue, 07 Dec 2010 16:14: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/2010/Dec/07/t1291734866oz7b7ediyiar2p9.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 «
431 465 511 540 552 512 413 542 544 491 458 529 525 483 528 502 563 537 465 528 505 493 456 488 488 468 542 499 477 534 528 598 474 537 376 447 545 425 458 510 472 541 507 472 540 496 432 452 420 435 509 441 416 490 396 463 403 448 398 387 426 428 510 437 453 451 434
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.021843-0.1620.435951
2-0.007143-0.0530.478973
30.142311.05540.147929
40.0027680.02050.491848
50.2481161.84010.035578
60.086820.64390.261167
7-0.31281-2.31990.012043
8-0.010889-0.08080.467964
90.0565370.41930.338319
10-0.116859-0.86670.194949
110.1371691.01730.156739
12-0.363628-2.69670.004638
130.1120180.83070.204854
140.2329711.72780.044821
15-0.015316-0.11360.454989
16-0.032765-0.2430.404459
170.0247940.18390.427394
18-0.000852-0.00630.497491
190.174011.29050.101139
200.0778490.57730.283032
21-0.148771-1.10330.137346
22-0.030786-0.22830.410125
23-0.104207-0.77280.22147
240.0310570.23030.409346
25-0.096493-0.71560.238629
26-0.170958-1.26790.105095
27-0.032423-0.24050.405436
280.1066060.79060.216284
29-0.027259-0.20220.420269
30-0.03641-0.270.394077
31-0.026481-0.19640.422516
320.0523870.38850.349568
330.085590.63480.264111
340.0265820.19710.422225
35-0.040574-0.30090.38231
36-0.08848-0.65620.257221
370.0138150.10250.459385
38-0.059281-0.43960.330959
39-0.082779-0.61390.270904
40-0.100521-0.74550.229576
41-0.065894-0.48870.313506
42-0.099751-0.73980.231291
43-0.035466-0.2630.396759
44-0.089529-0.6640.254743
45-0.024573-0.18220.428033
46-0.004237-0.03140.487524
47-0.03105-0.23030.409368
480.0422640.31340.377566


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.021843-0.1620.435951
2-0.007624-0.05650.477559
30.1420621.05360.148345
40.0090040.06680.473503
50.2553321.89360.031772
60.0855270.63430.264262
7-0.327506-2.42890.009221
8-0.118095-0.87580.19247
90.030020.22260.412321
10-0.105688-0.78380.218259
110.1541531.14320.128947
12-0.255383-1.8940.031746
130.268531.99150.025702
140.1454011.07830.142798
150.0848530.62930.265882
16-0.118991-0.88250.190684
170.0213070.1580.437511
18-0.00324-0.0240.490459
19-0.09385-0.6960.244677
200.0636830.47230.319296
210.0435930.32330.373849
22-0.150038-1.11270.135337
23-0.068413-0.50740.306964
24-0.110343-0.81830.208351
25-0.01188-0.08810.465058
26-0.067458-0.50030.309438
270.0971190.72030.23721
280.1532491.13650.130333
290.0438340.32510.373176
30-0.034145-0.25320.400519
31-0.069074-0.51230.305259
320.0462520.3430.366447
33-0.144523-1.07180.144243
34-0.083076-0.61610.270183
350.0038430.02850.488683
36-0.009719-0.07210.4714
37-0.011272-0.08360.466842
38-0.130606-0.96860.168492
390.0061350.04550.481938
400.0243660.18070.428632
41-0.061781-0.45820.324315
42-0.121062-0.89780.186597
430.0154450.11450.454612
440.0788030.58440.280665
45-0.069272-0.51370.304749
46-0.061054-0.45280.326242
47-0.029381-0.21790.414158
48-0.059395-0.44050.330657
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291734866oz7b7ediyiar2p9/12wwj1291734958.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291734866oz7b7ediyiar2p9/12wwj1291734958.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291734866oz7b7ediyiar2p9/22wwj1291734958.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291734866oz7b7ediyiar2p9/22wwj1291734958.ps (open in new window)


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