Home » date » 2010 » Jul » 19 »

Tijdreeks 1 - Stap 20

*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, 19 Jul 2010 10:59:35 +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/Jul/19/t12795379636gc41ucwjaw9ijq.htm/, Retrieved Mon, 19 Jul 2010 13:12:45 +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/Jul/19/t12795379636gc41ucwjaw9ijq.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 Puyenbroeck Cassandra
 
Dataseries X:
» Textbox « » Textfile « » CSV «
349 348 347 345 365 364 349 339 340 340 341 343 341 343 341 335 355 357 337 325 336 338 337 328 326 327 319 310 320 322 303 292 303 315 311 307 308 312 309 310 309 304 287 275 290 298 294 286 294 292 287 281 280 271 264 259 271 279 279 273 286 286 280 277 269 255 252 245 257 267 261 258 271 262 258 253 236 228 235 226 231 235 227 222 233 221 218 220 204 196 208 190 191 194 179 162 179 176 168 170 153 142 155 136 136 144 135 114 135 132 123 123 103 97 113 108 111 121 111 97
 
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.96713210.59440
20.93819410.27740
30.91731510.04870
40.8907519.75770
50.8603389.42450
60.8338569.13440
70.801078.77530
80.7732448.47050
90.7499438.21520
100.7224337.91390
110.7006597.67530
120.6800837.44990
130.6423427.03650
140.6096116.6780
150.585166.41010
160.5570846.10260
170.524295.74330
180.4973025.44770
190.4667235.11271e-06
200.4416134.83762e-06
210.4195494.59595e-06
220.3938624.31451.7e-05
230.3716264.0714.2e-05
240.3518143.85399.4e-05
250.3197383.50260.000324
260.2915193.19340.000898
270.2726612.98690.001709
280.2528072.76940.003255
290.2287752.50610.006773
300.209752.29770.011656
310.1890022.07040.020279
320.1729351.89440.030289
330.1596141.74850.041469
340.1421981.55770.060969
350.1258571.37870.085277
360.1126611.23410.109782
370.0915451.00280.158981
380.0715190.78350.217453
390.0571780.62640.266135
400.0413240.45270.325798
410.0220480.24150.404782
420.0057730.06320.474841
43-0.010191-0.11160.455649
44-0.02137-0.23410.407653
45-0.031239-0.34220.366396
46-0.042763-0.46840.32016
47-0.053725-0.58850.278642
48-0.061627-0.67510.250457


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.96713210.59440
20.0440740.48280.315057
30.1134771.24310.108131
4-0.084708-0.92790.177652
5-0.068884-0.75460.225989
60.0195890.21460.415225
7-0.116222-1.27310.102713
80.0703370.77050.221259
90.0385750.42260.336684
10-0.046096-0.5050.307258
110.089450.97990.16456
12-0.025641-0.28090.389642
13-0.255224-2.79580.003015
140.0224310.24570.403158
150.043530.47680.31717
160.0051110.0560.477721
17-0.06198-0.6790.249235
180.0320330.35090.363137
19-0.037064-0.4060.342728
200.0452650.49590.310451
21-0.00168-0.01840.492674
22-0.028584-0.31310.377367
230.0215280.23580.406983
24-0.012243-0.13410.446769
25-0.131425-1.43970.076279
260.0014120.01550.493842
270.0514190.56330.287153
280.0544370.59630.276039
29-0.024995-0.27380.392351
300.0064150.07030.472046
31-0.021306-0.23340.407927
320.0201680.22090.412763
330.0020460.02240.49108
34-0.035497-0.38880.349038
35-0.006451-0.07070.471891
36-0.002818-0.03090.487712
37-0.050367-0.55170.291077
38-0.026581-0.29120.385707
39-0.018034-0.19750.421866
400.0120570.13210.44757
41-0.009637-0.10560.458049
42-0.023024-0.25220.400654
430.0030110.0330.486872
440.0288380.31590.376312
45-0.003873-0.04240.483116
460.0130350.14280.443349
47-0.011004-0.12050.452126
48-0.007567-0.08290.467038
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/19/t12795379636gc41ucwjaw9ijq/121a71279537174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/19/t12795379636gc41ucwjaw9ijq/121a71279537174.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/19/t12795379636gc41ucwjaw9ijq/221a71279537174.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/19/t12795379636gc41ucwjaw9ijq/221a71279537174.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