Home » date » 2010 » Aug » 19 »

Tijdreeks A - Stap 21

*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 17:24:22 +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/19/t1282238638fbkikag4nv07gu5.htm/, Retrieved Thu, 19 Aug 2010 19:24:00 +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/19/t1282238638fbkikag4nv07gu5.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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.0698510.7620.22379
2-0.48784-5.32170
3-0.149396-1.62970.052903
40.2075482.26410.01269
50.1200141.30920.096496
6-0.110405-1.20440.115418
70.1640321.78940.038049
80.2062122.24950.013159
9-0.122002-1.33090.092886
10-0.484136-5.28130
110.054640.59610.276136
120.8320759.07690
130.0329110.3590.360108
14-0.419868-4.58026e-06
15-0.127971-1.3960.082658
160.2042672.22830.01387
170.1062541.15910.12437
18-0.100269-1.09380.138124
190.1427971.55770.060976
200.1892262.06420.020586
21-0.094088-1.02640.153398
22-0.460579-5.02431e-06
230.0291820.31830.375395
240.6825327.44550
250.0018050.01970.492162
26-0.343799-3.75040.000137
27-0.134892-1.47150.071898
280.176271.92290.028442
290.0713610.77850.218922
30-0.083911-0.91540.180927
310.1102791.2030.115683
320.154591.68640.047171
33-0.043806-0.47790.316811
34-0.42714-4.65954e-06
350.0339610.37050.355847
360.554936.05360
37-0.005532-0.06030.475989
38-0.302083-3.29530.000648
39-0.123455-1.34670.090312
400.1507751.64480.051329
410.0199580.21770.41401
42-0.059993-0.65440.257045
430.0893720.97490.165786
440.098271.0720.142944
45-0.060897-0.66430.25389
46-0.362009-3.94916.7e-05
470.0592410.64620.259684
480.4374654.77223e-06


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0698510.7620.22379
2-0.495135-5.40130
3-0.085019-0.92740.177787
4-0.01933-0.21090.416677
5-0.008277-0.09030.464103
6-0.048826-0.53260.297643
70.3279473.57750.000251
80.178211.9440.027126
90.0799990.87270.192297
10-0.402583-4.39171.2e-05
110.0700340.7640.223195
120.6943147.57410
13-0.180747-1.97170.025481
140.18011.96470.025892
150.0043040.0470.481315
160.0040550.04420.482394
170.1597051.74220.04203
18-0.002137-0.02330.490719
19-0.072451-0.79040.215448
200.0476730.52010.301996
21-0.036154-0.39440.346998
220.0001660.00180.499278
23-0.081161-0.88540.188875
24-0.075262-0.8210.206642
25-0.072491-0.79080.215322
260.0526030.57380.283581
27-0.153443-1.67390.048392
28-0.006798-0.07420.470503
29-0.097422-1.06270.145024
300.0347650.37920.352591
31-0.058076-0.63350.2638
32-0.051434-0.56110.2879
330.0783970.85520.197077
34-0.052885-0.57690.282546
350.1150451.2550.105971
36-0.008123-0.08860.464771
370.0187960.2050.418944
38-0.034406-0.37530.354045
390.0956741.04370.149373
40-0.059596-0.65010.258435
41-0.052998-0.57810.282131
420.0553950.60430.273401
43-0.020843-0.22740.410261
44-0.122245-1.33350.092452
45-0.101631-1.10870.134905
460.0467850.51040.305373
47-0.037004-0.40370.34359
48-0.045079-0.49180.311901
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282238638fbkikag4nv07gu5/1tffx1282238660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282238638fbkikag4nv07gu5/1tffx1282238660.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/19/t1282238638fbkikag4nv07gu5/2lowi1282238660.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/19/t1282238638fbkikag4nv07gu5/2lowi1282238660.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 (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