Home » date » 2010 » May » 05 »

Opgave 6 Oefening 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: Wed, 05 May 2010 09:51:48 +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/May/05/t1273053338y6rdazm81tdo4u3.htm/, Retrieved Wed, 05 May 2010 11:55:40 +0200
 
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/May/05/t1273053338y6rdazm81tdo4u3.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
22577.0 22792.0 23932.0 22321.0 21102.0 22824.0 23129.0 23604.0 24746.0 26911.0 27909.0 28922.0 29800.0 30506.0 30771.0 31976.0 33749.0 34371.0 33246.0 35072.0 35762.0 36179.0 37433.0 38298.0 37559.0 37511.0 39364.0 40084.0 42712.0 41938.0 40799.0 38568.0 41134.0 43955.0 43607.0 45082.0 46464.0 46496.0 46774.0 47890.0 45740.0 42660.0 39190.0 39010.0 41150.0 42530.0 44710.0 46620.0 44560.0 46120.0 48060.0 51970.0 57720.0 63490.0 65370.0 64260.0 58700.0 58630.0 59803.0 59266.0 60570.0 63062.0 63846.0 64726.0 63460.0 65220.0 66659.0 66871.0 65672.0 67182.0 68292.0 68318.0 69530.0 70500.0 72044.0 73811.0 76018.0 77818.0 79455.0 81408.0 81815.0
 
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' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9537378.58360
20.9020688.11860
30.8526727.6740
40.8035897.23230
50.7564326.80790
60.715086.43570
70.67526.07680
80.6355535.720
90.5959885.36390
100.5604125.04371e-06
110.5266234.73965e-06
120.4953584.45821.3e-05
130.4671734.20463.3e-05
140.4367923.93118.9e-05
150.4043713.63930.00024
160.3741083.3670.000582
170.3463723.11730.001263
180.3148252.83340.002905
190.2814862.53340.006613
200.2499462.24950.013597
210.2225572.0030.02426
220.1973731.77640.039714
230.172561.5530.062156
240.1498191.34840.090649
250.1242181.1180.133444
260.086660.77990.218849
270.0462720.41650.33909
280.0069730.06280.475059
29-0.021649-0.19480.423004
30-0.042407-0.38170.351856
31-0.059678-0.53710.296333
32-0.077267-0.69540.244398
33-0.089928-0.80940.210342
34-0.10324-0.92920.177784
35-0.114544-1.03090.15283
36-0.120889-1.0880.139911
37-0.123559-1.1120.134708
38-0.124095-1.11690.133679
39-0.126282-1.13650.129541
40-0.133654-1.20290.116263
41-0.148753-1.33880.092194
42-0.171881-1.54690.062889
43-0.198913-1.79020.038578
44-0.22708-2.04370.022115
45-0.254656-2.29190.012254
46-0.279632-2.51670.00691
47-0.300724-2.70650.004145
48-0.320475-2.88430.002512


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9537378.58360
2-0.083489-0.75140.227293
30.0014940.01340.494652
4-0.026259-0.23630.406886
5-0.005299-0.04770.481039
60.0354290.31890.375325
7-0.014302-0.12870.448952
8-0.019901-0.17910.429148
9-0.022951-0.20660.418435
100.0217630.19590.422601
11-0.004524-0.04070.483811
120.0069120.06220.475275
130.0106090.09550.462085
14-0.046081-0.41470.339719
15-0.034514-0.31060.378442
160.0056450.05080.479804
170.0067490.06070.475857
18-0.062842-0.56560.286623
19-0.039135-0.35220.362795
20-0.005831-0.05250.47914
210.0240770.21670.414496
220.0029580.02660.489412
23-0.024373-0.21940.413462
24-0.001991-0.01790.492873
25-0.052934-0.47640.317533
26-0.147432-1.32690.094138
27-0.050052-0.45050.326787
28-0.023563-0.21210.416294
290.0860540.77450.220449
300.0406270.36560.357794
310.0004610.00410.49835
32-0.027152-0.24440.403781
330.0398690.35880.360331
34-0.026678-0.24010.405427
350.0036440.03280.486959
360.0358580.32270.373867
370.0154090.13870.445022
380.0117570.10580.457996
39-0.020746-0.18670.426177
40-0.051616-0.46450.321751
41-0.091924-0.82730.205244
42-0.10802-0.97220.166929
43-0.063319-0.56990.28517
44-0.034826-0.31340.377377
45-0.020833-0.18750.42587
46-0.030954-0.27860.390635
47-0.013888-0.1250.450419
48-0.025624-0.23060.409098
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/05/t1273053338y6rdazm81tdo4u3/1m6bx1273053106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273053338y6rdazm81tdo4u3/1m6bx1273053106.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/05/t1273053338y6rdazm81tdo4u3/2m6bx1273053106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/05/t1273053338y6rdazm81tdo4u3/2m6bx1273053106.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