Home » date » 2009 » Nov » 24 »

ws4

*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: Tue, 24 Nov 2009 04:12:49 -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/24/t1259061274y2rnj8ym49gb7zs.htm/, Retrieved Tue, 24 Nov 2009 12:14:37 +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/24/t1259061274y2rnj8ym49gb7zs.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 «
395.3 395.1 403.5 403.3 405.7 406.7 407.2 412.4 415.9 414 411.8 409.9 412.4 415.9 416.3 417.2 421.8 421.4 415.1 412.4 411.8 408.8 404.5 402.5 409.4 410.7 413.4 415.2 417.7 417.8 417.9 418.4 418.2 416.6 418.9 421 423.5 432.3 432.3 428.6 426.7 427.3 428.5 437 442 444.9 441.4 440.3 447.1 455.3 478.6 486.5 487.8 485.9 483.8 488.4 494 493.6 487.3 482.1 484.2 496.8 501.1 499.8 495.5 498.1 503.8 516.2 526.1 527.1 525.1 528.9 540.1 549 556 568.9 589.1 590.3 603.3 638.8 643 656.7 656.1 654.1 659.9 662.1 669.2 673.1 678.3 677.4 678.5 672.4 665.3 667.9 672.1 662.5 682.3 692.1 702.7 721.4 733.2 747.7 737.6 729.3 706.1 674.3 659 645.7
 
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
1-0.396681-3.8460.000109
2-0.039667-0.38460.350707
30.0541950.52540.300258
4-0.031524-0.30560.380278
5-0.012404-0.12030.452265
6-0.157049-1.52260.065602
70.202011.95860.026564
8-0.067427-0.65370.257443
9-0.093056-0.90220.184625
10-0.049325-0.47820.316801
110.2867352.780.003283
12-0.389721-3.77850.000138
130.1133911.09940.137208
140.0900130.87270.192523
150.1019760.98870.162675
16-0.194972-1.89030.030897
17-0.017026-0.16510.434621
180.2399692.32660.011068
19-0.266483-2.58370.005658
200.139541.35290.089668
21-0.043033-0.41720.338735
220.1249091.2110.114459
23-0.11474-1.11240.134393
24-0.016316-0.15820.437325
250.0891590.86440.194776
26-0.045826-0.44430.328924
27-0.087943-0.85260.198014
280.1016810.98580.163372
290.0972570.94290.174065
30-0.234353-2.27210.012679
310.1812161.7570.041091
32-0.066541-0.64510.260205
330.0398890.38670.349913
34-0.048737-0.47250.318825
350.0321570.31180.377951
360.0162870.15790.437435
37-0.060565-0.58720.27924
380.0517730.5020.308435
39-0.037182-0.36050.359644
40-0.010152-0.09840.460901
41-0.094522-0.91640.180894
420.1389821.34750.090533
43-0.080722-0.78260.217907
440.0694810.67360.251096
45-0.008009-0.07760.469138
460.0455170.44130.330005
47-0.072829-0.70610.240936
48-0.01381-0.13390.446887
490.0786560.76260.223808
50-0.074849-0.72570.234917
510.0723380.70130.242411
520.0019280.01870.492562
530.0386970.37520.354187
54-0.12918-1.25240.106757
550.0498740.48350.314916
56-0.002344-0.02270.490959
57-0.024415-0.23670.406697
58-0.016619-0.16110.43617
590.0878670.85190.198217
60-0.004258-0.04130.483578


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.396681-3.8460.000109
2-0.233815-2.26690.012844
3-0.072773-0.70560.241103
4-0.055067-0.53390.297338
5-0.049277-0.47780.316964
6-0.239896-2.32590.011087
70.0233740.22660.410605
8-0.010045-0.09740.461312
9-0.11585-1.12320.132105
10-0.230292-2.23280.013969
110.1870691.81370.036457
12-0.321316-3.11530.001218
13-0.138853-1.34620.090733
14-0.09238-0.89570.186361
150.1847271.7910.038256
16-0.222314-2.15540.016842
17-0.111995-1.08580.140166
18-0.035677-0.34590.365094
19-0.118386-1.14780.126984
20-0.028322-0.27460.392116
21-0.090677-0.87910.190783
22-0.083396-0.80860.210408
230.0792150.7680.222202
24-0.118072-1.14480.127609
25-0.126934-1.23070.110759
26-0.05305-0.51430.304112
270.0205960.19970.421079
28-0.10536-1.02150.154819
29-0.009004-0.08730.46531
30-0.119703-1.16060.124379
310.0496410.48130.315716
32-0.027325-0.26490.395825
33-0.059916-0.58090.281347
340.0171120.16590.434292
350.0902930.87540.191788
36-0.114627-1.11130.134626
37-0.014142-0.13710.445617
380.0604240.58580.279698
390.0413140.40060.344829
40-0.171233-1.66020.050107
41-0.05586-0.54160.294692
42-0.0398-0.38590.35023
43-0.051711-0.50140.308647
440.0045160.04380.482586
450.0171930.16670.433986
460.0271080.26280.396631
47-0.021105-0.20460.419156
48-0.091188-0.88410.18945
49-0.088401-0.85710.19679
500.0734450.71210.23909
510.0245070.23760.406352
52-0.000574-0.00560.497785
530.0478570.4640.321862
54-0.00566-0.05490.478176
55-0.027638-0.2680.394659
56-0.006417-0.06220.47526
57-0.061566-0.59690.276003
580.0205520.19930.421246
590.0805720.78120.218332
60-0.033119-0.32110.374424
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259061274y2rnj8ym49gb7zs/11wgq1259061167.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259061274y2rnj8ym49gb7zs/11wgq1259061167.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/24/t1259061274y2rnj8ym49gb7zs/2qhru1259061167.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/24/t1259061274y2rnj8ym49gb7zs/2qhru1259061167.ps (open in new window)


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