Home » date » 2010 » Jan » 10 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 10 Jan 2010 06:54:30 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/10/t1263131717ry768ipet7d0gf1.htm/, Retrieved Sun, 10 Jan 2010 14:55:19 +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/Jan/10/t1263131717ry768ipet7d0gf1.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
104.28 104.33 104.46 104.46 104.5 104.61 104.66 104.66 105.03 105.32 105.52 105.67 105.71 105.81 106 106.02 106.19 106.22 106.34 106.42 106.84 107.23 107.42 107.63 107.69 107.81 107.92 108.06 108.21 108.44 108.55 108.66 109.23 109.7 109.94 110.13 110.39 110.46 110.67 110.89 110.98 111.12 111.33 111.43 111.87 112.22 112.47 112.64 112.84 113.03 113.09 113.27 113.44 113.51 113.66 113.62 114.01 114.55 114.77 114.87 115.11 115.09 115.24 115.27 115.41 115.59 115.6 115.68 116.2 116.55 116.73 117.04 117.12 117.28 117.48 117.66 117.92 118.12 118.17 118.39
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2532942.25130.013571
2-0.032979-0.29310.385099
30.0131080.11650.453774
4-0.163834-1.45620.074652
5-0.162128-1.4410.076765
6-0.043494-0.38660.350052
7-0.197032-1.75130.041891
8-0.078159-0.69470.244642
9-0.084279-0.74910.228013
10-0.078431-0.69710.24389
110.3337592.96650.001992
120.5844895.19511e-06
130.2199691.95510.027052
14-0.029096-0.25860.398303
15-0.090608-0.80530.21152
16-0.130461-1.15960.124859
17-0.19755-1.75590.041494
18-0.116759-1.03780.151269
19-0.09936-0.88310.189924
20-0.132367-1.17650.121463
21-0.134806-1.19820.117213
22-0.058917-0.52370.300989
230.1571381.39670.083212
240.4360713.87590.000109
250.1884671.67510.048931
26-0.062741-0.55770.289328
27-0.098181-0.87270.192748
28-0.106464-0.94630.173448
29-0.20126-1.78880.038737
30-0.116279-1.03350.152259
31-0.139477-1.23970.109379
32-0.13589-1.20780.115361
33-0.101405-0.90130.185083
34-0.099312-0.88270.190038
350.1311531.16570.123618
360.339163.01450.00173
370.155741.38420.08509
38-0.008768-0.07790.469041
39-0.037452-0.33290.370053
40-0.077691-0.69050.245942
41-0.120494-1.0710.143721
42-0.076195-0.67720.250116
43-0.05289-0.47010.319789
44-0.043881-0.390.348785
45-0.12395-1.10170.136971
46-0.031349-0.27860.390626
470.0937920.83360.203498
480.243842.16730.016612


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2532942.25130.013571
2-0.103796-0.92260.179523
30.0525180.46680.320967
4-0.20015-1.7790.039545
5-0.064919-0.5770.282785
6-0.012073-0.10730.457409
7-0.211899-1.88340.031663
80.0125190.11130.455843
9-0.167195-1.48610.070622
10-0.029598-0.26310.39659
110.3388013.01130.001746
120.4672554.15314.1e-05
130.0865110.76890.222114
14-0.169168-1.50360.068336
15-0.111315-0.98940.162747
160.0388980.34570.36523
17-0.122325-1.08720.140117
18-0.018172-0.16150.436049
190.0162760.14470.442673
20-0.060363-0.53650.296554
21-0.036729-0.32650.372473
22-0.087125-0.77440.220508
23-0.163797-1.45590.074696
240.0685090.60890.272161
250.0223860.1990.421399
26-0.00566-0.05030.480002
27-0.10995-0.97730.165712
280.0640220.5690.285472
29-0.021117-0.18770.425799
30-0.080105-0.7120.239285
31-0.136983-1.21750.113514
32-0.034964-0.31080.3784
330.0745180.66230.254843
34-0.041333-0.36740.35716
35-0.012114-0.10770.457266
36-0.033534-0.29810.38322
370.003860.03430.48636
380.0364370.32390.373451
390.0110970.09860.46084
40-0.003806-0.03380.486551
410.0359670.31970.375025
420.1170551.04040.150662
430.0975220.86680.194339
440.0147080.13070.448163
45-0.085753-0.76220.224108
460.080270.71350.238832
47-0.057743-0.51320.304612
48-0.020859-0.18540.426695
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/10/t1263131717ry768ipet7d0gf1/16ze21263131666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/10/t1263131717ry768ipet7d0gf1/16ze21263131666.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/10/t1263131717ry768ipet7d0gf1/2h69t1263131666.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/10/t1263131717ry768ipet7d0gf1/2h69t1263131666.ps (open in new window)


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