Home » date » 2011 » May » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 19 May 2011 17:40:53 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at.htm/, Retrieved Thu, 19 May 2011 19:37:11 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
19097,1 19304,6 19601,7 16006,9 17681,2 19790,4 17014,2 17424,5 18908,9 15692,1 15160 15794,3 16032,1 16065 16236,8 12521 14762,1 15446,9 13635 14212,6 15021,7 14134,3 13721,4 14384,5 15638,6 19711,6 20359,8 16141,4 20056,9 20605,5 19325,8 20547,7 19211,2 19009,5 18746,8 16471,5 18957,2 20515,2 18374,4 16192,9 18147,5 19301,4 18344,7 17183,6 19630 17167,2 17428,5 16016,5 18466,5 18406,6 18174,1 14851,9 16260,7 18329,6 18003,8 15903,8 19554,2 16554,2 16198,9 16571,8 17535,2 16198,1 17487,5 13768 14915,8 17160,9 15607,4 16181,5 17413,2 15116,3 14544,5 15050,6 15535,4 15919,3 15853,1 12336,4 14355,5 16040,8 13867,7 14656,6
 
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'George Udny Yule' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5578074.98922e-06
20.3916193.50270.000378
30.5130664.5898e-06
40.4484464.0116.8e-05
50.3235692.89410.002449
60.3279322.93310.002188
70.1407071.25850.105932
80.1658151.48310.070989
90.0317850.28430.388461
10-0.173403-1.5510.062429
11-0.061935-0.5540.290574
120.1589441.42160.079509
13-0.159304-1.42490.079043
14-0.263422-2.35610.010457
15-0.193638-1.7320.043568
16-0.160828-1.43850.077099
17-0.199555-1.78490.039036
18-0.176029-1.57440.059665
19-0.219863-1.96650.026354
20-0.121014-1.08240.141167
21-0.196032-1.75340.041685
22-0.279781-2.50240.007186
23-0.097417-0.87130.193093
240.0889930.7960.2142
25-0.054214-0.48490.314535
26-0.152946-1.3680.087573
27-0.086746-0.77590.220055
280.0272510.24370.404027
29-0.059636-0.53340.297616
30-0.074651-0.66770.253124
31-0.065376-0.58470.280185
32-0.080601-0.72090.236532
33-0.152348-1.36260.088409
34-0.193914-1.73440.043347
35-0.162469-1.45320.075044
360.0130030.11630.453851
37-0.102812-0.91960.180278
38-0.245203-2.19320.0156
39-0.114614-1.02510.154194
40-0.033441-0.29910.382816
41-0.125009-1.11810.133432
42-0.06299-0.56340.28737
43-0.059248-0.52990.298814
44-0.08597-0.76890.222097
45-0.08963-0.80170.212557
46-0.097505-0.87210.19288
47-0.085513-0.76490.223305
480.1017570.91010.182741


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5578074.98922e-06
20.1168181.04490.149619
30.3752663.35650.000605
40.060820.5440.293982
5-0.008366-0.07480.47027
60.0317850.28430.388459
7-0.297541-2.66130.004702
80.1171991.04830.148838
9-0.339505-3.03660.001614
10-0.210615-1.88380.031613
110.1530271.36870.08746
120.4201423.75790.000162
13-0.220906-1.97580.02581
14-0.180099-1.61090.055575
15-0.182993-1.63670.052807
160.0756640.67680.250256
17-0.023962-0.21430.41542
180.0159740.14290.443375
190.0400280.3580.360635
200.0114190.10210.459452
210.0354330.31690.376064
22-0.030299-0.2710.393543
230.0851650.76170.224228
24-0.036574-0.32710.372214
250.0822160.73540.232134
26-0.251898-2.2530.013497
27-0.034395-0.30760.37958
280.0211950.18960.425061
29-0.164113-1.46790.07303
300.0078380.07010.472144
31-0.084172-0.75290.226874
32-0.067476-0.60350.273935
330.0511660.45760.324223
340.1083030.96870.167809
35-0.142834-1.27750.102552
360.1025830.91750.180811
37-0.154608-1.38290.085279
380.0825950.73880.231109
390.0382890.34250.366449
40-0.11329-1.01330.156987
410.0179990.1610.436253
42-0.057026-0.51010.305708
430.0019910.01780.492919
44-0.118396-1.0590.146401
45-0.010753-0.09620.461811
460.0310420.27760.391
470.0126490.11310.455104
48-0.032862-0.29390.384786
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/1dyot1305826850.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/1dyot1305826850.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/203rk1305826850.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/203rk1305826850.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/36k8u1305826850.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305826627okvupvpvja5p6at/36k8u1305826850.ps (open in new window)


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