Home » date » 2010 » Jul » 20 »

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: Tue, 20 Jul 2010 11:33:54 +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/20/t1279625657txek4j3n4rcu3fj.htm/, Retrieved Tue, 20 Jul 2010 13:34:17 +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/20/t1279625657txek4j3n4rcu3fj.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:
Vanhille Olivier
 
Dataseries X:
» Textbox « » Textfile « » CSV «
568 567 566 564 584 583 568 558 559 559 560 562 563 552 552 555 575 567 548 541 544 546 551 550 546 532 523 528 555 543 525 517 519 521 520 516 509 494 484 482 508 500 480 467 471 482 481 477 471 455 441 434 459 448 432 414 415 423 425 427 415 399 386 377 397 379 361 350 348 363 367 365 354 327 312 307 335 317 298 286 288 303 310 301 293 264 255 251 279 253 233 226 232 245 250 242 230 196 188 181 212 186 166 155 157 173 182 182 168 131 114 106 134 103 83 74 83 96 95 100
 
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.97595210.6910
20.94974310.40390
30.92522210.13530
40.9028429.89010
50.878199.62010
60.8519759.33290
70.8259369.04770
80.80148.77890
90.7743088.48210
100.7511048.22790
110.73098.00660
120.7125387.80550
130.6884017.54110
140.6636257.26970
150.6393197.00340
160.6160616.74860
170.5911656.47590
180.5656166.1960
190.5407635.92380
200.5169715.66310
210.4901775.36960
220.466655.11191e-06
230.4448544.87312e-06
240.4248734.65424e-06
250.4003294.38541.3e-05
260.3764074.12333.5e-05
270.3539133.87698.7e-05
280.3321753.63880.000203
290.3079753.37375e-04
300.2831783.10210.001198
310.2593182.84070.002645
320.2368552.59460.005325
330.2118122.32030.011007
340.1894272.07510.020058
350.168971.8510.033316
360.1500821.64410.05139
370.1274361.3960.082648
380.1059141.16020.124129
390.0856890.93870.174892
400.065970.72270.235647
410.0441970.48420.314581
420.0222750.2440.40382
430.0017450.01910.492392
44-0.017519-0.19190.42407
45-0.039575-0.43350.332706
46-0.05983-0.65540.256732
47-0.077762-0.85180.198001
48-0.094147-1.03130.15223


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97595210.6910
2-0.057631-0.63130.264517
30.0241790.26490.395783
40.0292110.320.374767
5-0.062538-0.68510.24731
6-0.038763-0.42460.335933
7-0.009069-0.09930.460515
80.0110880.12150.451764
9-0.070571-0.77310.220502
100.0777970.85220.197895
110.0420880.46110.322797
120.0194310.21290.4159
13-0.123872-1.3570.088672
14-0.013518-0.14810.441264
15-0.018369-0.20120.420434
16-0.012579-0.13780.445315
17-0.035437-0.38820.34928
18-0.02266-0.24820.402191
190.0024980.02740.489107
20-0.000541-0.00590.497641
21-0.059903-0.65620.256475
220.0500060.54780.292427
230.0007060.00770.496919
240.006550.07170.471461
25-0.091667-1.00420.158661
260.0088260.09670.461569
27-0.002278-0.0250.490065
28-0.020916-0.22910.409581
29-0.045941-0.50330.307852
30-0.027121-0.29710.383453
310.0009420.01030.495891
32-0.00226-0.02480.490144
33-0.041443-0.4540.32533
340.0284930.31210.377744
350.0054120.05930.476411
36-0.003151-0.03450.48626
37-0.069375-0.760.224383
380.0110560.12110.4519
39-0.01554-0.17020.432559
40-0.028699-0.31440.376889
41-0.032396-0.35490.36165
42-0.020661-0.22630.410666
430.0065070.07130.471645
44-0.007954-0.08710.465356
45-0.041045-0.44960.326895
460.0040340.04420.482414
470.0123810.13560.446172
48-0.008178-0.08960.464383
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/20/t1279625657txek4j3n4rcu3fj/1br6l1279625630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/20/t1279625657txek4j3n4rcu3fj/1br6l1279625630.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/20/t1279625657txek4j3n4rcu3fj/2br6l1279625630.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/20/t1279625657txek4j3n4rcu3fj/2br6l1279625630.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