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 16:22:27 +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/t130253873053j2u04a3wuk03v.htm/, Retrieved Mon, 11 Apr 2011 18:18:51 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2851 2672 2755 2721 2946 3036 2282 2212 2922 4301 5764 7132 2541 2475 3031 3266 3776 3230 3028 1759 3595 4474 6838 8357 3113 3006 4047 3523 3937 3986 3260 1573 3528 5211 7614 9254 5375 3088 3718 4514 4520 4539 3663 1643 4734 5428 8314 10651 3633 4292 4154 4121 4647 4753 3965 1723 5048 6923 9858 11331 4016 3957 4510 4276 4968 4677 3523 1821 5222 6872 10803 13916 2639 2899 3370 3740 2927 3986 4217 1738 5221 6424 9842 13076 3934 3162 4286 4676 5010 4874 4633 1659 5951 6981 9851 12670
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4815894.71864e-06
20.0499290.48920.312906
3-0.158794-1.55590.061516
4-0.253166-2.48050.00743
5-0.024456-0.23960.405567
60.0525480.51490.303914
7-0.024601-0.2410.405019
8-0.25167-2.46590.007722
9-0.176707-1.73140.0433
100.00550.05390.47857
110.3903813.82490.000116
120.8383978.21460
130.4074013.99176.4e-05
140.0100160.09810.461013
15-0.181035-1.77380.039636
16-0.257236-2.52040.006686
17-0.057245-0.56090.288091
180.0156910.15370.439069
19-0.051334-0.5030.30807
20-0.248932-2.4390.008282
21-0.175664-1.72120.044222
22-0.019552-0.19160.424243
230.3002212.94160.002047
240.6823516.68560
250.3197383.13280.001148
26-0.016167-0.15840.437236
27-0.186037-1.82280.035725
28-0.24071-2.35850.010189
29-0.067543-0.66180.254849
300.0078090.07650.469587
31-0.038387-0.37610.353832
32-0.203689-1.99570.024398
33-0.151456-1.4840.070547
34-0.026905-0.26360.396321
350.228662.24040.013685
360.5024914.92342e-06
370.2130582.08750.019744
38-0.047451-0.46490.321519
39-0.17648-1.72910.043499
40-0.219477-2.15040.017017
41-0.075371-0.73850.231011
42-0.013943-0.13660.445811
43-0.055681-0.54560.293317
44-0.17949-1.75860.040913
45-0.135742-1.330.093335
46-0.043478-0.4260.335533
470.1587431.55540.061576
480.3725013.64970.000214


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4815894.71864e-06
2-0.236955-2.32170.011182
3-0.102659-1.00580.158509
4-0.14529-1.42350.078911
50.2213152.16840.016298
6-0.108049-1.05870.146207
7-0.096252-0.94310.174007
8-0.318893-3.12450.001178
90.2480992.43090.00846
10-0.020293-0.19880.421406
110.5433455.32370
120.6100525.97730
13-0.377138-3.69520.000183
14-0.059897-0.58690.279335
150.0267410.2620.396938
160.0170320.16690.433907
17-0.140839-1.37990.085406
18-0.056628-0.55480.290147
190.015530.15220.439688
200.0554220.5430.294187
210.0160740.15750.437595
22-0.046121-0.45190.326184
23-0.083662-0.81970.207203
24-0.009692-0.0950.46227
25-0.039127-0.38340.351148
260.0747910.73280.232734
27-0.052069-0.51020.305551
280.0431060.42230.336858
29-0.012894-0.12630.449867
300.0959580.94020.174739
310.0217260.21290.415939
320.0528010.51730.303054
33-0.109173-1.06970.143724
340.0360740.35350.362262
35-0.053194-0.52120.301715
36-0.214118-2.09790.019269
370.0103880.10180.45957
380.0677030.66340.254347
390.0488250.47840.316732
40-0.095486-0.93560.175922
410.0193850.18990.42488
42-0.045833-0.44910.327196
43-0.057012-0.55860.288868
44-0.032204-0.31550.376522
45-0.013471-0.1320.447634
46-0.077417-0.75850.224998
470.0206090.20190.4202
480.139541.36720.087377
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/1r03f1302538942.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/1r03f1302538942.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/221s21302538942.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/221s21302538942.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/366oe1302538942.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t130253873053j2u04a3wuk03v/366oe1302538942.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