Home » date » 2009 » Dec » 17 »

*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: Thu, 17 Dec 2009 03:05:30 -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/17/t1261044697jtdhfjn123ypmyv.htm/, Retrieved Thu, 17 Dec 2009 11:11:39 +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/17/t1261044697jtdhfjn123ypmyv.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 «
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 8.2
 
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.842666.58140
20.6362264.96913e-06
30.5291874.13315.5e-05
40.5483334.28263.3e-05
50.6388534.98963e-06
60.6839045.34151e-06
70.6049174.72457e-06
80.4595833.58950.000331
90.3386872.64520.005184
100.3173572.47860.007985
110.3363082.62670.005444
120.3466422.70740.004393
130.2624322.04970.022352
140.1642051.28250.102262
150.0920370.71880.237494
160.0480620.37540.354343
170.0170240.1330.447331
18-0.019578-0.15290.439486
19-0.080082-0.62550.267002
20-0.146691-1.14570.128198
21-0.193526-1.51150.067914
22-0.209451-1.63590.053509
23-0.220702-1.72370.044911
24-0.237888-1.8580.034001
25-0.294984-2.30390.012325
26-0.326906-2.55320.006595
27-0.322331-2.51750.007231
28-0.299247-2.33720.011364
29-0.285495-2.22980.014727
30-0.294924-2.30340.012339
31-0.328809-2.56810.006346
32-0.378508-2.95620.002212
33-0.38453-3.00330.001935
34-0.324054-2.53090.006985
35-0.280647-2.19190.016106
36-0.268344-2.09580.020127
37-0.296317-2.31430.012017
38-0.318896-2.49070.007744
39-0.300304-2.34550.011136
40-0.245398-1.91660.029987
41-0.191198-1.49330.070256
42-0.167201-1.30590.098248
43-0.19103-1.4920.070427
44-0.211452-1.65150.051888
45-0.170221-1.32950.094323
46-0.085117-0.66480.254346
47-0.046184-0.36070.359781
48-0.050928-0.39780.346098
49-0.085879-0.67070.252459
50-0.100354-0.78380.218098
51-0.070976-0.55430.290687
52-0.014283-0.11160.455771
530.0125960.09840.460977
540.0150380.11750.453445
55-0.006422-0.05020.480081
56-0.023932-0.18690.426173
57-0.004603-0.0360.485719
580.0310820.24280.404503
590.0340660.26610.395543
600.0181940.14210.443734


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.842666.58140
2-0.254719-1.98940.025572
30.2624232.04960.022356
40.2808672.19360.016041
50.2693422.10360.019771
60.0516830.40370.343939
7-0.161316-1.25990.106249
8-0.116504-0.90990.183222
9-0.127042-0.99220.162503
100.0184760.14430.44287
11-0.146335-1.14290.12877
120.0157510.1230.451247
13-0.232271-1.81410.037291
140.1353961.05750.147232
15-0.069247-0.54080.295294
16-0.084446-0.65950.256015
17-0.10991-0.85840.197009
18-0.054208-0.42340.336754
19-0.028882-0.22560.411142
20-0.088359-0.69010.246371
210.0271340.21190.416438
22-0.032114-0.25080.401399
230.0863060.67410.251407
24-0.010248-0.080.468235
25-0.067692-0.52870.299468
260.0920040.71860.237574
270.0311450.24330.404313
280.0675240.52740.299923
29-0.03224-0.25180.401019
300.0197390.15420.438994
31-0.054176-0.42310.336846
32-0.152247-1.18910.119506
330.0148170.11570.454126
340.0394550.30820.379507
35-0.081312-0.63510.263879
36-0.009829-0.07680.469529
37-0.006445-0.05030.48001
380.0068440.05350.478772
390.0195780.15290.439489
400.0072270.05640.477587
41-0.023844-0.18620.426441
42-0.000647-0.00510.497993
43-0.094823-0.74060.230891
440.0467420.36510.358163
450.1169630.91350.182285
460.034070.26610.395533
47-0.06712-0.52420.30101
480.0060910.04760.481106
49-0.039081-0.30520.380614
50-0.038195-0.29830.383239
51-0.063053-0.49250.31208
52-0.051551-0.40260.344315
53-0.074723-0.58360.280818
540.0644630.50350.308222
55-0.027433-0.21430.415531
56-0.021294-0.16630.434231
57-0.002518-0.01970.492186
58-0.051387-0.40130.344785
590.0069430.05420.478467
60-0.062739-0.490.312943
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261044697jtdhfjn123ypmyv/17kek1261044327.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261044697jtdhfjn123ypmyv/17kek1261044327.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261044697jtdhfjn123ypmyv/29iq41261044327.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261044697jtdhfjn123ypmyv/29iq41261044327.ps (open in new window)


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