Home » date » 2011 » Feb » 01 »

PaperTimDamen

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Tue, 01 Feb 2011 18:25:09 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b.htm/, Retrieved Tue, 01 Feb 2011 19:22:23 +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/2011/Feb/01/t12965845405m9d6weaepopp8b.htm/},
    year = {2011},
}
@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 = {2011},
    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 «
349 336 331 327 323 322 385 405 412 411 410 415 414 411 408 410 411 416 479 498 502 498 499 506 510 509 502 495 490 490 553 570 573 572 575 580 580 574 563 556 546 545 605 628 631 626 614 606 602 589 574 558 552 546 607 636 631 623 618 605 619 596 570 546 528 506 555 568 564 553 541 542 540 521 505 491 482 478 523 531 532 540 525 533 531 508 495 482 470 466 515 518 516 511 500 498 494 476 458 443 430 424 476 481 470 460 451 450 444 429 421 400 389 384 432 446 431 423 416 416 413 399 386 374 365 365 418 428 424 421 417 423 423 419 406 398 390 391 444 460 455 456 452 459 461 451 443 439 430 436 488 506 502 501 501 515 521 520 512 509 505 511 570 592 594 586 586 592 594 594 586 586 572 572 563 563 555 555 554 554 601 601 622 622 617 617 606 606 595 595 599 599 600 600 592 592 575 575 567 567 555 555 555 555 608 etc...
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0622331.3620.086913
20.3419277.48340
30.0208760.45690.323974
4-0.004315-0.09440.4624
5-0.002764-0.06050.475897
6-0.06016-1.31670.094292
7-0.001918-0.0420.483267
8-0.028726-0.62870.264924
90.0104670.22910.40945
10-0.281446-6.15970
110.0009320.02040.49187
12-0.753589-16.49310
13-0.014013-0.30670.37961
14-0.285597-6.25060
15-0.027313-0.59780.27514
160.0017480.03830.484745
170.0102230.22370.411524
180.0848291.85660.031993
190.0208840.45710.323911
200.051981.13760.127918
210.0136070.29780.382987
220.261085.7140
230.0057970.12690.449549
240.63969614.00040
25-0.005194-0.11370.454768
260.2557285.59690
27-0.014232-0.31150.377788
28-0.011931-0.26110.397053
29-0.019131-0.41870.33781
30-0.110241-2.41270.008104
31-0.022684-0.49650.3099
32-0.072075-1.57740.057677
33-0.01589-0.34780.364079
34-0.271239-5.93630
35-0.01754-0.38390.350616
36-0.623063-13.63640
37-0.000922-0.02020.49195
38-0.244347-5.34780
390.0074920.1640.434909
400.0146640.32090.374196
410.0212120.46420.32134
420.1067422.33620.009947
430.005430.11880.452728
440.0779581.70620.044309
45-0.006984-0.15280.439292
460.2701485.91250
470.0169730.37150.355222
480.58045612.70390
49-0.001982-0.04340.482709
500.2119514.63882e-06
510.0004590.010.495997
52-0.020229-0.44270.32908
53-0.026588-0.58190.280449
54-0.087246-1.90950.028399
550.0023950.05240.479112
56-0.068065-1.48970.068484
570.0154410.33790.367781
58-0.261108-5.71460
59-0.015182-0.33230.369912
60-0.548126-11.99630


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0622331.3620.086913
20.3393687.42740
3-0.016226-0.35510.36133
4-0.136802-2.99410.001448
50.0014330.03140.487498
6-0.013233-0.28960.386117
70.0053970.11810.453009
8-0.002102-0.0460.481663
90.0116260.25440.399632
10-0.322451-7.05720
110.0240260.52580.299625
12-0.702208-15.36860
130.1648953.60890.00017
140.1150042.5170.006081
15-0.029884-0.6540.256699
16-0.095074-2.08080.018991
170.073681.61260.053748
18-0.0868-1.89970.029035
190.0762251.66830.047959
200.0033220.07270.471037
210.0901171.97230.024574
220.0071020.15540.438269
230.0885041.9370.026666
240.1069072.33980.009853
25-0.035948-0.78680.215908
26-0.025778-0.56420.286448
27-0.076652-1.67760.047037
280.0207480.45410.324986
290.0430860.9430.173082
30-0.008848-0.19370.423263
31-0.021905-0.47940.315931
32-0.0148-0.32390.373074
33-0.025373-0.55530.289465
34-0.094458-2.06730.01962
35-0.01561-0.34160.366389
36-0.19912-4.3588e-06
370.0381990.8360.201777
380.0485151.06180.144432
39-0.036008-0.78810.21552
40-0.065989-1.44420.074663
410.0438310.95930.168949
42-0.130564-2.85750.002228
43-0.000165-0.00360.498559
440.0436130.95450.17015
45-0.017633-0.38590.349862
460.021580.47230.318465
470.0702771.53810.062344
480.0149340.32680.371963
49-0.031526-0.690.245273
50-0.031723-0.69430.243921
510.0296050.64790.258667
520.0265350.58080.280841
530.0252710.55310.290231
540.0857651.87710.030559
55-0.016-0.35020.363178
560.0091490.20020.420692
57-0.020124-0.44040.329911
58-0.023317-0.51030.305032
59-0.004973-0.10880.456689
60-0.049333-1.07970.140408
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/1ppqj1296584706.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/1ppqj1296584706.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/2kzsu1296584706.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/2kzsu1296584706.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/3qj5d1296584706.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Feb/01/t12965845405m9d6weaepopp8b/3qj5d1296584706.ps (open in new window)


 
Parameters (Session):
par1 = 12 ;
 
Parameters (R input):
par1 = 60 ; 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