Home » date » 2009 » Dec » 17 »

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: Thu, 17 Dec 2009 10:50:14 -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/t1261072294ctmeats26rlndgt.htm/, Retrieved Thu, 17 Dec 2009 18:51:37 +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/t1261072294ctmeats26rlndgt.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 «
100 97.56592292 93.71196755 92.69776876 89.65517241 89.04665314 98.98580122 105.6795132 101.6227181 98.37728195 94.11764706 93.30628803 94.72616633 93.30628803 90.87221095 89.85801217 88.43813387 87.42393509 98.17444219 103.4482759 104.0567951 102.0283976 95.53752535 95.53752535 96.55172414 96.34888438 95.3346856 93.50912779 92.29208925 92.49492901 104.8681542 106.4908722 106.0851927 105.2738337 103.2454361 103.8539554 105.2738337 104.8681542 103.4482759 103.2454361 101.6227181 102.8397566 115.4158215 117.6470588 117.2413793 114.6044625 110.9533469 112.5760649 113.9959432 113.7931034 112.5760649 110.3448276 108.9249493 110.1419878 120.4868154 123.9350913 124.3407708 123.9350913 120.4868154 120.6896552 119.8782961 119.4726166 118.4584178 116.2271805 115.010142 115.4158215 125.9634888 127.5862069 127.3833671 124.137931 120.6896552 121.0953347 120.2839757 119.6754564 117.6470588 116.4300203 116.2271805 116.2271805 125.7606491 126.9776 etc...
 
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.9295939.66060
20.8202848.52460
30.7363227.65210
40.6940287.21250
50.6897247.16780
60.6784967.05110
70.6446066.69890
80.6091866.33080
90.6072716.31090
100.6386946.63750
110.691547.18670
120.7071297.34870
130.6146046.38720
140.4948645.14281e-06
150.3947594.10254e-05
160.3327453.4580.00039
170.3061643.18170.000956
180.2726952.83390.002744
190.2239522.32740.010905
200.1763561.83270.034798
210.1642921.70740.045313
220.1838291.91040.029366
230.2160762.24550.013385
240.2131892.21550.014411
250.1224941.2730.102877
260.0150480.15640.438013
27-0.068805-0.7150.238063
28-0.118763-1.23420.1099
29-0.140393-1.4590.073733
30-0.167972-1.74560.04186
31-0.204333-2.12350.017998
32-0.239553-2.48950.007158
33-0.243586-2.53140.0064
34-0.220116-2.28750.012057
35-0.183047-1.90230.029899
36-0.174606-1.81460.036184
37-0.241984-2.51480.006692
38-0.325345-3.38110.000503
39-0.38751-4.02715.3e-05
40-0.415048-4.31331.8e-05
41-0.418066-4.34471.6e-05
42-0.425133-4.41811.2e-05
43-0.439656-4.5697e-06
44-0.452948-4.70724e-06
45-0.438312-4.55517e-06
46-0.40187-4.17643e-05
47-0.355417-3.69360.000174
48-0.331127-3.44120.000412
49-0.368656-3.83120.000107
50-0.418491-4.34911.6e-05
51-0.449895-4.67544e-06
52-0.455468-4.73343e-06
53-0.441953-4.59296e-06
54-0.429495-4.46341e-05
55-0.424775-4.41441.2e-05
56-0.417673-4.34061.6e-05
57-0.386975-4.02165.4e-05
58-0.33882-3.52110.000315
59-0.282081-2.93150.002059
60-0.247617-2.57330.005715


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9295939.66060
2-0.322835-3.3550.000548
30.2278162.36750.009843
40.1495791.55450.061499
50.1812491.88360.031155
6-0.121831-1.26610.104101
7-0.00269-0.0280.488876
80.0995811.03490.151519
90.2525412.62450.004968
100.1006351.04580.148987
110.2122682.2060.014753
12-0.218739-2.27320.012496
13-0.666358-6.9250
140.1256011.30530.097285
15-0.187577-1.94940.026923
16-0.099057-1.02940.152789
17-0.064272-0.66790.2528
18-0.007077-0.07350.470753
190.020390.21190.416291
20-0.08158-0.84780.199212
210.1613541.67680.048233
220.0014740.01530.493902
23-0.090393-0.93940.174812
240.0581150.60390.273573
25-0.118403-1.23050.110596
260.0564780.58690.279237
270.0497330.51680.303163
28-0.077804-0.80860.210273
29-0.006246-0.06490.474182
300.0120580.12530.450253
310.043910.45630.324536
32-0.115213-1.19730.1169
33-0.056993-0.59230.277447
340.0514010.53420.29716
350.044220.45950.323382
36-0.009832-0.10220.459404
37-0.052117-0.54160.294598
38-0.063378-0.65860.255763
39-0.009054-0.09410.462606
400.0465580.48380.314738
41-0.072225-0.75060.227268
420.0553590.57530.283139
43-0.052041-0.54080.294871
440.0333850.34690.364655
45-0.010561-0.10980.456405
46-0.031-0.32220.373975
470.0146070.15180.439815
480.0144150.14980.4406
490.0167350.17390.431128
500.0402360.41810.338335
510.0104580.10870.456828
52-0.072921-0.75780.225106
53-0.003129-0.03250.487059
540.0245710.25540.399468
55-0.050373-0.52350.300853
560.0415970.43230.333195
57-0.05289-0.54970.291847
580.0329950.34290.366173
59-0.00476-0.04950.480319
60-0.036547-0.37980.352419
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261072294ctmeats26rlndgt/1yn0r1261072212.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261072294ctmeats26rlndgt/1yn0r1261072212.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261072294ctmeats26rlndgt/2iedk1261072212.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261072294ctmeats26rlndgt/2iedk1261072212.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