Home » date » 2011 » May » 18 »

Autocorrelatiefunctie 2-Consumentenprijzen Kabeljauw-Toon Baeten

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 18 May 2011 15:01:05 +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/18/t1305730790uyz15lkmzf97z5x.htm/, Retrieved Wed, 18 May 2011 16:59:54 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12.32 12.34 12.36 12.54 12.77 12.79 12.96 12.96 13 13.19 13.25 13.61 13.8 13.83 14.04 14.16 14.2 14.27 14.31 14.69 14.9 14.92 15.01 15.09 15.14 15.24 15.33 15.36 15.44 15.5 15.58 15.65 15.72 15.82 15.87 16.07 16.18 16.19 16.39 16.54 16.61 16.62 16.66 16.71 16.72 16.79 16.82 16.83 16.91 16.97 17.02 17.03 17.04 17.07 17.11 17.12 17.14 17.18 17.24 17.26 17.26 17.29 17.36 17.44 17.48 17.48 17.52 17.54 17.58 17.64 17.69 17.69 17.76 17.79 17.82 17.89 17.95 18 18.03 18.06 18.08 18.13 18.16 18.18 18.18 18.27 18.31 18.35 18.45 18.5
 
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'George Udny Yule' @ 216.218.223.82


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2078761.96110.026497
20.0815770.76960.221789
30.2767852.61120.005294
40.0239730.22620.410798
50.3080142.90580.002311
60.1453681.37140.08685
70.1520131.43410.077525
80.4069883.83950.000115
90.1147941.0830.140875
100.1428661.34780.090573
110.1441181.35960.088694
12-0.044797-0.42260.3368
130.1228141.15860.124854
140.0843490.79580.214147
150.1456561.37410.086428
160.2760992.60470.005388
170.0031190.02940.488297
18-0.044552-0.42030.33764
190.1838271.73420.04317
200.0875890.82630.205418
210.0307730.29030.386125
22-0.007291-0.06880.472658
230.0252350.23810.406187
240.1686441.5910.05758
250.0022770.02150.491453
260.0284950.26880.394345
270.0887820.83760.202259
28-0.002838-0.02680.489349
290.0619540.58450.280192
30-0.039658-0.37410.354598
31-0.032652-0.3080.379385
32-0.049887-0.47060.319528
33-0.119545-1.12780.131222
34-0.006124-0.05780.477028
35-0.052353-0.49390.311299
36-0.079691-0.75180.227076
37-0.073743-0.69570.244219
38-0.107652-1.01560.156289
39-0.045188-0.42630.335458
40-0.128932-1.21630.113536
41-0.165801-1.56420.060665
42-0.091191-0.86030.195968
43-0.076085-0.71780.237385
44-0.088503-0.83490.202996
45-0.134867-1.27230.103285
46-0.13183-1.24370.108442
47-0.095445-0.90040.185161
48-0.157687-1.48760.070193


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2078761.96110.026497
20.0400970.37830.353063
30.2639852.49040.007308
4-0.092471-0.87240.192677
50.3438563.24390.000831
6-0.083226-0.78520.217224
70.2321512.19010.015566
80.1995011.88210.031546
90.0409410.38620.350122
100.0096930.09140.463671
11-0.032976-0.31110.378229
12-0.138929-1.31070.096673
13-0.05741-0.54160.29472
14-0.029599-0.27920.390355
150.0968760.91390.181613
160.1054010.99430.161374
17-0.064182-0.60550.273195
18-0.146271-1.37990.085534
190.202271.90820.029793
200.0532280.50210.308401
21-0.036683-0.34610.365054
22-0.132623-1.25120.107077
230.0082310.07770.469139
24-0.009116-0.0860.465831
25-0.03129-0.29520.38427
260.0763270.72010.236684
27-0.004596-0.04340.482758
280.0282520.26650.395226
29-0.008434-0.07960.468382
30-0.088259-0.83260.203639
31-0.024013-0.22650.410651
32-0.189027-1.78330.038975
33-0.029373-0.27710.39117
34-0.089275-0.84220.200961
35-0.10542-0.99450.16133
36-0.070469-0.66480.253946
370.0577270.54460.293696
380.0667780.630.265162
39-0.008752-0.08260.467189
40-0.038751-0.36560.357776
41-0.000828-0.00780.496891
42-0.024058-0.2270.410485
435.9e-056e-040.499778
44-0.081485-0.76870.222045
45-0.05184-0.48910.313004
46-0.052539-0.49570.310681
470.025950.24480.403583
48-0.061318-0.57850.282202
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/1owel1305730862.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/1owel1305730862.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/2rbcd1305730862.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/2rbcd1305730862.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/3h67y1305730862.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/18/t1305730790uyz15lkmzf97z5x/3h67y1305730862.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