Home » date » 2010 » Dec » 27 »

*The author of this computation has been verified*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 27 Dec 2010 20:48: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/Dec/27/t12934828106i5zf9ufnwejyqb.htm/, Retrieved Mon, 27 Dec 2010 21:46:53 +0100
 
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/Dec/27/t12934828106i5zf9ufnwejyqb.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
493 481 462 457 442 439 488 521 501 485 464 460 467 460 448 443 436 431 484 510 513 503 471 471 476 475 470 461 455 456 517 525 523 519 509 512 519 517 510 509 501 507 569 580 578 565 547 555 562 561 555 544 537 543 594 611 613 611 594 595 591 589 584 573 567 569 621 629 628 612 595 597 593 590 580 574 573 573 620 626 620 588 566 557 561 549 532 526 511 499 555 565 542 527 510 514 517 508 493 490 469 478 528 534 518 506 502 516 528 533 536 537 524 536 587 597 581 564 558 575 580 575 563 552 537 545 601 604 586 564 549
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.1494711.62370.053557
20.1211191.31570.095415
30.1171751.27290.102787
40.138451.5040.067633
50.1558611.69310.046539
60.1265281.37440.085954
70.0530250.5760.282857
80.1046311.13660.129008
90.1374171.49270.069089
10-0.067768-0.73620.23155
11-0.02047-0.22240.412209
12-0.21729-2.36040.009948
13-0.019437-0.21110.416572
140.1633091.7740.039322
15-0.03159-0.34320.366046
16-0.054637-0.59350.276987
17-0.091638-0.99540.160778
18-0.035458-0.38520.350402
190.0040360.04380.482553
20-0.065276-0.70910.239836
21-0.098315-1.0680.143856
22-0.03425-0.37210.35526
230.0238330.25890.398084
24-0.185555-2.01560.023054
25-0.15169-1.64780.05103
26-0.23953-2.6020.005228
27-0.077117-0.83770.201944
28-0.107374-1.16640.122906
29-0.017656-0.19180.424117
30-0.126347-1.37250.086259
31-0.079856-0.86750.193726
32-0.023965-0.26030.397532
33-0.042536-0.46210.322445
34-0.046672-0.5070.306555
350.0050670.0550.478098
360.0369340.40120.344496
370.0671850.72980.233473
380.075470.81980.206989
39-0.085701-0.9310.176889
40-0.039459-0.42860.334486
410.0178940.19440.423108
420.0287470.31230.377693
430.0284540.30910.378898
44-0.034706-0.3770.353423
45-0.080107-0.87020.192983
46-0.025506-0.27710.391108
47-0.111732-1.21370.11364
48-0.045965-0.49930.309245
49-0.050659-0.55030.291578
500.0132250.14370.443008
517.4e-058e-040.499679
520.019830.21540.414911
53-0.064302-0.69850.243119
540.0434450.47190.318924
55-0.041263-0.44820.327403
56-0.001268-0.01380.494516
570.0419530.45570.324713
58-0.027763-0.30160.381751
59-0.017924-0.19470.422978
600.0169390.1840.427164


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.1494711.62370.053557
20.1010341.09750.137326
30.0886650.96310.168722
40.1038551.12810.130773
50.1113281.20930.114476
60.0691440.75110.227044
7-0.011802-0.12820.449104
80.0537470.58380.280222
90.081560.8860.188719
10-0.149247-1.62120.053818
11-0.056902-0.61810.268846
12-0.259991-2.82420.002783
130.0012040.01310.494796
140.2135662.31990.011032
15-0.016482-0.1790.429105
16-0.005462-0.05930.476393
17-0.070838-0.76950.221568
180.0036340.03950.484288
190.0478490.51980.302096
20-0.050633-0.550.291675
21-0.028471-0.30930.378828
22-0.091181-0.99050.161983
230.0101030.10970.4564
24-0.204193-2.21810.014231
25-0.103545-1.12480.131481
26-0.081605-0.88650.188588
27-0.009936-0.10790.457116
28-0.072565-0.78830.216062
290.1048661.13910.128476
30-0.007984-0.08670.465516
310.0665630.72310.235536
320.0563390.6120.270859
330.024720.26850.39438
34-0.017239-0.18730.425889
350.0773770.84050.201155
36-0.066326-0.72050.236325
37-0.031878-0.34630.364872
380.0110090.11960.452505
39-0.116451-1.2650.104184
40-0.082687-0.89820.185452
410.0001270.00140.499451
420.0052730.05730.477209
430.0128610.13970.444565
44-0.001845-0.020.492024
45-0.078021-0.84750.199211
46-0.058417-0.63460.263468
47-0.067869-0.73720.231219
48-0.008075-0.08770.465127
49-0.056584-0.61470.269981
500.0213150.23150.408648
51-0.071867-0.78070.218277
52-0.061239-0.66520.253602
530.023250.25260.400522
540.0906060.98420.163506
55-0.041923-0.45540.324828
56-0.021351-0.23190.408497
57-0.010077-0.10950.456509
58-0.06994-0.75970.224462
59-0.024524-0.26640.395198
600.0255570.27760.390894
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/16puy1293482917.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/16puy1293482917.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/2hztj1293482917.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/2hztj1293482917.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/3hztj1293482917.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/27/t12934828106i5zf9ufnwejyqb/3hztj1293482917.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 1 ; par4 = 1 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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