Home » date » 2010 » Jan » 04 »

opgave 6 bis eigen reeks

*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, 04 Jan 2010 14:08:15 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/04/t1262639368kcr9ncsjpzzmy1n.htm/, Retrieved Mon, 04 Jan 2010 22:09: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/Jan/04/t1262639368kcr9ncsjpzzmy1n.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 «
203.7 173.8 167.1 151.8 144.5 128.4 121.6 124.9 122.7 148.1 176.9 234.6 254.6 279.7 275.8 283 295.4 297.6 276.8 250.1 239.1 258.9 276.1 264.1 265.5 287.7 285.1 304.5 301.5 274.2 258.6 253.9 269.6 266.9 269.6 257.9 258.2 254.7 237.2 267.2 228.8 196.3 194.8 186.6 176.7 162.1 154.9 150.1 150.5 143.6 143.8 141.5 147.9 151.4 144.6 140.4 139.5 138.1 136.7 130 128.5 130.4 125.7 121.7 129.9 129.6 128.2 119.7 112.2 105.6 101.2 94.9 95.1 93.1 91.4 89.8 85.9 89.7 91.6 88.6 86.9 86.4 82.2 81.5 81.2
 
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.9689068.93290
20.9261428.53860
30.8763138.07920
40.8241627.59840
50.7698547.09770
60.7133986.57720
70.6610566.09460
80.6147955.66810
90.5804555.35150
100.5516445.08591e-06
110.5240044.83113e-06
120.4868874.48891.1e-05
130.4446664.09964.7e-05
140.4022233.70830.000186
150.3564133.2860.000739
160.3089122.8480.002758
170.2608612.4050.009171
180.2117351.95210.027109
190.1665651.53570.064168
200.1296171.1950.117704
210.0998390.92050.179966
220.0657080.60580.273133
230.0285690.26340.396443
24-0.008022-0.0740.470607
25-0.041473-0.38240.351575
26-0.076823-0.70830.240356
27-0.11267-1.03880.15093
28-0.149274-1.37620.086181
29-0.18742-1.72790.043816
30-0.219134-2.02030.02325
31-0.245038-2.25910.013217
32-0.263844-2.43250.008546
33-0.281444-2.59480.005573
34-0.297463-2.74250.003717
35-0.309322-2.85180.002728
36-0.31985-2.94890.002059
37-0.328819-3.03160.001612
38-0.339622-3.13120.001194
39-0.347823-3.20680.000946
40-0.361561-3.33340.000636
41-0.373718-3.44550.000444
42-0.383784-3.53830.000328
43-0.393787-3.63050.000241
44-0.403594-3.7210.000178
45-0.406042-3.74350.000165
46-0.398589-3.67480.000208
47-0.396069-3.65160.000225
48-0.388104-3.57810.000287


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9689068.93290
2-0.206412-1.9030.030211
3-0.106815-0.98480.163762
4-0.031285-0.28840.38686
5-0.049589-0.45720.324351
6-0.055513-0.51180.305057
70.0528830.48760.31356
80.0548670.50580.307136
90.1356511.25060.107249
10-0.001258-0.01160.495388
11-0.056563-0.52150.301692
12-0.21471-1.97950.025496
13-0.084751-0.78140.218379
140.0082070.07570.469931
15-0.048549-0.44760.327791
160.0004310.0040.498419
170.029990.27650.391419
18-0.052397-0.48310.31514
190.0034240.03160.487445
200.0302890.27930.390365
210.0060510.05580.477822
22-0.173348-1.59820.056856
23-0.070428-0.64930.258944
240.004670.04310.482879
250.0232340.21420.415451
26-0.0592-0.54580.293316
270.0149590.13790.445318
28-0.024153-0.22270.41216
29-0.058202-0.53660.296475
300.0326820.30130.381955
31-0.017052-0.15720.437726
320.0143410.13220.447562
33-0.013566-0.12510.450381
34-0.011598-0.10690.45755
350.0071240.06570.473894
36-0.045092-0.41570.33933
37-0.003105-0.02860.488614
38-0.043428-0.40040.344937
390.0609860.56230.287708
40-0.099001-0.91270.181979
41-0.016935-0.15610.43815
42-0.037427-0.34510.365451
43-0.0313-0.28860.386806
44-0.029657-0.27340.392594
450.1247411.15010.126672
460.0869420.80160.21252
47-0.191499-1.76550.040533
480.05850.53930.295531
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/04/t1262639368kcr9ncsjpzzmy1n/1n71y1262639292.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/04/t1262639368kcr9ncsjpzzmy1n/1n71y1262639292.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/04/t1262639368kcr9ncsjpzzmy1n/29obv1262639292.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/04/t1262639368kcr9ncsjpzzmy1n/29obv1262639292.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