Home » date » 2009 » Nov » 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: Fri, 27 Nov 2009 08:49:14 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Nov/27/t1259337239d0gi3krayqm0vxi.htm/, Retrieved Fri, 27 Nov 2009 16:54:01 +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/2009/Nov/27/t1259337239d0gi3krayqm0vxi.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1.4816 1.4562 1.4268 1.4088 1.4016 1.3650 1.3190 1.3050 1.2785 1.3239 1.3449 1.2732 1.3322 1.4369 1.4975 1.5770 1.5553 1.5557 1.5750 1.5527 1.4748 1.4718 1.4570 1.4684 1.4227 1.3896 1.3622 1.3716 1.3419 1.3511 1.3516 1.3242 1.3074 1.2999 1.3213 1.2881
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8735415.24124e-06
20.7110534.26636.9e-05
30.5326333.19580.00145
40.3334982.0010.026489
50.1240130.74410.230829
6-0.082498-0.4950.311809
7-0.266613-1.59970.059205
8-0.375998-2.2560.015121
9-0.436521-2.61910.00641
10-0.503204-3.01920.002319
11-0.523216-3.13930.001687
12-0.468944-2.81370.003944
13-0.375953-2.25570.01513
14-0.298637-1.79180.040785
15-0.2384-1.43040.080613
16-0.209422-1.25650.108508
17-0.136998-0.8220.208248
18-0.060518-0.36310.359323
190.0026680.0160.493658
200.0615220.36910.357096
210.1399040.83940.203386
220.1798631.07920.143843
230.2018981.21140.116819
240.1811371.08680.14217
250.1336160.80170.213995
260.1136660.6820.249803
270.0920530.55230.292072
280.0422850.25370.400582
290.0107390.06440.47449
30-0.02438-0.14630.442259
31-0.049762-0.29860.383492
32-0.054891-0.32930.371902
33-0.053097-0.31860.375943
34-0.043635-0.26180.39748
35-0.031404-0.18840.425802
36NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8735415.24124e-06
2-0.219569-1.31740.098011
3-0.146694-0.88020.192305
4-0.197769-1.18660.121576
5-0.182531-1.09520.140355
6-0.16759-1.00550.160674
7-0.118257-0.70950.24128
80.1124170.67450.252151
9-0.003251-0.01950.492272
10-0.255202-1.53120.067229
11-0.022527-0.13520.446618
120.1339750.80380.21338
130.0310250.18620.426685
14-0.201409-1.20850.117376
15-0.148063-0.88840.190117
16-0.224332-1.3460.09336
170.111970.67180.252993
180.0351210.21070.417144
190.0973670.58420.281364
200.026910.16150.436317
210.0159130.09550.462232
22-0.266219-1.59730.059469
23-0.046379-0.27830.391198
24-0.096009-0.57610.284082
25-0.052945-0.31770.376286
260.0393770.23630.407284
27-0.008387-0.05030.480072
28-0.065194-0.39120.348992
290.1454030.87240.194381
30-0.124733-0.74840.229541
310.0276040.16560.434689
32-0.082151-0.49290.312536
33-0.01181-0.07090.471952
34-0.103766-0.62260.268738
35-0.108081-0.64850.260394
36NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259337239d0gi3krayqm0vxi/1bvqk1259336952.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259337239d0gi3krayqm0vxi/1bvqk1259336952.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259337239d0gi3krayqm0vxi/2q0ke1259336952.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259337239d0gi3krayqm0vxi/2q0ke1259336952.ps (open in new window)


 
Parameters (Session):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 36 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = MA ; 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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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