Home » date » 2009 » Dec » 19 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 19 Dec 2009 09:31:05 -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/19/t1261240325clnkvwha1p2xyuk.htm/, Retrieved Sat, 19 Dec 2009 17:32:08 +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/19/t1261240325clnkvwha1p2xyuk.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 «
6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.3 8.4 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.4 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.5 8.2 8.1 7.9 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8 8.2 8.1 8.1 8 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.4 6.1 6.5 7.7 7.9 7.5 6.9 6.6 6.9 7.7 8 8 7.7 7.3 7.4 8.1 8.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.8312377.75330
20.5737035.35110
30.3957423.69120.000194
40.3886393.6250.000243
50.5053164.71335e-06
60.5966495.56520
70.5535435.16311e-06
80.4285593.99736.7e-05
90.3361883.13580.001169
100.3379683.15240.001111
110.4130173.85240.000112
120.4546014.24022.8e-05
130.3409213.17990.001021
140.2006061.87110.032344
150.0971010.90570.183798
160.0568670.53040.298587
170.0662830.61820.269013
180.0694540.64780.259401
190.0306580.2860.387796
20-0.016484-0.15370.439082
21-0.043287-0.40380.343691
22-0.045174-0.42140.337267
23-0.044523-0.41530.339479
24-0.061513-0.57380.283806
25-0.155709-1.45240.075
26-0.208446-1.94430.027548
27-0.216158-2.01620.023433
28-0.194019-1.80970.036899
29-0.170423-1.58960.057776
30-0.177-1.65090.051177
31-0.219248-2.0450.021938
32-0.266769-2.48830.007371
33-0.282282-2.63290.005008
34-0.261265-2.43690.008425
35-0.227711-2.12390.018257
36-0.205723-1.91890.029141
37-0.257811-2.40470.009153
38-0.288498-2.69090.004272
39-0.281849-2.62890.005063
40-0.243032-2.26690.012939
41-0.206906-1.92990.02844
42-0.215969-2.01440.023527
43-0.280876-2.61980.00519
44-0.338146-3.1540.001106
45-0.32693-3.04940.001519
46-0.243462-2.27090.012812
47-0.137937-1.28660.100825
48-0.091589-0.85430.197646
49-0.168863-1.57510.059437
50-0.261686-2.44080.00834
51-0.287144-2.67830.004423
52-0.225616-2.10440.019114
53-0.124815-1.16420.123763
54-0.067486-0.62950.265348
55-0.097792-0.91210.182107
56-0.161184-1.50340.068176
57-0.185678-1.73190.043419
58-0.142224-1.32660.09406
59-0.048692-0.45420.325418
600.0167530.15630.438093


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8312377.75330
2-0.379402-3.53880.000324
30.2014721.87920.031782
40.3441463.210.00093
50.2466642.30070.011899
6-0.001627-0.01520.493965
7-0.128671-1.20020.116667
80.06240.5820.281025
90.1189391.10940.135159
100.0388280.36220.359055
110.0330220.3080.379404
12-0.078185-0.72930.2339
13-0.359618-3.35430.00059
140.1971461.83890.034674
15-0.135345-1.26240.105086
16-0.272328-2.54010.006429
17-0.126188-1.1770.121203
180.0084020.07840.468856
190.0311140.29020.386171
200.0003560.00330.498679
21-0.029146-0.27190.39319
220.0306630.2860.387778
23-0.014674-0.13690.445726
240.1172531.09370.138562
25-0.182164-1.69910.046436
260.1259121.17440.121714
270.0306010.28540.387997
280.0345670.32240.373955
29-0.014274-0.13310.447196
30-0.017949-0.16740.433716
31-0.030584-0.28530.38806
32-0.118275-1.10320.136492
33-0.01103-0.10290.459148
340.0048220.0450.482113
35-0.068257-0.63670.26301
360.0155640.14520.442458
37-0.11312-1.05510.147147
380.0590080.55040.291732
390.0714960.66690.253309
40-0.003378-0.03150.487469
41-0.11061-1.03170.152536
42-0.125531-1.17090.122423
43-0.061076-0.56970.285181
440.0701690.65450.257261
450.0593740.55380.290566
460.0424070.39550.346703
470.0763690.71230.239085
48-0.054269-0.50620.307004
49-0.045829-0.42750.335048
50-0.086944-0.8110.209801
510.0681750.63590.263257
52-0.00731-0.06820.472896
530.0005670.00530.497895
540.0494190.46090.322994
550.0143850.13420.446786
560.0232760.21710.414319
57-0.06726-0.62740.266032
58-0.098426-0.91810.180564
590.0667640.62270.267544
60-0.052038-0.48540.314315
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240325clnkvwha1p2xyuk/185gi1261240264.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240325clnkvwha1p2xyuk/185gi1261240264.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240325clnkvwha1p2xyuk/2jf6i1261240264.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/19/t1261240325clnkvwha1p2xyuk/2jf6i1261240264.ps (open in new window)


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