Home » date » 2011 » Apr » 07 »

opgave 6 bis oef 2 stap 1- tijdreeksen- sophie berns

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 07 Apr 2011 15:18:31 +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/07/t1302189422ib1lw5c7drpde21.htm/, Retrieved Thu, 07 Apr 2011 17:17:05 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
41 39 50 40 43 38 44 35 39 35 29 49 50 59 63 32 39 47 53 60 57 52 70 90 74 62 55 84 94 70 108 139 120 97 126 149 158 124 140 109 114 77 120 133 110 92 97 78 99 107 112 90 98 125 155 190 236 189 174 178 136 161 171 149 184 155 276 224 213 279 268 287 238 213 257 293 212 246 353 339 308 247 257 322 298 273 312 249 286 279 309 401 309 328 353 354 327 324 285 243 241 287 355 460 364 487 452 391 500 451 375 372 302 316 398 394 431 431
 
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' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.92765610.07690
20.8810939.57110
30.8534239.27050
40.8078368.77530
50.7965028.65220
60.7744168.41230
70.7492568.1390
80.744458.08680
90.7116737.73080
100.681217.39980
110.6839857.430
120.6684977.26170
130.6284346.82650
140.5994256.51140
150.5503815.97870
160.5194515.64270
170.5053515.48950
180.4832075.2490
190.4775995.18810
200.4645275.04611e-06
210.4341234.71583e-06
220.4280874.65024e-06
230.4115174.47029e-06
240.3936064.27571.9e-05
250.3768624.09383.9e-05
260.3430663.72670.00015
270.3071593.33660.000567
280.2863133.11020.001172
290.2608982.83410.002704
300.2449672.6610.004438
310.233342.53470.006281
320.2102582.2840.01208
330.1962492.13180.017548
340.1857952.01830.022917
350.1727061.87610.031558
360.1683771.8290.034959
370.1529821.66180.049603
380.1230351.33650.091978
390.1052981.14380.127505
400.0625160.67910.249203
410.0358820.38980.348703
420.017070.18540.426608
43-0.012611-0.1370.445634
44-0.031493-0.34210.366443
45-0.048345-0.52520.30023
46-0.062489-0.67880.249296
47-0.072099-0.78320.217541
48-0.094604-1.02770.153106


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.92765610.07690
20.1473461.60060.056071
30.1452661.5780.058622
4-0.091894-0.99820.160107
50.217082.35810.010007
6-0.033553-0.36450.358077
70.0317060.34440.365573
80.0918130.99730.160319
9-0.11603-1.26040.105005
10-0.032385-0.35180.36281
110.1880272.04250.021665
12-0.006822-0.07410.470525
13-0.245318-2.66480.004391
14-0.024909-0.27060.393592
15-0.123749-1.34430.090722
160.0314620.34180.366569
170.0652760.70910.239837
180.0654210.71070.239349
19-0.004895-0.05320.478841
20-0.017456-0.18960.424968
21-0.002401-0.02610.489618
220.1001521.08790.139421
23-0.059625-0.64770.259221
240.0100710.10940.456537
25-0.077704-0.84410.200165
26-0.064687-0.70270.241818
27-0.065825-0.7150.237996
280.0509160.55310.290626
29-0.030751-0.3340.369471
30-0.045694-0.49640.310279
31-0.025587-0.2780.390768
320.0019480.02120.491577
330.0373620.40590.342792
340.0456420.49580.310479
350.0654760.71130.239166
36-0.029606-0.32160.374162
37-0.025206-0.27380.392356
38-0.080515-0.87460.191779
390.0583110.63340.263843
40-0.24229-2.63190.004812
410.0382590.41560.33923
42-0.122304-1.32860.093278
43-0.014721-0.15990.436611
44-0.071922-0.78130.218103
450.1014891.10250.136254
460.0269820.29310.384982
47-0.037626-0.40870.341741
48-0.073236-0.79550.213947
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/1fbc01302189510.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/1fbc01302189510.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/260cm1302189510.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/260cm1302189510.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/3wvp71302189510.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/07/t1302189422ib1lw5c7drpde21/3wvp71302189510.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