Home » date » 2009 » Dec » 02 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 02 Dec 2009 15:41:15 -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/02/t1259793890vnpzpn33vczjsyy.htm/, Retrieved Wed, 02 Dec 2009 23:44:53 +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/02/t1259793890vnpzpn33vczjsyy.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 «
104.0 99.0 105.4 107.1 110.7 117.1 118.7 126.5 127.5 134.6 131.8 135.9 142.7 141.7 153.4 145.0 137.7 148.3 152.2 169.4 168.6 161.1 174.1 179.0 190.6 190.0 181.6 174.8 180.5 196.8 193.8 197.0 216.3 221.4 217.9 229.7 227.4 204.2 196.6 198.8 207.5 190.7 201.6 210.5 223.5 223.8 231.2 244.0 234.7 250.2 265.7 287.6 283.3 295.4 312.3 333.8 347.7 383.2 407.1 413.6 362.7 321.9 239.4 191.0 159.7 163.4 157.6 166.2 176.7 198.3 226.2 216.2 235.9
 
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.9527018.13990
20.868797.42290
30.7588226.48340
40.6438055.50070
50.533014.5541e-05
60.4408993.7670.000166
70.3700683.16190.001142
80.3169752.70820.00421
90.2804952.39650.009556
100.2581952.2060.015265
110.2387452.03980.022493
120.2133571.82290.036205
130.1889691.61450.055362
140.1637811.39930.082972
150.1407451.20250.116523
160.1128150.96390.169142
170.0883990.75530.226254
180.0716910.61250.271045
190.0603750.51580.303762
200.0556540.47550.317923
210.0554450.47370.318557
220.0491370.41980.337923
230.044030.37620.353933
240.0332250.28390.388654
250.0222080.18970.425019
26-0.000825-0.0070.497199
27-0.033821-0.2890.386712
28-0.070469-0.60210.27449
29-0.104173-0.89010.188181
30-0.128945-1.10170.137103
31-0.151266-1.29240.100144
32-0.164502-1.40550.082056
33-0.170461-1.45640.074782
34-0.172503-1.47390.072408
35-0.175499-1.49950.069033
36-0.178871-1.52830.065383
37-0.187926-1.60560.056335
38-0.207545-1.77330.040178
39-0.228092-1.94880.02758
40-0.247709-2.11640.018859
41-0.265285-2.26660.013189
42-0.285297-2.43760.008611
43-0.299726-2.56090.006254
44-0.308196-2.63320.005159
45-0.310546-2.65330.004888
46-0.312645-2.67120.004656
47-0.315344-2.69430.004374
48-0.317878-2.71590.004123


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9527018.13990
2-0.420631-3.59390.000294
3-0.214354-1.83140.035557
40.0387920.33140.370631
50.0192980.16490.434745
60.1141220.97510.166375
70.0538440.460.323425
8-0.029825-0.25480.399787
90.0259690.22190.412514
100.0400020.34180.366751
11-0.08224-0.70270.242252
12-0.101321-0.86570.194749
130.0915480.78220.218317
140.0131850.11270.455307
150.0197390.16860.43327
16-0.103999-0.88860.188576
170.0274260.23430.407692
180.0951360.81280.209476
19-0.015729-0.13440.446732
200.0004720.0040.498396
21-0.016648-0.14220.443639
22-0.116441-0.99490.161542
230.1078680.92160.179879
24-0.065513-0.55970.288684
250.0002960.00250.498996
26-0.136312-1.16470.123976
27-0.060524-0.51710.303319
280.0319520.2730.392813
290.0385640.32950.371363
300.0401080.34270.366411
31-0.136674-1.16770.123356
320.0468180.40.345158
330.0277140.23680.406744
34-0.064511-0.55120.291597
35-0.060511-0.5170.303359
36-0.041576-0.35520.361724
370.0222670.19020.424821
38-0.12208-1.04310.150183
390.052520.44870.327477
40-0.03616-0.3090.379119
41-0.03808-0.32540.372922
42-0.042048-0.35930.360218
43-0.00869-0.07420.470509
44-0.010806-0.09230.463346
45-0.012051-0.1030.459136
46-0.087211-0.74510.229292
47-0.025543-0.21820.413925
480.0024150.02060.491797
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259793890vnpzpn33vczjsyy/1olvu1259793674.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259793890vnpzpn33vczjsyy/1olvu1259793674.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259793890vnpzpn33vczjsyy/2tczj1259793674.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259793890vnpzpn33vczjsyy/2tczj1259793674.ps (open in new window)


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