Home » date » 2009 » Jun » 03 »

Robin Bosmans-Datareeks

*Unverified author*
R Software Module: rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Wed, 03 Jun 2009 12:31:56 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/03/t1244054002thqjnys2v7591d6.htm/, Retrieved Wed, 03 Jun 2009 20:33:24 +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/2009/Jun/03/t1244054002thqjnys2v7591d6.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
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
 
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.2608642.55590.00608
2-0.188116-1.84320.034196
3-0.309186-3.02940.001574
4-0.292173-2.86270.002579
50.063680.62390.267074
60.2030691.98970.024737
70.0422130.41360.340044
8-0.270694-2.65220.004678
9-0.260316-2.55060.006168
10-0.144239-1.41320.080409
110.2702172.64760.004739
120.7914467.75460
130.1575881.5440.062935
14-0.170853-1.6740.048692
15-0.268598-2.63170.00495
16-0.232891-2.28190.012353
170.0626320.61370.270444
180.1496371.46610.07294
190.0152870.14980.440626
20-0.26667-2.61280.005212
21-0.238748-2.33920.010698
22-0.095909-0.93970.174862
230.2348452.3010.011777
240.6413126.28360
250.1261681.23620.109703
26-0.177882-1.74290.042279
27-0.269659-2.64210.00481
28-0.20449-2.00360.023967
290.0536280.52540.300244
300.1046711.02560.153837
310.0103780.10170.459608
32-0.223334-2.18820.01554
33-0.190702-1.86850.032372
34-0.077712-0.76140.224136
350.1711051.67650.048449
360.5280145.17351e-06
370.1129551.10670.135588
38-0.150318-1.47280.072036
39-0.238131-2.33320.010862
40-0.165763-1.62410.053813
410.0283710.2780.390813
420.0888630.87070.193052
43-0.001078-0.01060.495796
44-0.19942-1.95390.026811
45-0.140151-1.37320.086445
46-0.055555-0.54430.29374
470.1427341.39850.082593
480.4283224.19673e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2608642.55590.00608
2-0.274871-2.69320.004177
3-0.203033-1.98930.024757
4-0.23322-2.28510.012255
50.1106581.08420.140492
60.006480.06350.474753
7-0.112656-1.10380.13622
8-0.32032-3.13850.001128
9-0.101334-0.99290.161634
10-0.204992-2.00850.023699
110.189661.85830.033097
120.6742986.60670
13-0.207006-2.02820.022654
140.1635381.60230.056183
150.0885940.8680.193768
160.0909780.89140.187471
17-0.084132-0.82430.205899
18-0.038687-0.37910.352741
190.0331520.32480.373011
20-0.109445-1.07230.143128
21-0.082-0.80340.211855
220.0111680.10940.456547
23-0.150196-1.47160.072198
240.067170.65810.256017
250.0280890.27520.391872
26-0.123774-1.21270.114104
27-0.077299-0.75740.225341
28-0.015027-0.14720.441627
29-0.026783-0.26240.396782
30-0.135411-1.32680.093868
310.0127040.12450.450599
320.0821840.80520.211337
33-0.034283-0.33590.36884
34-0.072745-0.71280.238864
35-0.029683-0.29080.385902
360.0460980.45170.326266
37-0.012535-0.12280.451253
380.0286730.28090.389682
390.0084440.08270.467117
400.0281350.27570.391699
41-0.044528-0.43630.331804
420.1037921.0170.155867
43-0.120892-1.18450.11957
44-0.018403-0.18030.428644
450.0619930.60740.272507
46-0.013083-0.12820.449136
47-0.069816-0.68410.247796
48-0.067315-0.65960.255561
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244054002thqjnys2v7591d6/1sqbn1244053914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244054002thqjnys2v7591d6/1sqbn1244053914.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244054002thqjnys2v7591d6/25s1z1244053914.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/03/t1244054002thqjnys2v7591d6/25s1z1244053914.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
Parameters (R input):
par1 = 48 ; par2 = 1 ; par3 = 1 ; par4 = 0 ; par5 = 12 ;
 
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 (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='lags',ylab='ACF')
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