Home » date » 2009 » Dec » 17 »

Paper: (Partial) Autocorrelation function

*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: Thu, 17 Dec 2009 05:52:26 -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/Dec/17/t1261054459cbn2jp1j17i3v3w.htm/, Retrieved Thu, 17 Dec 2009 13:54:22 +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/Dec/17/t1261054459cbn2jp1j17i3v3w.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:
SHW Paper: (Partial) Autocorrelation function
 
Dataseries X:
» Textbox « » Textfile « » CSV «
15.5 15.1 11.7 16.3 16.7 15 14.9 14.6 15.3 17.9 16.4 15.4 17.9 15.9 13.9 17.8 17.9 17.4 16.7 16 16.6 19.1 17.8 17.2 18.6 16.3 15.1 19.2 17.7 19.1 18 17.5 17.8 21.1 17.2 19.4 19.8 17.6 16.2 19.5 19.9 20 17.3 18.9 18.6 21.4 18.6 19.8 20.8 19.6 17.7 19.8 22.2 20.7 17.9 20.9 21.2 21.4 23 21.3 23.9 22.4 18.3 22.8 22.3 17.8 16.4 16 16.4 17.7 16.6 16.2 18.3
 
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.6133495.24051e-06
20.4677843.99677.6e-05
30.541734.62858e-06
40.5044584.31012.5e-05
50.4352293.71860.000195
60.422953.61370.000276
70.2541942.17180.016559
80.3108662.6560.004852
90.2171071.8550.03382
100.0852630.72850.234324
110.2095911.79070.03874
120.3869173.30580.000735
130.1540711.31640.096082
140.0636950.54420.293977
150.1052170.8990.185812
160.1457951.24570.108434
170.1069940.91420.181823
180.1145920.97910.165387
190.049140.41990.337913
200.0663970.56730.286128
21-0.014879-0.12710.449594
22-0.078018-0.66660.253568
230.0214940.18360.427402
240.122661.0480.149045
25-0.017222-0.14710.441712
26-0.119799-1.02360.15471
27-0.088926-0.75980.224916
28-0.017617-0.15050.440384
29-0.088646-0.75740.225626
30-0.083108-0.71010.239959
31-0.0978-0.83560.203052
32-0.1305-1.1150.134255
33-0.179228-1.53130.065006
34-0.19608-1.67530.049077
35-0.183053-1.5640.061071
36-0.069485-0.59370.277282


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6133495.24051e-06
20.1468211.25440.106843
30.3389632.89610.002491
40.1005580.85920.196531
50.0569850.48690.313902
60.0515330.44030.33051
7-0.258116-2.20530.01529
80.160361.37010.087426
9-0.246861-2.10920.01918
10-0.079032-0.67530.250824
110.2447742.09130.019988
120.3946093.37150.000599
13-0.196349-1.67760.048851
14-0.210748-1.80060.037946
15-0.066905-0.57160.284663
160.0091450.07810.468969
17-0.115706-0.98860.163065
180.1478731.26340.105228
190.1270541.08560.140625
20-0.097304-0.83140.20424
21-0.094635-0.80860.210697
220.0072970.06230.475229
230.024280.20750.418117
24-0.085514-0.73060.233672
250.0854190.72980.233918
26-0.067834-0.57960.281993
27-0.078779-0.67310.251509
280.0399920.34170.366781
29-0.100707-0.86040.196182
30-0.004622-0.03950.484305
31-0.030444-0.26010.397755
320.004440.03790.48492
33-0.001603-0.01370.494556
340.0034210.02920.48838
35-0.10958-0.93630.176115
360.0030030.02570.4898
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261054459cbn2jp1j17i3v3w/11qx01261054344.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261054459cbn2jp1j17i3v3w/11qx01261054344.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/17/t1261054459cbn2jp1j17i3v3w/2la5t1261054344.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/17/t1261054459cbn2jp1j17i3v3w/2la5t1261054344.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