Home » date » 2011 » Apr » 11 »

Opgave 6bis-Daphné Van den Buys

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 11 Apr 2011 20:51:27 +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/Apr/11/t1302555032cflys0fpmmbsem6.htm/, Retrieved Mon, 11 Apr 2011 22:50:35 +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 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516
 
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.2430592.21440.014772
2-0.193211-1.76020.041026
3-0.296378-2.70010.004199
4-0.258613-2.35610.010413
50.0733460.66820.252924
60.1895341.72670.043967
70.0429530.39130.34828
8-0.238333-2.17130.016381
9-0.25998-2.36850.010091
10-0.157491-1.43480.077549
110.2556092.32870.011153
120.7921327.21670
130.1770961.61340.055224
14-0.163074-1.48570.070577
15-0.280874-2.55890.006158
16-0.229544-2.09120.019782
170.0700220.63790.262636
180.1230041.12060.132841
190.0337120.30710.379758
20-0.224087-2.04150.022187
21-0.234603-2.13730.017757
22-0.096076-0.87530.191971
230.1954891.7810.039286
240.5996485.46310
250.1473671.34260.091535
26-0.155905-1.42040.079624
27-0.246967-2.250.013548
28-0.190847-1.73870.042898
290.038870.35410.362073
300.07010.63860.262409
310.0166550.15170.439882
32-0.189232-1.7240.044217
33-0.159179-1.45020.075386
34-0.071682-0.65310.257762
350.1393881.26990.103837
360.4898224.46251.3e-05
370.0986820.8990.185618
38-0.16148-1.47120.072515
39-0.241118-2.19670.015416
40-0.141991-1.29360.099696
410.0353210.32180.374212
420.0754250.68720.246951
430.0025870.02360.490626
44-0.162288-1.47850.071527
45-0.11103-1.01150.157351
46-0.059516-0.54220.294561
470.0928250.84570.200083
480.3736143.40380.000513


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2430592.21440.014772
2-0.268129-2.44280.008348
3-0.196563-1.79080.038488
4-0.208691-1.90130.030368
50.0965440.87960.19082
60.010010.09120.463779
7-0.083118-0.75720.225525
8-0.264074-2.40580.009179
9-0.12893-1.17460.121754
10-0.198987-1.81290.036734
110.1835151.67190.049155
120.6958336.33930
13-0.107502-0.97940.165116
140.1411521.2860.101018
150.0363310.3310.370742
160.0639520.58260.280861
17-0.067935-0.61890.268833
18-0.123399-1.12420.13208
190.0604470.55070.29166
20-0.102966-0.93810.175467
21-0.028707-0.26150.397166
220.0409950.37350.354871
23-0.193374-1.76170.040899
24-0.024854-0.22640.41071
25-0.003022-0.02750.489051
26-0.094805-0.86370.195116
270.0083090.07570.46992
28-0.037071-0.33770.368208
29-0.022738-0.20720.418199
30-0.053732-0.48950.312883
31-0.052418-0.47760.317112
320.071240.6490.259057
330.0329990.30060.382222
34-0.071823-0.65430.257351
350.0575250.52410.30081
360.0689830.62850.265712
37-0.076644-0.69830.243485
38-0.055276-0.50360.307942
39-0.122366-1.11480.134075
400.1020550.92980.177594
41-0.092757-0.84510.200255
420.0975810.8890.188285
43-0.032514-0.29620.383903
44-0.037066-0.33770.368226
450.0230690.21020.417027
46-0.040332-0.36740.357111
47-0.115008-1.04780.148893
48-0.075615-0.68890.246409
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/1zev61302555086.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/1zev61302555086.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/2te8d1302555086.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/2te8d1302555086.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/31ng41302555086.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/11/t1302555032cflys0fpmmbsem6/31ng41302555086.ps (open in new window)


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