Home » date » 2011 » May » 28 »

Gemiddeldegrafieken voor tijdreeksen, Eigen reeks

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sat, 28 May 2011 16:22:00 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb.htm/, Retrieved Sat, 28 May 2011 18:18:28 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 577 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528 533 536 537 524 536 587 597 581 564 558 575 580 575 563 552 537 545 601 604 586 564 549 551 556
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.8840919.23020
20.7170577.48630
30.5965696.22840
40.5380265.61720
50.5247665.47870
60.4873475.08811e-06
70.4374824.56747e-06
80.3679183.84120.000103
90.3381913.53080.000304
100.3673313.83510.000105
110.4363094.55527e-06
120.459344.79563e-06
130.3219943.36170.000535
140.1465541.53010.064449
150.014340.14970.440634
16-0.054705-0.57110.28454
17-0.082962-0.86620.194155
18-0.128271-1.33920.091647
19-0.175652-1.83390.034702
20-0.232139-2.42360.008507
21-0.246152-2.56990.005761
22-0.209435-2.18660.015456
23-0.142645-1.48930.069653
24-0.113285-1.18270.119745
25-0.215904-2.25410.013095
26-0.345552-3.60770.000234
27-0.433582-4.52678e-06
28-0.467946-4.88552e-06
29-0.465457-4.85952e-06
30-0.474302-4.95191e-06
31-0.481066-5.02251e-06
32-0.489842-5.11411e-06
33-0.457495-4.77643e-06
34-0.382155-3.98986e-05
35-0.287139-2.99780.001684
36-0.231368-2.41560.008687
37-0.294805-3.07790.001319
38-0.375726-3.92277.7e-05
39-0.418023-4.36431.5e-05
40-0.412285-4.30441.8e-05
41-0.379513-3.96226.6e-05
42-0.363312-3.79310.000122
43-0.342262-3.57330.000263
44-0.32488-3.39180.000484
45-0.272663-2.84670.00264
46-0.190437-1.98820.024647
47-0.098439-1.02770.153176
48-0.037293-0.38940.348888


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8840919.23020
2-0.295627-3.08640.001284
30.1835261.91610.028988
40.1183111.23520.109706
50.1191571.2440.108078
6-0.143409-1.49720.068611
70.0837620.87450.191883
8-0.130498-1.36240.087934
90.2296152.39720.00911
100.1025931.07110.143244
110.2291492.39240.009225
12-0.248206-2.59130.005434
13-0.570893-5.96030
14-0.014269-0.1490.440926
15-0.068367-0.71380.238446
16-0.043821-0.45750.324111
17-0.068704-0.71730.237364
18-0.006676-0.06970.47228
190.0544010.5680.285613
20-0.005306-0.05540.477964
210.0635990.6640.254047
22-0.051448-0.53710.296135
230.016680.17410.431039
24-0.017787-0.18570.426511
25-0.175749-1.83490.034626
260.0067310.07030.472053
27-0.039899-0.41660.338911
28-0.079663-0.83170.203696
29-0.012949-0.13520.446356
300.0023390.02440.490282
310.0018830.01970.492175
32-0.001253-0.01310.494795
330.0399230.41680.338821
34-0.00449-0.04690.481349
35-0.002498-0.02610.48962
36-0.038379-0.40070.344718
37-0.134302-1.40220.081855
380.0368440.38470.350617
39-0.034965-0.3650.357892
40-0.004087-0.04270.48302
41-0.057172-0.59690.275909
42-0.018863-0.19690.422123
430.0100470.10490.458325
44-0.052975-0.55310.290671
45-0.020348-0.21240.416081
46-0.080411-0.83950.201509
47-0.011475-0.11980.452431
480.0549570.57380.283653
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/1qs631306599719.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/1qs631306599719.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/2plds1306599719.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/2plds1306599719.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/38zom1306599719.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/28/t1306599506458cml7go74rpvb/38zom1306599719.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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