Home » date » 2010 » Jul » 26 »

TIJDREEKS A - 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, 26 Jul 2010 15:45:51 +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/26/t12801591441oefsb5w8evzks2.htm/, Retrieved Mon, 26 Jul 2010 17:45:46 +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/26/t12801591441oefsb5w8evzks2.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:
Hoes Isabelle
 
Dataseries X:
» Textbox « » Textfile « » CSV «
698 697 696 694 714 713 698 688 689 689 690 692 688 679 677 673 694 690 673 659 657 654 644 643 638 626 621 615 640 633 620 610 601 595 585 584 580 574 560 550 580 569 551 536 535 526 517 512 510 501 496 491 524 514 495 479 479 467 451 459 461 460 452 449 483 470 442 419 419 406 393 396 390 389 373 371 407 391 357 327 321 317 300 304 296 296 283 279 319 295 255 227 228 233 210 219 212 209 201 198 245 216 173 144 143 152 127 141 129 127 113 117 174 143 103 81 92 104 81 89
 
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'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.97568410.68810
20.95000810.40680
30.92787310.16430
40.9056039.92040
50.8798839.63860
60.8540669.35580
70.8337849.13370
80.8148088.92580
90.7901848.6560
100.7657118.38790
110.7434678.14430
120.7202747.89020
130.6918277.57860
140.6622487.25460
150.6362076.96930
160.6101916.68430
170.5816566.37170
180.5541056.06990
190.5321945.82990
200.5120175.60890
210.4871855.33680
220.4630445.07241e-06
230.4410134.83112e-06
240.4182644.58196e-06
250.3910384.28361.9e-05
260.3634013.98095.9e-05
270.3392963.71680.000154
280.3155283.45640.000379
290.2890333.16620.000979
300.2638662.89050.002283
310.243582.66830.004339
320.2247862.46240.00761
330.2024222.21740.014239
340.1807731.98030.024981
350.1613411.76740.039851
360.1410171.54480.062519
370.1172281.28420.100779
380.0932651.02170.154497
390.0728270.79780.213286
400.053620.58740.279027
410.0320150.35070.363212
420.0122880.13460.446575
43-0.002904-0.03180.487337
44-0.01668-0.18270.427663
45-0.034013-0.37260.355055
46-0.050783-0.55630.289522
47-0.065275-0.71510.237983
48-0.080178-0.87830.190765


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.97568410.68810
2-0.040602-0.44480.328644
30.0614270.67290.251153
4-0.01865-0.20430.419231
5-0.078279-0.85750.196437
6-0.012204-0.13370.446937
70.0929241.01790.155379
80.0101920.11160.455645
9-0.112915-1.23690.109266
10-0.001433-0.01570.49375
110.0062770.06880.472647
12-0.037165-0.40710.342322
13-0.096788-1.06030.145579
14-0.032843-0.35980.359823
150.0239150.2620.396896
16-0.022728-0.2490.401903
17-0.036328-0.3980.345686
180.0034360.03760.485017
190.068160.74670.228366
200.0150910.16530.434488
21-0.074755-0.81890.207234
220.0081980.08980.464296
23-0.010501-0.1150.454305
24-0.028756-0.3150.376651
25-0.067437-0.73870.230754
26-0.017868-0.19570.422573
270.008690.09520.462161
28-0.018508-0.20270.419841
29-0.036283-0.39750.345865
300.0018830.02060.491787
310.0385360.42210.336839
320.0071390.07820.468896
33-0.045931-0.50310.307893
340.0043070.04720.481226
35-0.013476-0.14760.441442
36-0.030678-0.33610.368706
37-0.04023-0.44070.330112
38-0.016946-0.18560.426523
390.004950.05420.478423
400.0012770.0140.494433
41-0.029373-0.32180.374094
420.0098150.10750.457279
430.0277140.30360.380982
440.0072060.07890.468606
45-0.045869-0.50250.308129
460.0013140.01440.494269
47-0.013276-0.14540.442308
48-0.019545-0.21410.415415
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/26/t12801591441oefsb5w8evzks2/12qb31280159149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/26/t12801591441oefsb5w8evzks2/12qb31280159149.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/26/t12801591441oefsb5w8evzks2/22qb31280159149.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/26/t12801591441oefsb5w8evzks2/22qb31280159149.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