Home » date » 2009 » Nov » 27 »

WorkShop8 (SHW)

*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 14:24: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/Nov/27/t12593571050anxmt8af7zbfjh.htm/, Retrieved Fri, 27 Nov 2009 22:25:07 +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/t12593571050anxmt8af7zbfjh.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 «
282965 276610 277838 277051 277026 274960 270073 267063 264916 287182 291109 292223 288109 281400 282579 280113 280331 276759 275139 274275 271234 289725 290649 292223 278429 269749 265784 268957 264099 255121 253276 245980 235295 258479 260916 254586 250566 243345 247028 248464 244962 237003 237008 225477 226762 247857 248256 246892 245021 246186 255688 264242 268270 272969 273886 267353 271916 292633 295804 293222
 
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.8803176.81890
20.7397085.72980
30.6329054.90254e-06
40.5813524.50311.6e-05
50.5605014.34162.8e-05
60.5076333.93210.00011
70.4150393.21490.001051
80.3073042.38040.010244
90.2414961.87060.033139
100.2010461.55730.06233
110.2107261.63230.053929
120.1962591.52020.066855
130.0605970.46940.32025
14-0.066969-0.51870.302924
15-0.161447-1.25060.107974
16-0.192354-1.490.070736
17-0.190626-1.47660.072509
18-0.216021-1.67330.049739
19-0.265469-2.05630.022055
20-0.332843-2.57820.006202
21-0.357947-2.77260.003698
22-0.356843-2.76410.003785
23-0.315414-2.44320.008759
24-0.30261-2.3440.011204
25-0.364663-2.82470.003208
26-0.413815-3.20540.001081
27-0.424644-3.28930.000842
28-0.383556-2.9710.002132
29-0.334496-2.5910.005999
30-0.298198-2.30980.012177
31-0.28065-2.17390.016834
32-0.275432-2.13350.018492
33-0.231801-1.79550.038804
34-0.178464-1.38240.08599
35-0.117538-0.91040.183116
36-0.080531-0.62380.267565


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8803176.81890
2-0.156634-1.21330.114889
30.0802570.62170.268258
40.1587691.22980.111782
50.0822730.63730.263181
6-0.135662-1.05080.148775
7-0.129815-1.00550.159338
8-0.089229-0.69120.246063
90.0775850.6010.275063
10-0.042903-0.33230.370402
110.1902331.47350.072916
12-0.086686-0.67150.252249
13-0.503969-3.90370.000121
140.0789240.61130.271641
15-0.031709-0.24560.403407
16-0.013527-0.10480.45845
170.0461120.35720.361104
18-0.042318-0.32780.372104
190.0534160.41380.340262
20-0.157758-1.2220.113246
210.0391170.3030.38147
220.0238440.18470.427044
23-0.085442-0.66180.255306
24-0.005491-0.04250.483109
25-0.092093-0.71330.239199
260.0079830.06180.47545
270.0710560.55040.292045
28-0.087627-0.67880.249952
29-0.004573-0.03540.485931
300.0694240.53780.296367
310.0101680.07880.468742
320.006350.04920.480468
330.0460690.35680.361228
34-0.013623-0.10550.458157
35-0.130146-1.00810.158725
360.0462740.35840.360637
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593571050anxmt8af7zbfjh/15h111259357054.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t12593571050anxmt8af7zbfjh/15h111259357054.ps (open in new window)


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