Home » date » 2010 » Aug » 20 »

Tijdreeks B - stap 17

*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, 19 Aug 2010 22:30:39 +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/Aug/20/t12822570110tk76linyfvzx2u.htm/, Retrieved Fri, 20 Aug 2010 00:30:12 +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/Aug/20/t12822570110tk76linyfvzx2u.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:
Van Boxel Dieter
 
Dataseries X:
» Textbox « » Textfile « » CSV «
356 355 354 352 372 371 356 346 347 347 348 350 353 350 343 346 373 363 349 350 353 356 355 346 349 348 342 342 379 375 363 361 363 373 367 360 358 367 357 346 386 383 367 354 363 370 361 354 363 366 353 351 389 385 364 348 347 352 342 338 343 354 329 320 353 345 324 310 314 313 310 301 294 296 274 269 292 287 271 256 260 265 263 256 246 245 220 224 240 238 222 203 209 214 216 214 206 196 169 177 193 183 164 142 141 137 140 146 136 124 105 114 135 123 100 74 64 57 62 64
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.96325610.55190
20.92410510.12310
30.8923999.77570
40.8644779.46990
50.832759.12230
60.803878.8060
70.7825558.57250
80.7609118.33540
90.7300667.99750
100.6989027.65610
110.6803987.45340
120.662797.26050
130.6309046.91120
140.596696.53640
150.5696336.240
160.5450865.97110
170.5144315.63530
180.4867115.33170
190.4655075.09941e-06
200.4432514.85562e-06
210.413154.52587e-06
220.3822834.18772.7e-05
230.3656154.00515.4e-05
240.3507313.84219.8e-05
250.3240553.54980.000276
260.2973853.25770.00073
270.2767053.03110.001493
280.2569872.81520.00285
290.2295352.51440.006623
300.2046522.24180.013404
310.1852072.02880.022344
320.163781.79410.037656
330.1352461.48150.070541
340.1054191.15480.125233
350.0890730.97570.165577
360.0722950.79190.214977
370.0469180.5140.30411
380.0221130.24220.404507
390.0036760.04030.483973
40-0.01323-0.14490.442504
41-0.037111-0.40650.342538
42-0.058374-0.63950.261873
43-0.074343-0.81440.208519
44-0.090426-0.99060.161945
45-0.114529-1.25460.106031
46-0.137351-1.50460.067527
47-0.148313-1.62470.053427
48-0.160786-1.76130.040365


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96325610.55190
2-0.052078-0.57050.284707
30.0841890.92220.179126
40.0288750.31630.37616
5-0.061651-0.67540.250374
60.035910.39340.347369
70.0798780.8750.191657
8-0.020679-0.22650.410587
9-0.11683-1.27980.10154
10-0.008477-0.09290.463086
110.1355611.4850.070084
12-0.013937-0.15270.439455
13-0.176754-1.93620.027595
14-0.033054-0.36210.35896
150.0346150.37920.352607
160.0078990.08650.465595
17-0.054865-0.6010.274483
180.0243630.26690.395008
190.0048280.05290.478953
20-0.037512-0.41090.340929
21-0.045202-0.49520.310694
22-0.015289-0.16750.433636
230.1095191.19970.116306
24-0.012005-0.13150.447798
25-0.11191-1.22590.111315
260.0107090.11730.453405
270.0036230.03970.484203
28-0.00436-0.04780.480993
29-0.060051-0.65780.255957
300.0107820.11810.453087
31-0.027905-0.30570.380187
32-0.055633-0.60940.271697
33-0.016292-0.17850.429327
34-0.03168-0.3470.364586
350.0710050.77780.219102
36-0.05112-0.560.288265
37-0.059897-0.65610.256495
380.0076440.08370.466702
39-0.005954-0.06520.474055
400.0148020.16210.435733
41-0.045131-0.49440.310968
420.0012620.01380.494497
43-0.02701-0.29590.383915
44-0.020914-0.22910.409592
45-0.023648-0.25910.398019
460.0028090.03080.487751
470.0416250.4560.324615
48-0.057656-0.63160.264428
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822570110tk76linyfvzx2u/1i1e51282257035.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822570110tk76linyfvzx2u/1i1e51282257035.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/20/t12822570110tk76linyfvzx2u/2i1e51282257035.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/20/t12822570110tk76linyfvzx2u/2i1e51282257035.ps (open in new window)


 
Parameters (Session):
par1 = multiplicative ; par2 = 12 ;
 
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