Home » date » 2010 » Dec » 29 »

Paper

*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: Wed, 29 Dec 2010 13:52: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/29/t1293630624hyrenr0iic8xh9q.htm/, Retrieved Wed, 29 Dec 2010 14:50:24 +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/29/t1293630624hyrenr0iic8xh9q.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 «
26548 26752 26967 27034 27056 27476 28497 29085 28720 29067 29249 29672 29761 30066 30315 30571 30757 30742 31310 31381 31470 31226 31081 31061 31114 30828 30418 30195 29877 29192 29876 29409 28458 28340 28164 28438 28053 27599 27226 27119 26625 26541 27023 26631 26154 26029 26008 26632 27010 27041 27244 26976 26715 27017 27714 27655 27103 27088 26968 27770 27616 27481 27279 26918 26503 26547 27467 27305 26259 26048 25743
 
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.9485237.99240
20.889537.49530
30.8402127.07980
40.8030326.76650
50.7595666.40020
60.6915735.82730
70.6178215.20591e-06
80.5400674.55071.1e-05
90.4594513.87140.000119
100.3877043.26690.000838
110.3299852.78050.003472
120.2738912.30780.011963
130.1848741.55780.061867
140.0998450.84130.201499
150.0294230.24790.402456
16-0.023031-0.19410.423342
17-0.063931-0.53870.295891
18-0.115665-0.97460.166531
19-0.164262-1.38410.085332
20-0.207946-1.75220.04203
21-0.2404-2.02570.02328
22-0.262118-2.20860.015214
23-0.266041-2.24170.014054
24-0.26897-2.26640.013239
25-0.293402-2.47220.007912
26-0.312697-2.63480.005164
27-0.319616-2.69310.004413
28-0.314043-2.64620.005009
29-0.302782-2.55130.006444
30-0.306704-2.58430.005907
31-0.301512-2.54060.006627
32-0.295195-2.48740.00761
33-0.296764-2.50060.007355
34-0.289515-2.43950.008604
35-0.270513-2.27940.012826
36-0.247885-2.08870.02016
37-0.246134-2.0740.020855
38-0.244895-2.06350.02136
39-0.239196-2.01550.023819
40-0.224883-1.89490.031089
41-0.209916-1.76880.040612
42-0.212607-1.79150.038741
43-0.207529-1.74870.042335
44-0.206306-1.73840.043241
45-0.207783-1.75080.042149
46-0.202512-1.70640.046153
47-0.192788-1.62450.054354
48-0.182123-1.53460.064664


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9485237.99240
2-0.101342-0.85390.19801
30.071440.6020.274557
40.0809180.68180.248783
5-0.093645-0.78910.216349
6-0.246173-2.07430.02084
7-0.06825-0.57510.283527
8-0.137419-1.15790.125389
9-0.13878-1.16940.123081
100.045580.38410.35104
110.1288381.08560.140662
12-0.008186-0.0690.472601
13-0.336788-2.83780.002959
140.0646740.5450.293748
15-0.000378-0.00320.498732
16-0.024365-0.20530.418962
170.1107880.93350.176858
18-0.013031-0.10980.456439
19-0.022831-0.19240.423997
20-0.017228-0.14520.442496
210.0622780.52480.300692
22-0.046193-0.38920.349135
230.0951790.8020.212616
24-0.020664-0.17410.431133
25-0.180007-1.51680.066883
260.0175580.14790.441403
270.019280.16250.435703
28-0.088084-0.74220.230203
29-0.003826-0.03220.487187
30-0.016716-0.14090.444193
310.0778990.65640.256848
32-0.051815-0.43660.331862
33-0.143474-1.20890.115349
340.0743160.62620.266596
350.0142210.11980.452477
360.0005430.00460.498182
37-0.066976-0.56440.287147
380.0618970.52150.301804
39-0.066316-0.55880.289032
40-0.06471-0.54530.293643
410.0097180.08190.467484
42-0.082202-0.69260.245396
430.018460.15550.438417
44-0.071906-0.60590.273259
450.0302280.25470.399843
460.0041960.03540.485948
47-0.01571-0.13240.447532
48-0.039636-0.3340.36969
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630624hyrenr0iic8xh9q/13iqh1293630749.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630624hyrenr0iic8xh9q/13iqh1293630749.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630624hyrenr0iic8xh9q/2wrqk1293630749.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/29/t1293630624hyrenr0iic8xh9q/2wrqk1293630749.ps (open in new window)


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