Home » date » 2010 » Nov » 18 »

Opgave 6 bis oefening 2 stap 1

*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, 18 Nov 2010 17:56: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/2010/Nov/18/t1290102928e2cd183oc5ezwix.htm/, Retrieved Thu, 18 Nov 2010 18:55:30 +0100
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2010/Nov/18/t1290102928e2cd183oc5ezwix.htm/},
    year = {2010},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2010},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
105,23 105,22 105,13 105 105,01 105,01 105,01 105,01 105,57 106,05 106,09 106,2 106,19 106,2 106,09 106,23 106,23 106,22 106,22 106,61 106,95 107,74 107,8 107,8 107,2 107,56 107,72 108,14 108,16 108,16 108,16 108,1 108,95 110,49 110,72 110,82 110,82 110,75 110,71 110,86 110,84 110,84 110,84 110,92 111,46 112,46 113,04 113,15 113,15 113,21 113,37 113,47 113,71 113,71 113,71 113,8 115,46 117 117,94 118,08 118,08 118,47 118,49 118,45 118,54 118,55 118,55 118,55 119,04 121,37 122 122,14
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9502078.06280
20.8953077.59690
30.8419117.14390
40.8024646.80910
50.7653866.49450
60.7272026.17050
70.6875395.8340
80.646785.48810
90.6074665.15451e-06
100.5695194.83254e-06
110.5302884.49961.3e-05
120.4893074.15194.5e-05
130.4413273.74480.00018
140.3885033.29660.000761
150.3390812.87720.002638
160.2994842.54120.006601
170.2700062.29110.012444
180.239962.03610.022709
190.2088431.77210.040305
200.1781081.51130.067545
210.1496521.26980.104115
220.1244161.05570.147317
230.0996680.84570.200257
240.0719520.61050.271715
250.0370390.31430.377106
260.0001670.00140.499435
27-0.033926-0.28790.387137
28-0.060719-0.51520.303989
29-0.084412-0.71630.238073
30-0.108282-0.91880.180634
31-0.132863-1.12740.131663
32-0.158441-1.34440.091518
33-0.181201-1.53750.064273
34-0.197737-1.67790.048856
35-0.21396-1.81550.036805
36-0.232105-1.96950.026373
37-0.25418-2.15680.017181
38-0.278983-2.36720.010306
39-0.303599-2.57610.006022
40-0.318434-2.7020.004295
41-0.328205-2.78490.003419
42-0.338736-2.87430.00266
43-0.349948-2.96940.002025
44-0.361385-3.06650.001525
45-0.371326-3.15080.001186
46-0.374816-3.18040.001085
47-0.375416-3.18550.001068
48-0.374183-3.1750.001103


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9502078.06280
2-0.078121-0.66290.254762
3-0.010819-0.09180.463555
40.1138760.96630.168572
5-0.012043-0.10220.459446
6-0.032004-0.27160.393367
7-0.017169-0.14570.442289
8-0.029975-0.25430.399977
9-0.011251-0.09550.462104
10-0.013239-0.11230.455434
11-0.041439-0.35160.363075
12-0.038972-0.33070.37092
13-0.095898-0.81370.209243
14-0.081454-0.69120.245844
15-0.002147-0.01820.492758
160.0449060.3810.352148
170.0533990.45310.325919
18-0.030112-0.25550.399528
19-0.010624-0.09010.46421
200.0045970.0390.484495
21-0.005262-0.04460.482255
220.0026520.02250.491055
23-0.016896-0.14340.443201
24-0.047434-0.40250.344258
25-0.087883-0.74570.229134
26-0.04499-0.38180.351884
27-0.020031-0.170.432756
280.0076210.06470.474311
29-0.027739-0.23540.407295
30-0.031905-0.27070.393689
31-0.011637-0.09870.460809
32-0.025784-0.21880.413718
33-0.000913-0.00770.49692
340.0307870.26120.397327
35-0.025801-0.21890.413664
36-0.029796-0.25280.400562
37-0.038966-0.33060.37094
38-0.051788-0.43940.33083
39-0.046198-0.3920.348107
400.0371120.31490.376872
41-0.011675-0.09910.46068
42-0.040769-0.34590.365199
43-0.006385-0.05420.478471
44-0.018223-0.15460.438773
45-0.023784-0.20180.420316
460.0304250.25820.398508
470.0008610.00730.497096
480.0106230.09010.464215
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290102928e2cd183oc5ezwix/1adtl1290102985.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290102928e2cd183oc5ezwix/1adtl1290102985.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Nov/18/t1290102928e2cd183oc5ezwix/2l5a61290102985.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Nov/18/t1290102928e2cd183oc5ezwix/2l5a61290102985.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 (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep=''))
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF')
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