Home » date » 2010 » Dec » 26 »

*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: Sun, 26 Dec 2010 11:47:47 +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/26/t12933639508e8dzsoc7ec3o0q.htm/, Retrieved Sun, 26 Dec 2010 12:45:51 +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/26/t12933639508e8dzsoc7ec3o0q.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 «
16896.2 16698 19691.6 15930.7 17444.6 17699.4 15189.8 15672.7 17180.8 17664.9 17862.9 16162.3 17463.6 16772.1 19106.9 16721.3 18161.3 18509.9 17802.7 16409.9 17967.7 20286.6 19537.3 18021.9 20194.3 19049.6 20244.7 21473.3 19673.6 21053.2 20159.5 18203.6 21289.5 20432.3 17180.4 15816.8 15076.6 14531.6 15761.3 14345.5 13916.8 15496.8 14285.6 13597.3 16263.1 16773.3 15986.9 16842.6 16014.6 15878.6 18664.9 17690.5 17107.6 19165.7 17203.6 16579 18885.1
 
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
1-0.356656-2.6690.004968
2-0.207845-1.55540.062746
30.3084932.30850.012342
4-0.144663-1.08260.141822
5-0.043731-0.32730.372349
60.2564871.91940.030019
7-0.201225-1.50580.068865
80.0735880.55070.29202
90.0635980.47590.317991
10-0.232247-1.7380.043856
11-0.15396-1.15210.127081
120.462023.45740.000524
13-0.21688-1.6230.055105
14-0.144463-1.08110.142152
150.0835170.6250.267259
16-0.059798-0.44750.328124
17-0.018946-0.14180.443881
180.0624340.46720.32108
19-0.075827-0.56740.286342
200.1199090.89730.186695
21-0.065066-0.48690.314112
22-0.128275-0.95990.170611
23-0.020927-0.15660.438059
240.2048761.53320.065435
25-0.032081-0.24010.405575
26-0.142709-1.06790.145066
270.0371480.2780.391022
280.033910.25380.400305
29-0.024027-0.17980.428978
300.0671520.50250.308635
310.0052040.03890.484537
320.0017380.0130.494834
330.0163970.12270.451389
34-0.049908-0.37350.355102
35-0.085124-0.6370.263356
360.1860091.3920.084719
370.0040520.03030.48796
38-0.153795-1.15090.127333
390.079360.59390.277494
400.0265190.19850.421705
41-0.100204-0.74990.228239
420.0698860.5230.301527
430.0413340.30930.379115
44-0.07217-0.54010.295645
450.0442060.33080.371013
460.0091490.06850.47283
47-0.123561-0.92460.179559
480.1323080.99010.163191
490.0266690.19960.421268
50-0.122058-0.91340.182475
510.0889990.6660.25407
52-0.00349-0.02610.489628
53-0.067966-0.50860.306511
540.0462090.34580.365395
55-0.003569-0.02670.489394
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.356656-2.6690.004968
2-0.383879-2.87270.002869
30.0927120.69380.24534
4-0.055016-0.41170.341064
5-0.00651-0.04870.480659
60.2048151.53270.065491
7-0.009253-0.06920.472522
80.1255120.93920.17582
90.0040640.03040.487924
10-0.17344-1.29790.09982
11-0.489885-3.6660.000275
120.1617691.21060.115573
130.0626750.4690.320439
140.0259710.19440.423302
15-0.2075-1.55280.063054
16-0.030218-0.22610.410962
170.0354140.2650.395985
18-0.102466-0.76680.223215
19-0.012398-0.09280.463205
200.0096390.07210.471377
21-0.034191-0.25590.399498
22-0.117445-0.87890.191612
23-0.06061-0.45360.325947
24-0.07046-0.52730.300043
250.0052880.03960.484289
26-0.134287-1.00490.15963
27-0.042132-0.31530.376857
28-0.063886-0.47810.317227
290.0201940.15110.440213
300.1118470.8370.20308
310.0994870.74450.229845
32-0.109082-0.81630.208895
33-0.079443-0.59450.277286
340.042330.31680.376297
35-0.130432-0.97610.166615
36-0.114448-0.85650.197699
37-0.126987-0.95030.173025
380.0123860.09270.46324
390.0072740.05440.478391
400.0932850.69810.244007
41-0.018119-0.13560.446315
42-0.091338-0.68350.248552
430.0048420.03620.485612
44-0.022299-0.16690.434036
45-0.033925-0.25390.400263
46-0.005511-0.04120.483625
470.0022080.01650.493438
48-0.073901-0.5530.291223
49-0.09393-0.70290.242513
50-0.047117-0.35260.36286
510.0506930.37940.352931
52-0.022128-0.16560.434539
530.0104920.07850.468848
54-0.040259-0.30130.382161
55-0.031491-0.23570.407278
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/1alpl1293364063.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/1alpl1293364063.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/2lco61293364063.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/2lco61293364063.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/3lco61293364063.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t12933639508e8dzsoc7ec3o0q/3lco61293364063.ps (open in new window)


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