Home » date » 2009 » Dec » 20 »

PAPER 12

*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: Sat, 19 Dec 2009 18:36:32 -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/20/t12612730352qphntj18ujn2sv.htm/, Retrieved Sun, 20 Dec 2009 02:37:17 +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/20/t12612730352qphntj18ujn2sv.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 «
111,85 111,42 109,91 109,70 107,97 109,27 122,63 125,00 124,57 121,77 117,89 119,61 121,12 120,91 119,61 117,24 115,73 117,03 128,02 131,68 132,11 131,68 128,02 128,23 127,37 126,94 125,86 123,49 122,20 122,63 133,84 135,56 135,34 131,90 128,23 128,66 127,80 127,16 125,00 123,71 123,49 123,49 133,62 134,91 133,62 126,72 121,98 120,04 120,91 118,32 114,66 113,36 110,13 107,54 119,61 121,77 116,81 113,58 109,91 110,78 111,42 109,48 106,25 105,60 101,08 103,02 113,79 115,09 111,64 109,05 108,19 111,21 113,79 114,87 115,52 115,73 112,93 115,52 126,51 128,66 125,22 121,55 120,26
 
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.8806628.02320
20.6984866.36350
30.5646655.14431e-06
40.5013394.56748e-06
50.491424.4771.2e-05
60.4661824.24712.8e-05
70.4125283.75830.000159
80.3441253.13510.001188
90.324512.95640.002026
100.3674563.34770.000613
110.4516634.11484.5e-05
120.4830554.40081.6e-05
130.341113.10770.001291
140.1562491.42350.07917
150.0156680.14270.443419
16-0.063924-0.58240.280947
17-0.093017-0.84740.199598
18-0.127892-1.16520.123647
19-0.177706-1.6190.054623
20-0.234023-2.1320.017979
21-0.240748-2.19330.015541
22-0.19159-1.74550.042302
23-0.114879-1.04660.149161
24-0.087168-0.79410.21469
25-0.19945-1.81710.036407
26-0.337096-3.07110.001442
27-0.426309-3.88390.000103
28-0.455102-4.14624.1e-05
29-0.442968-4.03566e-05
30-0.436416-3.97597.5e-05
31-0.43863-3.99616.9e-05
32-0.444674-4.05125.7e-05
33-0.404649-3.68650.000202
34-0.326376-2.97340.001927
35-0.234843-2.13950.017665
36-0.181789-1.65620.050731


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8806628.02320
2-0.343439-3.12890.001211
30.2057411.87440.032197
40.116561.06190.145678
50.1248431.13740.129328
6-0.117796-1.07320.143152
70.0135250.12320.451117
8-0.037711-0.34360.366022
90.2317942.11170.018858
100.1150061.04780.148898
110.2126741.93760.028039
12-0.211477-1.92660.028723
13-0.624668-5.6910
140.1031680.93990.174996
15-0.126452-1.1520.126308
16-0.122997-1.12060.132855
17-0.032907-0.29980.382541
180.0038140.03470.486182
190.0339450.30930.378953
20-0.010429-0.0950.462269
210.0661790.60290.274102
22-0.005328-0.04850.4807
23-0.047165-0.42970.334265
24-0.038107-0.34720.364672
25-0.148423-1.35220.089992
260.0383630.34950.363798
270.0022610.02060.491809
280.029470.26850.394495
29-0.052111-0.47480.318106
300.0319510.29110.385857
310.0275020.25060.401388
32-0.021887-0.19940.421219
330.0060030.05470.478259
34-0.097725-0.89030.187935
350.0008310.00760.49699
360.0693130.63150.264734
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/20/t12612730352qphntj18ujn2sv/1rsg21261272991.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/20/t12612730352qphntj18ujn2sv/1rsg21261272991.ps (open in new window)


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