Home » date » 2010 » Dec » 16 »

*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: Thu, 16 Dec 2010 18:45:46 +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/16/t12925250148f9mfp35qa0shab.htm/, Retrieved Thu, 16 Dec 2010 19:43:37 +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/16/t12925250148f9mfp35qa0shab.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 «
294912 293488 290555 284736 281818 287854 316263 325412 326011 328282 317480 317539 313737 312276 309391 302950 300316 304035 333476 337698 335932 323931 313927 314485 313218 309664 302963 298989 298423 301631 329765 335083 327616 309119 295916 291413 291542 284678 276475 272566 264981 263290 296806 303598 286994 276427 266424 267153 268381 262522 255542 253158 243803 250741 280445 285257 270976 261076 255603 260376 263903 264291 263276 262572 256167 264221 293860 300713 287224 275902 271115 277509 279681 276239 271037 266148 259497 266795 298305 303725 289742 276444 268606
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1557851.30340.098357
20.1559081.30440.098181
30.1841911.54110.063906
40.1625391.35990.089112
50.0876330.73320.232946
60.1158310.96910.167913
70.0095180.07960.468378
80.1152270.96410.169169
9-0.004877-0.04080.483784
10-0.080696-0.67510.250903
110.1951741.63290.053486
12-0.009484-0.07930.468491
13-0.093917-0.78580.217328
140.1401011.17220.122551
150.0162630.13610.446079
16-0.001906-0.01590.493661
17-0.019397-0.16230.435774
18-0.02448-0.20480.419157
190.0911040.76220.224241
20-0.01589-0.13290.447307
21-0.190442-1.59330.057794
22-0.059299-0.49610.310677
230.0171210.14320.443253
24-0.235349-1.96910.026452
25-0.053513-0.44770.327868
26-0.252421-2.11190.019132
27-0.223422-1.86930.032883
28-0.197055-1.64870.051847
29-0.093648-0.78350.217984
30-0.133258-1.11490.13435
31-0.002139-0.01790.492887
32-0.17894-1.49710.069429
330.0445780.3730.355151
340.0013070.01090.495652
350.0118990.09960.46049
36-0.044388-0.37140.355739
37-0.062752-0.5250.300613
38-0.042499-0.35560.361615
39-0.039517-0.33060.370957
40-0.034653-0.28990.386363
41-0.049713-0.41590.339368
42-0.008695-0.07270.471107
43-0.045468-0.38040.352394
44-0.022914-0.19170.424261
45-0.041359-0.3460.365178
46-0.051873-0.4340.33281
470.0042190.03530.485972
480.0296520.24810.402396


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1557851.30340.098357
20.1349141.12880.131424
30.14841.24160.109264
40.1071320.89630.186573
50.0159350.13330.447161
60.0510710.42730.335241
7-0.063753-0.53340.297724
80.0779310.6520.258264
9-0.058153-0.48650.314053
10-0.115697-0.9680.16819
110.2186051.8290.035831
12-0.059616-0.49880.309749
13-0.108645-0.9090.183238
140.1599671.33840.092552
15-0.028095-0.23510.407425
16-0.01439-0.12040.452256
17-0.056071-0.46910.320221
18-0.007288-0.0610.475775
190.0862380.72150.236498
20-0.061263-0.51260.304936
21-0.142988-1.19630.117804
22-0.108484-0.90760.18359
230.0897940.75130.227505
24-0.148738-1.24440.108746
25-0.044332-0.37090.355912
26-0.206495-1.72770.04423
27-0.126556-1.05880.146656
28-0.062187-0.52030.30225
290.0732260.61270.271044
30-0.057376-0.480.316348
310.0860970.72030.236857
32-0.00899-0.07520.47013
330.1122930.93950.175349
34-0.050018-0.41850.338438
350.1510911.26410.10519
36-0.067498-0.56470.287031
37-0.124167-1.03890.151223
380.0515970.43170.333647
39-0.092643-0.77510.220444
400.0805810.67420.251205
410.0046990.03930.484374
42-0.042915-0.35910.360318
430.0194630.16280.435558
44-0.010023-0.08390.466703
45-0.038568-0.32270.373948
46-0.055875-0.46750.320802
47-0.002396-0.020.492031
48-0.002945-0.02460.490206
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/10zvy1292525142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/10zvy1292525142.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/2tqu11292525142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/2tqu11292525142.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/3tqu11292525142.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t12925250148f9mfp35qa0shab/3tqu11292525142.ps (open in new window)


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