Home » date » 2011 » Apr » 11 »

*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, 11 Apr 2011 13:44:28 +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/Apr/11/t13025292503987bnv76eiw9gq.htm/, Retrieved Mon, 11 Apr 2011 15:40:54 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12544 12264 13783 11214 11453 10883 10381 10348 10024 10805 10796 11907 12261 11377 12689 11474 10992 10764 12164 10409 10398 10349 10865 11630 12221 10884 12019 11021 10799 10423 10484 10450 9906 11049 11281 12485 12849 11380 12079 11366 11328 10444 10854 10434 10137 10992 10906 12367 14371 11695 11546 10922 10670 10254 10573 10239 10253 11176 10719 11817 12503 11510 12012 10941 11252 10662 11114 10415 10626 11411 10936 12513
 
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
1-0.344942-2.90650.002436
20.1490641.2560.10661
30.01010.08510.466211
4-0.153833-1.29620.099549
5-0.046593-0.39260.347896
6-0.143354-1.20790.115543
7-0.023464-0.19770.421918
8-0.235119-1.98110.025724
90.1436251.21020.115107
100.0537450.45290.326014
11-0.202636-1.70740.046055
120.580284.88953e-06
13-0.113419-0.95570.171236
140.100110.84350.20088
15-0.070618-0.5950.276854
16-0.055821-0.47040.319772
17-0.058114-0.48970.312935
18-0.093675-0.78930.216276
19-0.061428-0.51760.303172
20-0.170196-1.43410.077967
210.0811440.68370.248186
220.1614721.36060.088974
23-0.22285-1.87780.03226
240.4837824.07645.9e-05
25-0.109374-0.92160.17993
260.0952130.80230.212534
27-0.071084-0.5990.275552
28-0.110915-0.93460.176584
29-0.021716-0.1830.427668
30-0.090329-0.76110.224552
310.0470360.39630.346525
32-0.226446-1.90810.030213
330.1150860.96970.167735
340.1344061.13250.130612
35-0.15989-1.34730.091091
360.307892.59430.005753
37-0.068001-0.5730.284233
380.0903750.76150.224437
39-0.065986-0.5560.289977
40-0.046536-0.39210.348071
41-0.059401-0.50050.309129
42-0.062055-0.52290.30134
430.0301490.2540.400099
44-0.111571-0.94010.175173
450.0095280.08030.468119
460.1730151.45780.074646
47-0.103191-0.86950.193752
480.178371.5030.068641


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.344942-2.90650.002436
20.0341420.28770.387214
30.0812960.6850.247783
4-0.150456-1.26780.104512
5-0.17976-1.51470.067146
6-0.216932-1.82790.035883
7-0.132673-1.11790.133685
8-0.356318-3.00240.001848
9-0.154308-1.30020.098865
100.0133270.11230.455453
11-0.382844-3.22590.00095
120.309822.61060.005509
130.2659692.24110.014074
140.046910.39530.346913
15-0.154493-1.30180.0986
16-0.05852-0.49310.311733
170.0740570.6240.267308
180.0387390.32640.372534
19-0.142776-1.2030.116477
200.0004230.00360.498584
21-0.040281-0.33940.367649
220.1485911.25210.10733
23-0.122465-1.03190.152809
240.1793981.51160.067533
250.0577080.48630.314141
26-0.070731-0.5960.276538
27-0.052431-0.44180.329991
28-0.056321-0.47460.318275
29-0.020257-0.17070.432477
30-0.016355-0.13780.445389
310.1081450.91120.182625
320.0518590.4370.331729
33-0.02948-0.24840.40227
34-0.042154-0.35520.361747
35-0.001925-0.01620.493552
36-0.098794-0.83250.203972
37-0.038154-0.32150.374393
38-0.03168-0.26690.395145
390.068190.57460.283696
400.0385140.32450.373247
410.041030.34570.365286
420.0028640.02410.490408
43-0.087318-0.73580.232152
440.0757630.63840.262638
450.0049560.04180.483405
46-0.002754-0.02320.490775
470.0304130.25630.399244
48-0.021757-0.18330.427531
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/1cljl1302529465.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/1cljl1302529465.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/21vgq1302529465.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/21vgq1302529465.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/3mab21302529465.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t13025292503987bnv76eiw9gq/3mab21302529465.ps (open in new window)


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