Home » date » 2008 » Dec » 24 »

Paper 8

*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 04:57:58 -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/t1230119902f9ffustcgei6s4b.htm/, Retrieved Wed, 24 Dec 2008 12:58:24 +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/t1230119902f9ffustcgei6s4b.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 «
528 478 469 490 493 508 517 514 510 527 542 565 555 499 511 526 532 549 561 557 566 588 620 626 620 573 573 574 580 590 593 597 595 612 628 629 621 569 567 573 584 589 591 595 594 611 613 611 594 543 537 544 555 561 562 555 547 565 578 580
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.244591.87870.032612
2-0.174356-1.33930.092813
3-0.265865-2.04210.022807
4-0.25445-1.95450.027695
50.0316030.24270.404521
60.1651971.26890.10473
70.0495570.38070.352414
8-0.278317-2.13780.018344
9-0.284683-2.18670.016371
10-0.168593-1.2950.100184
110.2502171.9220.029722
120.7165625.5040
130.1254320.96350.169625
14-0.137284-1.05450.147978
15-0.250551-1.92450.029558
16-0.199687-1.53380.065209
170.0312670.24020.405518
180.1172460.90060.185735
190.0258130.19830.421757
20-0.265822-2.04180.022824
21-0.231306-1.77670.040387
22-0.088802-0.68210.248922
230.1610051.23670.110548
240.4918863.77820.000185
250.1010720.77630.220322
26-0.12928-0.9930.162378
27-0.212833-1.63480.053708
28-0.121007-0.92950.178215
290.0244850.18810.425733
300.0795830.61130.271678
310.0142620.10960.456569
32-0.211928-1.62790.054443
33-0.145976-1.12130.133359
34-0.079563-0.61110.271728
350.1130760.86860.194305
360.3552612.72880.004181
370.071850.55190.291555
38-0.101567-0.78010.219211
39-0.110352-0.84760.200036
40-0.038724-0.29740.383585
410.022090.16970.432921
420.0628740.48290.31546
430.0235520.18090.428531
44-0.129962-0.99830.161115
45-0.088736-0.68160.249081
46-0.032737-0.25150.401166
470.0934770.7180.237793
480.1731641.33010.094303
490.0301210.23140.408915
50-0.029882-0.22950.409625
51-0.030861-0.2370.40672
52-0.005151-0.03960.484287
530.0054680.0420.48332
540.0436320.33510.369354
550.0263850.20270.420046
56-0.048302-0.3710.355979
57-0.031311-0.24050.405386
58-0.002839-0.02180.491337
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.244591.87870.032612
2-0.249081-1.91320.030288
3-0.171996-1.32110.09578
4-0.206616-1.5870.058924
50.0687970.52840.299588
60.0205460.15780.43757
7-0.073606-0.56540.286981
8-0.33346-2.56140.006501
9-0.156069-1.19880.117701
10-0.223323-1.71540.045762
110.1795011.37880.086586
120.5640264.33242.9e-05
13-0.220456-1.69340.047831
140.0817610.6280.266207
15-0.075493-0.57990.282104
160.038160.29310.385233
17-0.082143-0.6310.265253
18-0.126849-0.97430.166932
19-0.031467-0.24170.404925
20-0.026518-0.20370.419649
210.0317840.24410.403987
220.0395570.30380.381157
23-0.264177-2.02920.02348
240.0494850.38010.352616
250.0104120.080.468264
26-0.113729-0.87360.192947
27-0.018274-0.14040.444425
28-0.063263-0.48590.314408
29-0.022348-0.17170.432146
30-0.020229-0.15540.438525
31-0.086565-0.66490.254347
320.012160.09340.462951
33-0.048805-0.37490.354546
34-0.117705-0.90410.184806
350.0382440.29380.384987
36-0.13882-1.06630.145317
370.0029610.02270.490964
38-0.055882-0.42920.334656
390.0413040.31730.376084
400.0138760.10660.45774
41-0.057473-0.44150.330249
42-0.009475-0.07280.471116
430.0147170.1130.455189
44-0.015999-0.12290.451306
450.0246340.18920.425285
460.0093950.07220.471357
47-0.023686-0.18190.428128
48-0.141121-1.0840.141393
490.0174390.1340.446948
500.0532270.40880.342068
51-0.031745-0.24380.404101
52-0.038498-0.29570.384246
53-0.037451-0.28770.387305
540.0458250.3520.36305
550.020490.15740.437738
560.0525520.40370.343961
57-0.044921-0.3450.365643
580.0008390.00640.497439
59NANANA
60NANANA
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230119902f9ffustcgei6s4b/1ti1h1230119876.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230119902f9ffustcgei6s4b/1ti1h1230119876.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230119902f9ffustcgei6s4b/2yy781230119876.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/24/t1230119902f9ffustcgei6s4b/2yy781230119876.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