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 05:10:08 -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/t1259323851oc5xmbcxgje3del.htm/, Retrieved Fri, 27 Nov 2009 13:10:54 +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/t1259323851oc5xmbcxgje3del.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 «
19 18 19 19 22 23 20 14 14 14 15 11 17 16 20 24 23 20 21 19 23 23 23 23 27 26 17 24 26 24 27 27 26 24 23 23 24 17 21 19 22 22 18 16 14 12 14 16 8 3 0 5 1 1 3 6 7 8 14 14 13
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8383065.86810
20.7706425.39451e-06
30.676594.73619e-06
40.590634.13446.9e-05
50.5208523.6460.000322
60.4471693.13020.001471
70.39212.74470.004221
80.354172.47920.008328
90.3182342.22760.015264
100.2256571.57960.060317
110.1556011.08920.140696
120.0147140.1030.459193
130.0188760.13210.447709
14-0.068878-0.48210.315926
15-0.085562-0.59890.275989
16-0.09527-0.66690.253985
17-0.146593-1.02610.154931
18-0.198313-1.38820.085679
19-0.246646-1.72650.045277
20-0.289518-2.02660.02408
21-0.348015-2.43610.009264
22-0.331695-2.32190.01222
23-0.354916-2.48440.008221
24-0.3376-2.36320.011065
25-0.34404-2.40830.009918
26-0.308867-2.16210.017762
27-0.329019-2.30310.012778
28-0.352878-2.47010.008517
29-0.360594-2.52420.007444
30-0.348778-2.44140.009143
31-0.306151-2.14310.01855
32-0.268865-1.88210.032887
33-0.225879-1.58120.060138
34-0.187039-1.30930.098274
35-0.11081-0.77570.220836
36-0.073843-0.51690.303775


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8383065.86810
20.228381.59870.058163
3-0.047402-0.33180.370722
4-0.05066-0.35460.362197
50.0107130.0750.470263
6-0.029546-0.20680.418503
70.0115880.08110.467839
80.0521340.36490.358364
90.013540.09480.462437
10-0.225255-1.57680.06064
11-0.087208-0.61050.272191
12-0.28852-2.01960.024454
130.3264132.28490.013343
14-0.161359-1.12950.13209
150.1199550.83970.202582
160.0006520.00460.49819
17-0.179796-1.25860.107074
18-0.209627-1.46740.07433
190.0173890.12170.451808
200.0416670.29170.385884
21-0.022697-0.15890.437207
220.1177750.82440.206846
23-0.040181-0.28130.389846
24-0.22112-1.54780.064048
250.0788370.55190.291776
26-0.005466-0.03830.484818
270.0210740.14750.441665
28-0.07137-0.49960.3098
29-0.075235-0.52660.300407
300.027880.19520.423039
310.0637430.44620.328708
320.024940.17460.431063
33-0.055059-0.38540.350799
340.2003541.40250.083538
35-0.006046-0.04230.483207
36-0.038741-0.27120.393693
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323851oc5xmbcxgje3del/1bzkx1259323807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323851oc5xmbcxgje3del/1bzkx1259323807.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323851oc5xmbcxgje3del/28gvv1259323807.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259323851oc5xmbcxgje3del/28gvv1259323807.ps (open in new window)


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