Home » date » 2009 » Dec » 06 »

*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: Sun, 06 Dec 2009 09:11:42 -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/06/t12601159922rbrwa4im9v5fzk.htm/, Retrieved Sun, 06 Dec 2009 17:13:14 +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/06/t12601159922rbrwa4im9v5fzk.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 «
9051 8823 8776 8255 7969 8758 8693 8271 7790 7769 8170 8209 9395 9260 9018 8501 8500 9649 9319 8830 8436 8169 8269 7945 9144 8770 8834 7837 7792 8616 8518 7940 7545 7531 7665 7599 8444 8549 7986 7335 7287 7870 7839 7327 7259 6964 7271 6956 7608 7692 7255 6804 6655 7341 7602 7086 6625 6272 6576 6491 7649 7400 6913 6532 6486 7295 7556 7088 6952 6773 6917 7371 8221 7953 8027 7287 8076 8933 9433 9479 9199 9469 10015 10999 13009 13699 13895 13248 13973 15095 15201 14823 14538 14547 14407
 
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.1773241.71920.044433
2-0.141039-1.36740.087377
3-0.329315-3.19280.000958
4-0.005857-0.05680.477419
50.3318173.21710.000888
60.2011751.95050.02705
70.2919442.83050.002842
8-0.054494-0.52830.299256
9-0.361485-3.50470.000351
10-0.229508-2.22520.014231
110.0885830.85880.196306
120.6428196.23240
130.0750890.7280.234209
14-0.170906-1.6570.050427
15-0.343036-3.32590.000629
16-0.046407-0.44990.326899
170.1649891.59960.056519
180.1560141.51260.066867
190.1962031.90230.030099
20-0.048756-0.47270.318758
21-0.318645-3.08940.001319
22-0.222984-2.16190.016582
230.0862560.83630.202559
240.4970054.81863e-06
250.0776080.75240.226834
26-0.199329-1.93260.02815
27-0.282398-2.7380.003697
28-0.055558-0.53870.295701
290.1040481.00880.157835
300.124961.21150.114363
310.1309251.26940.103722
32-0.046001-0.4460.328313
33-0.312178-3.02670.001595
34-0.161215-1.5630.060703
350.0679070.65840.255952
360.3701543.58880.000265


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1773241.71920.044433
2-0.178082-1.72660.043765
3-0.286054-2.77340.003345
40.0931340.9030.184426
50.2795432.71030.003996
60.0197510.19150.424276
70.4028523.90588.8e-05
80.0634570.61520.269942
9-0.406772-3.94387.7e-05
10-0.105081-1.01880.155456
110.0080780.07830.46887
120.4054713.93128.1e-05
13-0.152659-1.48010.071097
140.0494070.4790.31652
15-0.004926-0.04780.481005
160.0128870.12490.450418
17-0.147138-1.42660.07851
180.0275820.26740.394867
19-0.089817-0.87080.193039
200.0521950.5060.307004
21-0.016853-0.16340.435278
220.0359340.34840.364162
230.0417250.40450.343368
240.1302781.26310.10484
25-0.027406-0.26570.395524
26-0.135453-1.31330.096145
270.0425890.41290.340304
28-0.084389-0.81820.207661
29-0.079294-0.76880.221976
30-0.01526-0.1480.441349
310.0167860.16270.435533
32-0.040727-0.39490.34692
330.0314170.30460.380674
340.1380111.33810.092052
35-0.055762-0.54060.295018
36-0.03257-0.31580.376435
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601159922rbrwa4im9v5fzk/16qkc1260115901.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601159922rbrwa4im9v5fzk/16qkc1260115901.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t12601159922rbrwa4im9v5fzk/2nbiv1260115901.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t12601159922rbrwa4im9v5fzk/2nbiv1260115901.ps (open in new window)


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