Home » date » 2010 » Dec » 27 »

*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: Mon, 27 Dec 2010 20:08:33 +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/27/t1293480563o7ui422ym6zegbk.htm/, Retrieved Mon, 27 Dec 2010 21:09:23 +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/27/t1293480563o7ui422ym6zegbk.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 «
6 6 8 4 8 10 9 12 9 11 11 11 11 11 9 8 6 7 8 6 5 2 3 3 7 8 7 7 6 6 7 5 5 5 4 4 4 1 -1 3 4 3 2 1 4 3 5 6 6 6 6 6 5 6 5 6 5 7 4 5 6 6 5 3 2 3 3 2 0 4 4 5 6 6 5 5 3 5 5 5 3 6 6 4 6 5 4 5 5 4 3 2 3 2 -1 0 -2 1 -2 -2 -2 -6 -4 -2 0 -5 -4 -5 -1 -2 -4 -1 1 1 -2 1 1 3 3 1 1 0 2 2 -1 1 0 1 1 3 2
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.87390910.00230
20.8238039.42890
30.7748698.86880
40.7549118.64030
50.7214268.25710
60.6456977.39030
70.5887686.73880
80.5206135.95870
90.4800515.49440
100.4207324.81552e-06
110.3928544.49648e-06
120.3550124.06334.1e-05
130.3249553.71930.000148
140.2995873.42890.000405
150.2861963.27570.000675
160.2653973.03760.001439
170.2263062.59020.005339
180.2244722.56920.005657
190.2001562.29090.011783
200.2018832.31070.011207
210.1780772.03820.021772
220.1679611.92240.028363
230.1468751.68110.047567
240.1154941.32190.094255
250.1170561.33980.091321
260.0893121.02220.15428
270.0665880.76210.223674
280.0413540.47330.318386
290.0278880.31920.375046
300.0335970.38450.350602
310.0218440.250.401483
32-0.002383-0.02730.489141
33-0.001993-0.02280.490917
340.000110.00130.499497
350.0001240.00140.499433
36-0.017866-0.20450.419147
37-0.002823-0.03230.487137
380.0010840.01240.495061
390.0005120.00590.497668
400.0010670.01220.495137
41-0.000556-0.00640.497464
420.0247820.28360.388568
430.0131940.1510.440099
440.0041610.04760.481043
45-0.000603-0.00690.497251
460.0004940.00560.497751
47-0.004316-0.04940.48034
48-0.019465-0.22280.412026


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.87390910.00230
20.2542982.91060.00212
30.0714190.81740.207584
40.1385161.58540.057644
50.0202530.23180.408523
6-0.201692-2.30850.01127
7-0.065005-0.7440.229099
8-0.110978-1.27020.103133
90.0033160.0380.484891
10-0.050663-0.57990.2815
110.1197091.37010.086495
120.0420710.48150.315475
130.0436870.50.30895
140.0334220.38250.351344
150.068440.78330.217425
16-0.057605-0.65930.255425
17-0.120131-1.3750.085745
180.0620530.71020.239412
19-0.059788-0.68430.247494
200.039890.45660.324372
21-0.003683-0.04220.483219
220.0413830.47360.318269
23-0.048408-0.55410.290244
24-0.085166-0.97480.165735
250.0745670.85350.197482
26-0.067189-0.7690.221634
27-0.096598-1.10560.135459
280.03670.420.33757
290.0202010.23120.408758
300.0972471.1130.133863
310.0161150.18440.426976
32-0.04168-0.47710.31706
330.0653450.74790.227929
34-0.028782-0.32940.371182
35-0.024714-0.28290.388865
36-0.104119-1.19170.117768
370.1119831.28170.101105
38-0.01118-0.1280.44919
390.0084990.09730.461329
400.0243610.27880.390409
410.0038620.04420.482406
420.1050091.20190.115788
43-0.110087-1.260.104955
44-0.066276-0.75860.224739
45-0.022929-0.26240.3967
46-0.036611-0.4190.337939
470.0098480.11270.455212
48-0.029069-0.33270.369941
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293480563o7ui422ym6zegbk/1jj2j1293480510.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293480563o7ui422ym6zegbk/1jj2j1293480510.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t1293480563o7ui422ym6zegbk/26puy1293480510.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t1293480563o7ui422ym6zegbk/26puy1293480510.ps (open in new window)


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