Home » date » 2009 » Dec » 09 »

paper

*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: Wed, 09 Dec 2009 13:01:36 -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/09/t12603889512pddu3xu6j9123g.htm/, Retrieved Wed, 09 Dec 2009 21:02:33 +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/09/t12603889512pddu3xu6j9123g.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 «
595 591 612 595 597 589 584 573 567 569 621 629 628 593 588 566 557 590 580 574 573 573 620 626 620 561 527 510 514 549 532 526 511 499 555 565 542 517 506 502 516 508 493 490 469 478 528 534 518 528 533 536 537 524 536 587 597 581 564 558
 
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.8637575.98430
20.6664274.61711.5e-05
30.4927433.41380.000655
40.3843352.66280.005258
50.3512342.43340.009365
60.2892132.00370.025381
70.2033611.40890.082651
80.115090.79740.214582
90.0545290.37780.353626
100.03520.24390.404185
110.0028270.01960.492229
12-0.062096-0.43020.334483
13-0.136927-0.94870.173773
14-0.160091-1.10910.136448
15-0.137015-0.94930.173619
16-0.09573-0.66320.255177
17-0.091671-0.63510.264185
18-0.148678-1.03010.154069
19-0.224347-1.55430.063338
20-0.295237-2.04550.023156
21-0.346179-2.39840.010201
22-0.374428-2.59410.006269
23-0.403139-2.7930.003739
24-0.394341-2.73210.004391
25-0.317958-2.20290.016219
26-0.249332-1.72740.045261
27-0.200068-1.38610.086059
28-0.181145-1.2550.107775
29-0.200149-1.38670.085974
30-0.168217-1.16540.124799
31-0.10507-0.72790.235092
32-0.033458-0.23180.408837
330.0148150.10260.459338
340.0322370.22330.412106
350.0365140.2530.400684
360.0458690.31780.376011
370.0597520.4140.34037
380.0507490.35160.363338
390.0162620.11270.455382
40-0.03105-0.21510.415291
41-0.049576-0.34350.366371
42-0.01166-0.08080.467975
430.0343970.23830.406327
440.0685670.4750.318454
450.0558460.38690.350265
460.0272180.18860.425611
470.016620.11510.454404
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8637575.98430
2-0.31367-2.17320.017367
30.032710.22660.41084
40.1123210.77820.220139
50.1457891.01010.158767
6-0.256106-1.77440.041173
7-0.013758-0.09530.462229
80.0061010.04230.483229
90.0439750.30470.380968
10-0.025834-0.1790.429352
11-0.126419-0.87590.192735
12-0.104147-0.72160.237035
130.0011930.00830.496721
140.1589581.10130.13813
15-0.044582-0.30890.379378
16-0.009677-0.0670.473411
17-0.109072-0.75570.226769
18-0.095943-0.66470.254708
19-0.084721-0.5870.279988
20-0.120311-0.83350.204335
21-0.133011-0.92150.180691
22-0.023802-0.16490.434855
23-0.038933-0.26970.39426
240.1066020.73860.231886
250.1963141.36010.090076
26-0.193528-1.34080.093148
27-0.018082-0.12530.450414
280.054090.37470.354749
29-0.089917-0.6230.268129
300.1117420.77420.221312
31-0.013885-0.09620.461882
32-0.04086-0.28310.389164
33-0.052164-0.36140.359692
340.1216910.84310.201677
35-0.130592-0.90480.185053
36-0.005143-0.03560.485863
370.0245720.17020.43277
38-0.0341-0.23630.40712
39-0.072315-0.5010.309325
40-0.069917-0.48440.315153
41-0.039742-0.27530.392119
420.0363910.25210.40101
430.0062730.04350.482756
44-0.03305-0.2290.409931
45-0.048589-0.33660.36893
460.0273460.18950.425265
47-0.04237-0.29350.385186
48NANANA
49NANANA
50NANANA
51NANANA
52NANANA
53NANANA
54NANANA
55NANANA
56NANANA
57NANANA
58NANANA
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/09/t12603889512pddu3xu6j9123g/1mv2b1260388895.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t12603889512pddu3xu6j9123g/1mv2b1260388895.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/09/t12603889512pddu3xu6j9123g/2e3hf1260388895.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/09/t12603889512pddu3xu6j9123g/2e3hf1260388895.ps (open in new window)


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