Home » date » 2009 » Dec » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 09:36:28 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240606eu7l462ddyucqjs.htm/, Retrieved Sat, 19 Dec 2009 17:36:49 +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/2009/Dec/19/t1261240606eu7l462ddyucqjs.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.3 8.4 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.4 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.5 8.2 8.1 7.9 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8 8.2 8.1 8.1 8 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.4 6.1 6.5 7.7 7.9 7.5 6.9 6.6 6.9 7.7 8 8 7.7 7.3 7.4 8.1 8.3
 
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.3730043.45910.000423
2-0.231675-2.14850.017244
3-0.546771-5.07051e-06
4-0.406873-3.77320.000148
50.0845230.78380.217645
60.4595234.26142.6e-05
70.2947132.73310.003808
8-0.089875-0.83350.203444
9-0.322579-2.99150.001811
10-0.263902-2.44730.008213
110.0609860.56560.286583
120.5044234.67785e-06
130.1668951.54770.062681
14-0.069321-0.64290.261013
15-0.194577-1.80440.037332
16-0.1735-1.6090.055644
170.0092360.08560.465973
180.1519881.40950.08115
190.053230.49360.31141
20-0.072653-0.67380.251137
21-0.125291-1.16190.124246
22-0.088816-0.82360.20621
230.0284520.26380.396264
240.2673942.47970.00755
25-0.00314-0.02910.488418
26-0.087315-0.80970.210165
27-0.115096-1.06740.144399
28-0.075182-0.69720.243777
290.0536160.49720.310155
300.1255061.16390.123843
310.0376930.34950.363765
32-0.09327-0.8650.194735
33-0.13211-1.22510.111933
34-0.07613-0.7060.241049
350.0242140.22460.411431
360.2261412.09710.019458
37-0.00488-0.04530.482006
38-0.107818-0.99990.160091
39-0.118205-1.09620.138029
40-0.019073-0.17690.43001
410.1361081.26220.105143
420.1918161.77880.0394
43-0.00657-0.06090.47578
44-0.222935-2.06740.02085
45-0.249033-2.30940.011658
46-0.088458-0.82030.207149
470.1688921.56620.060483
480.3805513.52910.000336
490.0735460.6820.248523
50-0.212312-1.96890.026092
51-0.298954-2.77240.003411
52-0.14647-1.35830.08896
530.1225671.13660.129424
540.2868942.66050.004653
550.121771.12920.130967
56-0.125161-1.16070.124489
57-0.235762-2.18640.015753
58-0.177084-1.64220.052099
590.0390280.36190.359145
600.2611622.42190.00877


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3730043.45910.000423
2-0.430736-3.99456.8e-05
3-0.374338-3.47150.000406
4-0.194259-1.80150.037565
50.1002280.92950.177622
60.1624171.50620.067841
7-0.12608-1.16920.122774
8-0.094082-0.87250.192688
90.0113620.10540.458166
10-0.001384-0.01280.494896
110.0475360.44080.330222
120.3964383.67640.000205
13-0.395772-3.67020.00021
140.3089772.86530.002618
150.1963691.8210.036039
16-0.011046-0.10240.459324
17-0.099949-0.92690.178288
18-0.060218-0.55840.288999
190.024890.23080.409003
20-0.046228-0.42870.334605
21-0.131983-1.2240.112156
22-0.059661-0.55330.290757
23-0.058163-0.53940.29551
240.0742810.68890.246385
25-0.103765-0.96230.169305
26-0.056138-0.52060.301991
27-0.074004-0.68630.247189
280.0525950.48770.313484
290.0520630.48280.315227
30-0.026063-0.24170.404796
310.0261930.24290.404329
32-0.09089-0.84290.200816
330.083220.77180.221188
340.051670.47920.316518
35-0.060703-0.56290.28747
36-0.016262-0.15080.440241
37-0.061666-0.57190.284451
38-0.065252-0.60510.273345
390.0617960.57310.284044
400.0620880.57580.283134
410.0220250.20430.419318
420.0565530.52440.300658
43-0.159463-1.47880.071424
44-0.026662-0.24730.402649
45-0.062737-0.58180.281112
46-0.085592-0.79370.214765
470.147441.36730.087546
48-0.042882-0.39770.34593
49-0.035282-0.32720.372158
50-0.085754-0.79530.214328
510.0085890.07970.46835
52-0.022767-0.21110.416641
53-0.134237-1.24490.108282
54-0.053872-0.49960.309321
55-0.003822-0.03540.485905
560.0613440.56890.285459
57-0.039745-0.36860.356672
58-0.060437-0.56050.288308
59-0.019437-0.18030.428689
60-0.044108-0.4090.341764
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240606eu7l462ddyucqjs/1x3je1261240585.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240606eu7l462ddyucqjs/1x3je1261240585.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240606eu7l462ddyucqjs/24hi71261240585.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240606eu7l462ddyucqjs/24hi71261240585.ps (open in new window)


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