Home » date » 2010 » Dec » 17 »

*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: Fri, 17 Dec 2010 18:01: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/2010/Dec/17/t1292608812qzkc02eq50ibs4q.htm/, Retrieved Fri, 17 Dec 2010 19:00:15 +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/17/t1292608812qzkc02eq50ibs4q.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 «
31.514 27.071 29.462 26.105 22.397 23.843 21.705 18.089 20.764 25.316 17.704 15.548 28.029 29.383 36.438 32.034 22.679 24.319 18.004 17.537 20.366 22.782 19.169 13.807 29.743 25.591 29.096 26.482 22.405 27.044 17.970 18.730 19.684 19.785 18.479 10.698 31.956 29.506 34.506 27.165 26.736 23.691 18.157 17.328 18.205 20.995 17.382 9.367 31.124 26.551 30.651 25.859 25.100 25.778 20.418 18.688 20.424 24.776 19.814 12.738 31.566 30.111 30.019 31.934 25.826 26.835 20.205 17.789 20.520 22.518 15.572 11.509 25.447 24.090 27.786 26.195 20.516 22.759 19.028 16.971 20.036 22.485 18.730 14.538
 
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' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3789213.47290.000408
20.1495731.37090.087035
3-0.020125-0.18440.427054
4-0.187765-1.72090.044476
5-0.262158-2.40270.009238
6-0.467771-4.28722.4e-05
7-0.280825-2.57380.005907
8-0.216831-1.98730.025074
9-0.091541-0.8390.201928
100.0429450.39360.347437
110.2460482.25510.013365
120.7898737.23930
130.3010562.75920.003555
140.1321021.21070.114697
150.005990.05490.478176
16-0.157871-1.44690.075822
17-0.240412-2.20340.015152
18-0.459241-4.2093.2e-05
19-0.28256-2.58970.00566
20-0.231306-2.120.01848
21-0.131603-1.20620.115571
220.0136130.12480.450504
230.2061221.88910.031162
240.6581646.03220
250.2754722.52470.006729
260.112311.02930.153137
270.0234630.2150.415128
28-0.108909-0.99820.160533
29-0.179938-1.64920.051425
30-0.364842-3.34380.000618
31-0.215659-1.97650.025687
32-0.201762-1.84920.033975
33-0.141473-1.29660.099157
340.0025810.02370.490592
350.1362951.24920.107538
360.5123874.69615e-06
370.2409982.20880.014957
380.107560.98580.16353
390.0500560.45880.323791
40-0.053389-0.48930.312946
41-0.13222-1.21180.11449
42-0.241397-2.21240.014825
43-0.1474-1.35090.090171
44-0.155719-1.42720.078616
45-0.110047-1.00860.158032
46-0.017063-0.15640.438052
470.0743810.68170.248648
480.355933.26228e-04


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3789213.47290.000408
20.0069970.06410.474511
3-0.092314-0.84610.199958
4-0.17836-1.63470.052928
5-0.148591-1.36190.088442
6-0.369537-3.38690.000539
7-0.019346-0.17730.429848
8-0.154251-1.41370.080568
9-0.079873-0.73210.233087
10-0.075222-0.68940.24623
110.1375721.26090.105423
120.7128356.53320
13-0.408183-3.74110.000167
14-0.080208-0.73510.232158
150.0267980.24560.403292
16-0.023059-0.21130.416568
17-0.081799-0.74970.227766
18-0.068141-0.62450.266989
19-0.005009-0.04590.481746
20-0.059311-0.54360.294079
21-0.025792-0.23640.406854
220.09420.86340.195199
230.0336090.3080.379412
24-0.101514-0.93040.177417
250.0217220.19910.421338
26-0.124999-1.14560.127599
27-0.019989-0.18320.427542
280.0554250.5080.306401
290.0371660.34060.367114
300.1041590.95460.171252
31-0.027602-0.2530.400451
32-0.04683-0.42920.334435
330.0026320.02410.490408
340.0265590.24340.404139
35-0.163049-1.49440.069413
36-0.045957-0.42120.337343
370.0590410.54110.294929
380.0420250.38520.350545
39-0.033893-0.31060.378424
400.0677470.62090.268169
41-0.00397-0.03640.485529
420.1559081.42890.078367
43-0.092219-0.84520.200199
440.0156070.1430.443302
450.0715660.65590.256837
46-0.167294-1.53330.064483
470.0292620.26820.394604
48-0.056234-0.51540.303815
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/1rryo1292608911.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/1rryo1292608911.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/2j0y91292608911.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/2j0y91292608911.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/3j0y91292608911.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/17/t1292608812qzkc02eq50ibs4q/3j0y91292608911.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