Home » date » 2009 » Nov » 26 »

(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, 26 Nov 2009 02:42:54 -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/26/t1259228771c25ptdq4uel33lf.htm/, Retrieved Thu, 26 Nov 2009 10:46:13 +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/26/t1259228771c25ptdq4uel33lf.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.4 1 -0.8 -2.9 -0.7 -0.7 1.5 3 3.2 3.1 3.9 1 1.3 0.8 1.2 2.9 3.9 4.5 4.5 3.3 2 1.5 1 2.1 3 4 5.1 4.5 4.2 3.3 2.7 1.8 1.4 0.5 -0.4 0.8 0.7 1.9 2 1.1 0.9 0.4 0.7 2.1 2.8 3.9 3.5 2 2 1.5 2.5 3.1 2.7 2.8 2.5 3 3.2 2.8 2.4 2 1.8 1.1 -1.5 -3.7
 
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.7192065.75360
20.4007783.20620.00105
30.1033860.82710.20563
4-0.13139-1.05110.148578
5-0.192757-1.54210.063995
6-0.151056-1.20840.115661
7-0.065622-0.5250.300706
80.0795640.63650.263357
90.123980.99180.162506
100.0735760.58860.279097
11-0.01729-0.13830.445212
12-0.162625-1.3010.098962
13-0.236087-1.88870.031733
14-0.273689-2.18950.016106
15-0.285341-2.28270.012889
16-0.221913-1.77530.040301
17-0.152494-1.220.11348
18-0.042913-0.34330.366247
190.0517050.41360.340262
200.0607090.48570.314428
21-0.004079-0.03260.487036
22-0.10429-0.83430.203602
23-0.204878-1.6390.053058
24-0.229368-1.83490.035581
25-0.16407-1.31260.097009
26-0.037596-0.30080.382284
270.123420.98740.163593
280.2286411.82910.03602
290.2730672.18450.016296
300.2190841.75270.042224
310.1447551.1580.125576
320.050480.40380.343837
33-0.006368-0.05090.479763
34-0.043655-0.34920.364028
35-0.044869-0.3590.360405
36-0.009211-0.07370.470746


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7192065.75360
2-0.241284-1.93030.029003
3-0.17788-1.4230.07979
4-0.132331-1.05860.14687
50.108330.86660.194689
60.0382570.30610.380276
70.0077160.06170.475487
80.1353531.08280.141474
9-0.100384-0.80310.212453
10-0.100932-0.80750.211198
11-0.050929-0.40740.342525
12-0.119561-0.95650.171212
130.0140770.11260.455343
14-0.11177-0.89420.187294
15-0.099177-0.79340.215233
16-0.022238-0.17790.429681
17-0.054817-0.43850.331236
180.0975210.78020.219084
19-0.002879-0.0230.490847
20-0.058742-0.46990.319999
21-0.132999-1.0640.145666
22-0.100989-0.80790.211068
23-0.056723-0.45380.325758
24-0.022565-0.18050.428658
250.0650670.52050.302242
260.0253290.20260.420031
270.0288470.23080.409113
28-0.012149-0.09720.46144
290.0343640.27490.392133
30-0.026763-0.21410.415573
310.088840.71070.239919
32-0.036609-0.29290.385283
330.0104920.08390.466683
34-0.090212-0.72170.236555
35-0.038204-0.30560.38044
360.0136980.10960.456541
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259228771c25ptdq4uel33lf/1gpux1259228572.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259228771c25ptdq4uel33lf/1gpux1259228572.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259228771c25ptdq4uel33lf/253ur1259228572.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259228771c25ptdq4uel33lf/253ur1259228572.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