Home » date » 2009 » Nov » 27 »

Workshop 8

*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: Fri, 27 Nov 2009 05:40:33 -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/27/t1259325682p46gcn4zguzkkop.htm/, Retrieved Fri, 27 Nov 2009 13:41:24 +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/27/t1259325682p46gcn4zguzkkop.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 «
62 64 62 64 64 69 69 65 56 58 53 62 55 60 59 58 53 57 57 53 54 53 57 57 55 49 50 49 54 58 58 52 56 52 59 53 52 53 51 50 56 52 46 48 46 48 48 49 53 48 51 48 50 55 52 53 52 55 53 53 56 54 52 55 54 59 56 56 51 53 52 51 46 49 46 55 57 53 52 53 50 54 53 50 51 52 47 51 49 53 52 45 53 51 48 48 48 48 40 43 40 39 39 36 41 39 40 39 46 40 37 37 44 41 40 36 38 43 42 45 46
 
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.8435059.27860
20.795738.7530
30.7244567.9690
40.7042627.74690
50.6607447.26820
60.6123816.73620
70.5425855.96840
80.507175.57890
90.4657175.12291e-06
100.4409634.85062e-06
110.4280134.70813e-06
120.3988264.38711.2e-05
130.3470793.81790.000107
140.3000183.30020.000635
150.2772493.04970.001407
160.2633622.8970.002237
170.2490782.73990.003539
180.1940572.13460.017404
190.1556871.71260.044677
200.108691.19560.117097
210.0807740.88850.188013
220.0672210.73940.23054
230.0916071.00770.157811
240.0649140.71410.238284
250.0649280.71420.238235
260.0582070.64030.261603
270.0747440.82220.206294
280.0722640.79490.214112
290.0767110.84380.200216
300.0421220.46330.321974
310.0176060.19370.423379
32-0.001746-0.01920.492353
33-0.023545-0.2590.398038
34-0.046949-0.51640.303244
35-0.04881-0.53690.296159
36-0.070085-0.77090.221125


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8435059.27860
20.2919553.21150.000846
30.0111760.12290.451181
40.1421831.5640.060213
50.0179360.19730.421962
6-0.054825-0.60310.273794
7-0.10748-1.18230.119706
80.0270980.29810.383078
9-0.000278-0.00310.498784
100.0249820.27480.39197
110.0987231.0860.139828
12-0.008829-0.09710.461396
13-0.117476-1.29220.099369
14-0.077675-0.85440.197279
150.0309880.34090.366896
160.0314850.34630.364845
170.0294610.32410.373222
18-0.101802-1.11980.132503
19-0.04165-0.45820.323831
20-0.076991-0.84690.19936
21-0.042536-0.46790.320349
220.0570820.62790.265625
230.2006082.20670.014612
24-0.02477-0.27250.392861
250.0309850.34080.366911
260.0389140.42810.334685
27-0.003392-0.03730.485148
28-0.075906-0.8350.202691
290.0178210.1960.422456
30-0.063621-0.69980.24269
31-0.085778-0.94360.173638
32-0.001915-0.02110.491613
33-0.05197-0.57170.284302
34-0.086017-0.94620.172968
350.0657390.72310.235497
360.0219330.24130.404879
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325682p46gcn4zguzkkop/1ws2m1259325632.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325682p46gcn4zguzkkop/1ws2m1259325632.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325682p46gcn4zguzkkop/20cbl1259325632.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259325682p46gcn4zguzkkop/20cbl1259325632.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