Home » date » 2010 » Dec » 29 »

*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: Wed, 29 Dec 2010 13:49:41 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp.htm/, Retrieved Wed, 29 Dec 2010 14:49:31 +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/2010/Dec/29/t129363057134nu6hmfbiwu7sp.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
60178 53200 59909 55970 47682 50173 43090 36031 42143 48478 36046 31060 54874 60051 71622 66526 50140 55973 40393 38483 42879 47875 40578 31027 62027 56493 65566 62653 53470 59600 42542 42018 44038 44988 43309 26843 69770 64886 79354 63025 54003 55926 45629 40361 43039 44570 43269 25563 68707 60223 74283 61232 61531 65305 51699 44599 35221 55066 45335 28702 69517 69240 71525 77740 62107 65450 51493 43067 49172 54483 38158 27898 58648 56000 62381 59849 48345 55376 45400 38389 44098 48290 41267 31238
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4201093.56470.000326
20.39553.35590.000633
30.1965341.66760.049865
40.1771951.50360.068535
50.1721751.4610.074189
60.1726171.46470.073678
7-0.008135-0.0690.472579
80.0563320.4780.317052
9-0.03124-0.26510.395853
10-0.08631-0.73240.233161
11-0.127409-1.08110.141629
12-0.335342-2.84550.002886
13-0.223056-1.89270.031209
14-0.018201-0.15440.438847
150.0370530.31440.377061
16-0.00603-0.05120.479667
17-0.055907-0.47440.318329
18-0.208755-1.77130.040367
19-0.080742-0.68510.247734
20-0.139756-1.18590.119786
210.0219040.18590.426537
22-0.048861-0.41460.339833
230.1306661.10870.135617
240.0461480.39160.348262
250.1296111.09980.137545
260.0084780.07190.471426
270.0038690.03280.48695
28-0.026901-0.22830.410045
290.0946570.80320.212254
300.1024190.86910.193853
310.087260.74040.230725
320.0185180.15710.437791
33-0.022123-0.18770.425813
34-0.0803-0.68140.248913
35-0.087812-0.74510.229315
36-0.137086-1.16320.124291
37-0.078032-0.66210.255002
38-0.053879-0.45720.324459
39-0.009288-0.07880.468701
400.0049340.04190.483362
41-0.072755-0.61730.269478
42-0.081385-0.69060.246026
43-0.069867-0.59280.277574
440.0709630.60210.274487
45-0.032911-0.27930.390424
460.0802110.68060.249149
470.0337050.2860.38785
480.0566510.48070.316095
490.0608860.51660.303498
500.0296450.25150.401054
51-0.029535-0.25060.401413
52-0.007689-0.06520.47408
53-0.003458-0.02930.488337
540.0432090.36660.357483
55-0.012514-0.10620.457865
56-0.112337-0.95320.171837
57-0.101872-0.86440.195116
58-0.109342-0.92780.178306
59-0.134895-1.14460.128078
60-0.122742-1.04150.150564


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4201093.56470.000326
20.2659462.25660.013534
3-0.048555-0.4120.340781
40.0305770.25950.398013
50.0940040.79760.213849
60.0598260.50760.306627
7-0.196134-1.66430.050204
80.0513940.43610.332036
9-0.012857-0.10910.456716
10-0.144895-1.22950.111449
11-0.084367-0.71590.238192
12-0.279332-2.37020.010229
130.0491960.41740.338799
140.3162122.68310.004521
150.1243751.05540.147395
16-0.139207-1.18120.120703
17-0.068017-0.57710.282823
18-0.150415-1.27630.102973
19-0.032663-0.27720.391227
20-0.085771-0.72780.234552
210.2008441.70420.046326
22-0.032353-0.27450.392235
230.1858511.5770.05959
24-0.092302-0.78320.218037
25-0.053116-0.45070.326777
260.1113730.9450.173902
270.0473380.40170.344556
28-0.106633-0.90480.184293
29-0.029136-0.24720.402719
30-0.023889-0.20270.419969
31-0.102988-0.87390.192545
32-0.031348-0.2660.395502
330.1530591.29880.099087
34-0.046062-0.39090.34853
350.0117860.10.460308
36-0.1196-1.01480.15679
37-0.058533-0.49670.310469
380.0141850.12040.452266
390.1594971.35340.090085
40-0.040287-0.34180.366731
41-0.013098-0.11110.455906
42-0.024823-0.21060.416885
43-0.003281-0.02780.488932
440.0880050.74670.228824
45-0.061793-0.52430.300829
46-0.001297-0.0110.495626
470.0783660.6650.254101
48-0.093812-0.7960.214318
49-0.010353-0.08780.465121
500.0146740.12450.450629
510.0807310.6850.247764
52-0.099908-0.84770.199694
53-0.024045-0.2040.419452
54-0.070891-0.60150.274689
55-0.096068-0.81520.208833
56-0.056227-0.47710.317367
570.0793640.67340.251417
58-0.080321-0.68150.248856
590.036040.30580.380315
60-0.086725-0.73590.232095
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/1eayl1293630577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/1eayl1293630577.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/27jf61293630577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/27jf61293630577.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/37jf61293630577.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t129363057134nu6hmfbiwu7sp/37jf61293630577.ps (open in new window)


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