Home » date » 2008 » Dec » 24 »

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 24 Dec 2008 07:35:03 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/24/t12301294305fniorjvjd2bv6x.htm/, Retrieved Wed, 24 Dec 2008 15:37:12 +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/2008/Dec/24/t12301294305fniorjvjd2bv6x.htm/},
    year = {2008},
}
@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 = {2008},
    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 «
555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502
 
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.2614892.00850.024585
2-0.20071-1.54170.064248
3-0.303746-2.33310.011536
4-0.254302-1.95330.027764
50.0290920.22350.411974
60.1635631.25630.106971
70.0439880.33790.368326
8-0.234029-1.79760.038678
9-0.250488-1.9240.029589
10-0.148806-1.1430.128827
110.2718412.08810.02056
120.7362265.65510
130.145171.11510.134671
14-0.189588-1.45630.075312
15-0.282722-2.17160.016958
16-0.194432-1.49350.070323
170.0303580.23320.408213
180.1192540.9160.181696
190.0210340.16160.436099
20-0.222232-1.7070.046541
21-0.194775-1.49610.06998
22-0.065289-0.50150.308944
230.1913831.470.073431
240.4971953.8190.000162
250.1138850.87480.192625
26-0.1699-1.3050.098475
27-0.241955-1.85850.034045
28-0.13831-1.06240.146196
290.0152790.11740.453486
300.0849640.65260.258268
31-0.000218-0.00170.499336
32-0.168602-1.29510.100173
33-0.115151-0.88450.190011
34-0.057784-0.44380.329389
350.1136470.87290.193117
360.3376452.59350.005981
370.06250.48010.316477
38-0.143097-1.09920.138084
39-0.145587-1.11830.133991
40-0.066411-0.51010.305937
410.0223730.17190.432071
420.0612580.47050.319856
43-0.01643-0.12620.450002
44-0.089963-0.6910.246133
45-0.041138-0.3160.376565
46-0.024511-0.18830.425656
470.0868020.66670.253769
480.1554591.19410.118609
490.0251260.1930.423812
50-0.068372-0.52520.300714
51-0.068078-0.52290.301496
52-0.03183-0.24450.40385
530.0118740.09120.46382
540.030570.23480.407584
550.0072230.05550.477972
56-0.005133-0.03940.484342
57-0.004383-0.03370.48663
58-0.001229-0.00940.49625
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2614892.00850.024585
2-0.288837-2.21860.015187
3-0.188049-1.44440.076954
4-0.199722-1.53410.065176
50.0443660.34080.36724
6-0.001676-0.01290.494886
7-0.095017-0.72980.234187
8-0.280928-2.15780.017511
9-0.149328-1.1470.128003
10-0.219934-1.68930.048216
110.1930671.4830.071702
120.5993334.60361.1e-05
13-0.188169-1.44540.076824
140.1034240.79440.215069
150.0116610.08960.464466
160.0771720.59280.2778
17-0.048491-0.37250.35544
18-0.078114-0.60.275399
19-0.019047-0.14630.442091
20-0.053918-0.41410.340134
21-0.002845-0.02190.491319
220.0329330.2530.400588
23-0.238478-1.83180.036016
24-0.013211-0.10150.459757
250.0697990.53610.296939
26-0.092397-0.70970.240339
27-0.021887-0.16810.433533
28-0.047502-0.36490.358258
29-0.023217-0.17830.429536
30-0.004491-0.03450.486298
31-0.069275-0.53210.298323
320.0608710.46760.320912
33-0.033566-0.25780.398718
34-0.118616-0.91110.182974
350.0357670.27470.392241
36-0.0903-0.69360.245326
37-0.100258-0.77010.222157
38-0.021086-0.1620.435943
390.0365280.28060.390009
400.0081080.06230.475275
41-0.02178-0.16730.433855
420.0073450.05640.477601
43-8e-06-1e-040.499976
440.0331540.25470.399935
450.0747130.57390.284116
460.0432590.33230.370428
47-0.004623-0.03550.485897
48-0.14217-1.0920.139631
490.1163160.89340.187626
500.0170510.1310.448121
51-0.077979-0.5990.275745
52-0.044605-0.34260.366552
53-0.011946-0.09180.463599
54-0.005212-0.040.484099
550.0587310.45110.326779
560.0123880.09520.462258
57-0.043743-0.3360.369034
58-0.011534-0.08860.464852
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301294305fniorjvjd2bv6x/1rl0n1230129301.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301294305fniorjvjd2bv6x/1rl0n1230129301.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301294305fniorjvjd2bv6x/2mmb61230129301.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t12301294305fniorjvjd2bv6x/2mmb61230129301.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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