Home » date » 2011 » Jan » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 16 Jan 2011 12:29:25 +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/Jan/16/t1295180921hg9op3xqnxr41b9.htm/, Retrieved Sun, 16 Jan 2011 13:28:42 +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/2011/Jan/16/t1295180921hg9op3xqnxr41b9.htm/},
    year = {2011},
}
@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 = {2011},
    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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
10574 10653 10805 10872 10625 10407 10463 10556 10646 10702 11353 11346 11451 11964 12574 13031 13812 14544 14931 14886 16005 17064 15168 16050 15839 15137 14954 15648 15305 15579 16348 15928 16171 15937 15713 15594 15683 16438 17032 17696 17745 19394 20148 20108 18584 18441 18391 19178 18073 18483 19644 19195 19650 20830 23595 22937 21814 21928 21777 21383 21467 22052 22680 24320 24977 25204 27390 26434 27525 30695 32436 30160 30236
 
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.9375138.01010
20.8723797.45360
30.7975586.81430
40.7281516.22130
50.6701525.72580
60.6202255.29921e-06
70.5646834.82474e-06
80.5199274.44231.6e-05
90.4771974.07725.7e-05
100.4362613.72740.00019
110.4091073.49540.000404
120.3826793.26960.000822
130.3540223.02480.001717
140.3261222.78640.003394
150.2985082.55050.006428
160.2672232.28320.012667
170.2325831.98720.025327
180.1957971.67290.049315
190.1589171.35780.089357
200.137721.17670.121573
210.1244951.06370.145488
220.1184181.01180.157497
230.1010090.8630.195477
240.0892090.76220.224198
250.0776230.66320.254641
260.0574950.49120.312366
270.0404460.34560.365329
280.0199910.17080.432426
29-0.003675-0.03140.487519
30-0.036616-0.31280.377645
31-0.066515-0.56830.285786
32-0.09594-0.81970.207524
33-0.114096-0.97480.16643
34-0.135725-1.15960.124988
35-0.156233-1.33490.093036
36-0.171852-1.46830.073158
37-0.184366-1.57520.059764
38-0.195595-1.67120.049486
39-0.205093-1.75230.041959
40-0.215177-1.83850.03503
41-0.228779-1.95470.027225
42-0.233525-1.99520.024875
43-0.23875-2.03990.022491
44-0.241988-2.06750.021114
45-0.246048-2.10220.019491
46-0.254762-2.17670.016369
47-0.26186-2.23730.014159
48-0.266784-2.27940.012784


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9375138.01010
2-0.05411-0.46230.322614
3-0.114595-0.97910.165381
40.0063810.05450.478336
50.0599020.51180.305166
60.0223220.19070.424638
7-0.095036-0.8120.209719
80.0543940.46470.321749
90.0058470.050.480147
10-0.0249-0.21270.416059
110.0816640.69770.243779
12-0.01156-0.09880.460795
13-0.044458-0.37980.352581
14-0.01476-0.12610.449995
150.0090460.07730.469303
16-0.042943-0.36690.357374
17-0.07022-0.60.275195
18-0.021853-0.18670.426203
19-0.014956-0.12780.449335
200.0964680.82420.20625
210.0413220.35310.362531
220.0194710.16640.434165
23-0.122549-1.04710.149263
240.0472590.40380.343776
250.0323760.27660.391426
26-0.117998-1.00820.15835
27-0.00102-0.00870.496537
28-0.026657-0.22780.410236
29-0.028268-0.24150.404915
30-0.109675-0.93710.175907
310.0212840.18190.428101
320.0060190.05140.479565
330.009090.07770.469154
34-0.054629-0.46680.321033
35-0.022824-0.1950.422965
360.0082950.07090.471845
37-0.019537-0.16690.433944
38-0.014718-0.12570.450138
39-0.011594-0.09910.460681
40-0.014041-0.120.452419
41-0.029782-0.25450.39993
420.0440040.3760.354015
43-0.002325-0.01990.492103
44-0.018814-0.16070.436368
45-0.024604-0.21020.417042
46-0.052903-0.4520.326304
470.0046290.03960.484278
480.0056440.04820.480835
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/1cpde1295180961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/1cpde1295180961.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/2fh6v1295180961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/2fh6v1295180961.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/38wb01295180961.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t1295180921hg9op3xqnxr41b9/38wb01295180961.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