Home » date » 2010 » Dec » 29 »

Autocorrelation

*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 19:44:32 +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/t1293651744pg4q77yc5yelgsm.htm/, Retrieved Wed, 29 Dec 2010 20:42:27 +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/t1293651744pg4q77yc5yelgsm.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 «
16198.90 16554.20 19554.20 15903.80 18003.80 18329.60 16260.70 14851.90 18174.10 18406.60 18466.50 16016.50 17428.50 17167.20 19630.00 17183.60 18344.70 19301.40 18147.50 16192.90 18374.40 20515.20 18957.20 16471.50 18746.80 19009.50 19211.20 20547.70 19325.80 20605.50 20056.90 16141.40 20359.80 19711.60 15638.60 14384.50 13721.40 14134.30 15021.70 14212.60 13635.00 15446.90 14762.10 12521.00 16236.80 16065.00 16032.10 15794.30 15160.00 15692.10 18908.90 17424.50 17014.20 19790.40 17681.20 16006.90 19601.70
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time6 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5165853.90010.000128
20.3630972.74130.00408
30.5095593.84710.000152
40.4164023.14380.001324
50.2810232.12170.019112
60.2681442.02440.02381
70.084890.64090.262076
80.102370.77290.221395
9-0.048526-0.36640.357724
10-0.243074-1.83520.03585
11-0.144031-1.08740.140716
120.0547380.41330.340482
13-0.249805-1.8860.032198
14-0.357951-2.70250.004526
15-0.260844-1.96930.026892
16-0.234957-1.77390.040712
17-0.249183-1.88130.032521
18-0.231057-1.74440.043236
19-0.237024-1.78950.039424
20-0.143095-1.08030.142269
21-0.209147-1.5790.059932
22-0.253406-1.91320.030377
23-0.080409-0.60710.273105
240.0399350.30150.382064
25-0.089737-0.67750.250415
26-0.139705-1.05470.147996
27-0.073034-0.55140.29176
280.0124470.0940.462731
29-0.024408-0.18430.427226
30-0.014008-0.10580.458072
31-0.015864-0.11980.452544
320.0092170.06960.472384
33-0.028092-0.21210.416396
34-0.043715-0.330.37129
350.0051340.03880.484608
360.1069130.80720.211461
370.0174860.1320.447719
38-0.036451-0.27520.392078
390.0262770.19840.421723
400.042090.31780.375909
41-0.014666-0.11070.456112
420.0538930.40690.342808
430.0034190.02580.489748
440.0039240.02960.488236
450.0042420.0320.48728
46-0.012988-0.09810.461115
47-0.021211-0.16010.436668
480.0608580.45950.323822
49-0.003523-0.02660.489437
50-0.039318-0.29680.383831
510.029540.2230.412159
520.0126080.09520.462249
53-0.038621-0.29160.385832
540.0250870.18940.425225
55-0.001427-0.01080.495722
56-0.010601-0.080.468246
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5165853.90010.000128
20.1312670.9910.162927
30.386952.92140.002493
40.0475080.35870.360581
5-0.023963-0.18090.428539
6-0.034266-0.25870.398397
7-0.284141-2.14520.018105
80.0542560.40960.341809
9-0.31051-2.34430.011286
10-0.218568-1.65020.052206
110.0563890.42570.335956
120.4206883.17610.001205
13-0.134714-1.01710.15671
14-0.210695-1.59070.058603
15-0.202957-1.53230.065491
16-0.018353-0.13860.445142
170.0858720.64830.25969
18-0.001556-0.01170.495334
190.0646730.48830.313617
20-0.024889-0.18790.42581
210.0051720.0390.484494
22-0.030763-0.23230.408586
23-0.012964-0.09790.461186
24-0.125742-0.94930.173231
25-0.061294-0.46280.322648
26-0.054358-0.41040.341529
27-0.008594-0.06490.474246
280.0795330.60050.27529
29-0.081343-0.61410.270788
300.0738570.55760.289647
31-0.138933-1.04890.149321
32-0.020423-0.15420.439003
330.0068270.05150.479537
340.0582510.43980.330876
35-0.096461-0.72830.234715
360.0025330.01910.492404
370.0237620.17940.42913
380.0504220.38070.352429
390.0598120.45160.326646
40-0.221161-1.66970.050228
41-0.131925-0.9960.161728
420.005740.04330.482793
430.0664160.50140.308999
440.0821080.61990.268898
45-0.041942-0.31670.37633
460.0132130.09980.460445
47-0.087589-0.66130.255548
480.0151640.11450.454628
49-0.048103-0.36320.358911
50-0.068054-0.51380.304691
510.0264170.19940.421312
520.03560.26880.394537
530.0418290.31580.376652
54-0.076856-0.58030.282015
550.0269980.20380.419607
56-0.089037-0.67220.252082
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/1dl7b1293651865.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/1dl7b1293651865.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/2od6w1293651865.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/2od6w1293651865.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/3hm5h1293651865.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293651744pg4q77yc5yelgsm/3hm5h1293651865.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 (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