Home » date » 2010 » Aug » 16 »

Autocorrelation

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 16 Aug 2010 15:21:52 +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/Aug/16/t12819720722i4bqj0ckd88u0v.htm/, Retrieved Mon, 16 Aug 2010 17:21:12 +0200
 
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/Aug/16/t12819720722i4bqj0ckd88u0v.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 «
257 256 255 253 251 250 251 253 254 254 255 257 260 251 255 252 245 239 240 247 251 255 259 260 259 266 261 243 232 225 229 238 240 241 239 246 242 251 246 219 203 192 197 203 208 207 208 212 208 215 200 170 162 150 148 152 155 150 146 147 142 146 130 102 98 90 86 104 108 94 88 92 93 95 81 50 49 34 27 45 47 42 32
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9598868.7450
20.9172288.35630
30.8759957.98070
40.8343587.60140
50.790447.20120
60.7496686.82980
70.7118986.48570
80.6740216.14060
90.6493235.91560
100.6297285.73710
110.6084575.54330
120.5803885.28760
130.5381584.90282e-06
140.4945534.50561.1e-05
150.4544234.144.1e-05
160.4132733.76510.000155
170.3703433.3740.000564
180.3307873.01360.001711
190.2924252.66410.004636
200.2543572.31730.011475
210.2275112.07270.02065
220.2058671.87550.032118
230.1803651.64320.052062
240.1507311.37320.086691
250.112351.02360.154509
260.0710980.64770.259471
270.0320140.29170.385635
28-0.004992-0.04550.481917
29-0.038421-0.350.363602
30-0.069207-0.63050.265049
31-0.097942-0.89230.187408
32-0.124763-1.13660.12948
33-0.139642-1.27220.103427
34-0.148788-1.35550.089464
35-0.16159-1.47220.072381
36-0.178014-1.62180.054321
37-0.200233-1.82420.035859
38-0.226357-2.06220.021158
39-0.251464-2.29090.012251
40-0.27292-2.48640.007454
41-0.291282-2.65370.00477
42-0.309433-2.81910.00301
43-0.325753-2.96780.001959
44-0.337179-3.07180.001438
45-0.338683-3.08560.00138
46-0.337849-3.0780.001412
47-0.341256-3.1090.001286
48-0.345786-3.15030.001134
49-0.35455-3.23010.000887
50-0.364968-3.3250.000659
51-0.373498-3.40270.000515
52-0.377154-3.4360.000462
53-0.381514-3.47580.000406
54-0.385298-3.51020.000363
55-0.386422-3.52050.000351
56-0.383976-3.49820.000378
57-0.375335-3.41950.000488
58-0.364164-3.31770.000674
59-0.355164-3.23570.000872
60-0.346713-3.15870.001105


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9598868.7450
2-0.052828-0.48130.315789
3-0.003087-0.02810.488816
4-0.028285-0.25770.398644
5-0.051138-0.46590.321257
60.0173130.15770.437527
70.0115160.10490.458349
8-0.024171-0.22020.413125
90.1479341.34770.090704
100.0363560.33120.370657
11-0.034219-0.31180.378005
12-0.098689-0.89910.185601
13-0.212935-1.93990.027892
14-0.035333-0.32190.374169
150.0323150.29440.384592
16-0.029202-0.2660.395434
17-0.010327-0.09410.462636
180.0190580.17360.431291
19-0.034728-0.31640.376252
20-0.049319-0.44930.327187
210.0507860.46270.322401
220.0120970.11020.456256
23-0.040614-0.370.356159
24-0.044105-0.40180.344425
25-0.134733-1.22750.111557
26-0.063404-0.57760.282536
27-0.002141-0.01950.492244
28-0.001028-0.00940.496274
290.0644050.58680.279479
300.017920.16330.435356
31-0.029748-0.2710.393527
32-0.041579-0.37880.3529
330.0383940.34980.363692
340.0133730.12180.451661
35-0.023965-0.21830.413855
36-0.028448-0.25920.398072
37-0.070626-0.64340.260857
38-0.059249-0.53980.295394
39-0.019312-0.17590.430384
400.0028990.02640.489496
410.0515220.46940.320012
420.0052520.04790.480975
43-0.029466-0.26840.394512
44-0.013604-0.12390.450834
450.010790.09830.460966
46-0.035139-0.32010.374837
47-0.039305-0.35810.360594
480.0065610.05980.47624
49-0.032247-0.29380.384829
50-0.007504-0.06840.472829
51-0.006163-0.05610.477681
520.0161180.14680.441806
53-0.003189-0.0290.488448
540.0090560.08250.467222
55-0.023862-0.21740.414218
56-0.022185-0.20210.420162
57-0.003591-0.03270.486991
58-0.007601-0.06930.472478
59-0.009158-0.08340.466854
600.0248380.22630.41077
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819720722i4bqj0ckd88u0v/1kl0s1281972108.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819720722i4bqj0ckd88u0v/1kl0s1281972108.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/16/t12819720722i4bqj0ckd88u0v/2cczd1281972108.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/16/t12819720722i4bqj0ckd88u0v/2cczd1281972108.ps (open in new window)


 
Parameters (Session):
par1 = 0.1 ; par2 = 0.9 ; par3 = 0.1 ;
 
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