Home » date » 2011 » May » 09 »

Opgave 6 BIS: Eigen reeks, Stap 2

*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, 09 May 2011 14:43: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/May/09/t1304952021k25hctj45cymdl1.htm/, Retrieved Mon, 09 May 2011 16:40:21 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
190.2 180.7 193.6 192.8 195.5 197.2 196.9 178.9 172.4 156.4 143.7 153.6 168.8 185.8 199.9 205.4 197.5 199.6 200.5 193.7 179.6 169.1 169.8 195.5 194.8 204.5 203.8 204.8 204.9 240 248.3 258.4 254.9 288.3 333.6 346.3 357.5 490.7 468.2 471.2 517.1 609.2 682 614 554.2 406.8 348.6 298.8 313.7 282.1 232.9 239.3 241.9 265.7 276 271.5 254.6 269.9 293.5 306.1 365.4 347.9 352.1 377.9 377.4 372.2 362.5 341.9 354.8 369.2 406.7 454.7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3773653.17970.001093
20.18371.54790.063048
3-0.008695-0.07330.470901
40.0045320.03820.484823
50.0485190.40880.341947
6-0.035893-0.30240.381602
7-0.019928-0.16790.433563
8-0.233139-1.96450.026696
9-0.205224-1.72930.044055
10-0.179614-1.51350.067302
110.0294420.24810.402393
12-0.037082-0.31250.377803
13-0.182453-1.53740.064324
14-0.135864-1.14480.128067
15-0.186314-1.56990.060441
16-0.081832-0.68950.24637
17-0.003686-0.03110.487655
180.0509060.42890.334634
190.0260820.21980.413339
20-0.032401-0.2730.392818
21-0.030466-0.25670.399072
22-0.003636-0.03060.487824
230.1005050.84690.199957
24-0.053509-0.45090.326728
25-0.088318-0.74420.229611
26-0.052838-0.44520.328758
27-0.050064-0.42180.337206
280.0112430.09470.462396
290.1187561.00070.160196
300.0098050.08260.467194
31-0.005009-0.04220.483227
32-0.098151-0.8270.205494
33-0.047717-0.40210.34442
340.0403880.34030.367312
350.0511210.43080.333975
360.0443250.37350.35495
370.0791750.66710.253423
380.0408690.34440.365792
390.0239910.20220.420188
400.0441240.37180.355575
410.0133050.11210.455527
420.0302640.2550.399728
43-0.003559-0.030.488079
440.0010870.00920.49636
450.0164370.13850.445118
460.0321780.27110.393538
470.0144140.12150.451839
480.0120690.10170.459644


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3773653.17970.001093
20.0481530.40570.343076
3-0.108519-0.91440.181802
40.0386090.32530.372945
50.0657690.55420.290598
6-0.098311-0.82840.205115
70.009810.08270.467179
8-0.239969-2.0220.023472
9-0.064548-0.54390.294111
10-0.035326-0.29770.383414
110.1381491.16410.124147
12-0.119018-1.00290.159666
13-0.191081-1.61010.055909
140.0079550.0670.473374
15-0.111661-0.94090.174981
16-0.072171-0.60810.272523
170.0495580.41760.338755
18-0.026962-0.22720.410467
19-0.005727-0.04830.480825
20-0.033097-0.27890.390574
21-0.089014-0.750.227853
22-0.067216-0.56640.286465
230.0521550.43950.33083
24-0.177388-1.49470.069712
25-0.123769-1.04290.150268
260.0516750.43540.332289
27-0.057867-0.48760.313669
28-0.085336-0.71910.237233
290.1390141.17130.122687
30-0.208655-1.75820.041515
31-0.019288-0.16250.435677
32-0.092472-0.77920.219231
33-0.098379-0.8290.204953
34-0.039029-0.32890.371612
350.0407220.34310.366259
36-0.059227-0.49910.309642
370.0468680.39490.347044
38-0.059905-0.50480.307643
39-0.043963-0.37040.356079
40-0.159644-1.34520.091423
41-0.019064-0.16060.436417
42-0.008564-0.07220.471338
43-0.052263-0.44040.3305
440.0396780.33430.369556
45-0.020984-0.17680.430079
46-0.090093-0.75910.225141
470.0171430.14450.442777
48-0.086697-0.73050.233737
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/1n21t1304952204.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/1n21t1304952204.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/2q57e1304952204.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/2q57e1304952204.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/3zuuq1304952204.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/09/t1304952021k25hctj45cymdl1/3zuuq1304952204.ps (open in new window)


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