Home » date » 2010 » Apr » 30 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Fri, 30 Apr 2010 13:23:49 +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/Apr/30/t1272633846j0ngj01jff7jv3f.htm/, Retrieved Fri, 30 Apr 2010 15:24:08 +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/Apr/30/t1272633846j0ngj01jff7jv3f.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
562674 599000 668516 597798 579889 668233 499232 215187 555813 586935 546136 571111 634712 639283 712182 621557 621000 675989 501322 220286 560727 602530 626379 605508 646783 658442 712906 687714 723916 707183 629000 237530 613296 730444 734925 651812 676155 748183 810681 729363 701108 790079 594621 230716 617189 691389 701067 705777 747636 773392 813788 766713 728875 749197 680954 241424 680234 708326 694238 772071 795337 788421 889968 797393 751000 821255 691605 290655 727147 868355 812390 799556 843038 847000 941952 804309 840307 871528 656330 370508 742000 847152 731675 898527 778139 856075 938833 813023 783417 828110 657311 310032 780000 860000 780000 807993 895217 856075 893268 875000 835088 934595 832500 300000 791443 900000 781729 880000 875024 992968 976804 968697 871675 1006852 832037 345587 849528 913871 868746 993733
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4370234.78732e-06
20.1675061.83490.034496
30.2656572.91010.002154
40.1579331.73010.043095
50.0667190.73090.23314
60.098071.07430.142421
70.0666540.73020.233357
80.1540671.68770.047031
90.2245312.45960.007667
100.1187151.30050.097968
110.3396743.72090.000152
120.7880498.63260
130.3266173.57790.00025
140.0786850.86190.195218
150.1545671.69320.046506
160.0686460.7520.226768
17-0.006055-0.06630.473613
180.0214590.23510.407276
19-0.013941-0.15270.43944
200.0586520.64250.260887
210.1172241.28410.100786
220.0357070.39110.348192
230.2324152.5460.006082
240.6287096.88720
250.236532.59110.005377
260.0046590.0510.479692
270.0689460.75530.225785
28-0.003879-0.04250.483088
29-0.085255-0.93390.176109
30-0.038218-0.41870.338108
31-0.049752-0.5450.293379
320.011490.12590.450024
330.0701850.76880.221751
34-0.006169-0.06760.473118
350.1728771.89380.030332
360.5179455.67380
370.1561461.71050.04488
38-0.04417-0.48390.314683
390.026340.28850.386717
40-0.043895-0.48080.315751
41-0.117862-1.29110.099573
42-0.06494-0.71140.239112
43-0.086706-0.94980.172058
44-0.038836-0.42540.335645
453.8e-054e-040.499832
46-0.059409-0.65080.258214
470.0836760.91660.180589
480.3716814.07164.2e-05


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4370234.78732e-06
2-0.029027-0.3180.375527
30.2511522.75120.003429
4-0.065295-0.71530.237917
50.0180350.19760.421859
60.0268040.29360.384777
7-0.009629-0.10550.458087
80.1695551.85740.032855
90.0971451.06420.144693
10-0.027308-0.29910.382675
110.351383.84929.6e-05
120.6886447.54370
13-0.387259-4.24222.2e-05
14-0.13079-1.43270.077268
15-0.190576-2.08770.019472
160.0196060.21480.415154
17-0.028042-0.30720.379616
18-0.03943-0.43190.333282
19-0.092959-1.01830.155289
20-0.094482-1.0350.151375
21-0.006278-0.06880.472642
220.0583460.63910.261973
230.0533980.58490.279842
240.1264641.38530.084258
25-0.060743-0.66540.253533
26-0.016916-0.18530.426652
27-0.021455-0.2350.407294
280.0106250.11640.453769
29-0.077318-0.8470.199346
300.0412840.45220.325956
310.0450670.49370.311215
320.0163650.17930.429012
330.0270360.29620.383807
34-0.050011-0.54780.29241
350.0307070.33640.368585
36-0.001684-0.01850.492655
37-0.077585-0.84990.198535
380.0268950.29460.384396
390.0140610.1540.438922
40-0.003735-0.04090.483714
41-0.004537-0.04970.480223
42-0.025812-0.28280.388924
43-0.076837-0.84170.200812
44-0.03782-0.41430.3397
45-0.065552-0.71810.237051
460.0377370.41340.340029
47-0.110336-1.20870.114582
48-0.076389-0.83680.202186
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272633846j0ngj01jff7jv3f/16tzh1272633825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272633846j0ngj01jff7jv3f/16tzh1272633825.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Apr/30/t1272633846j0ngj01jff7jv3f/26tzh1272633825.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Apr/30/t1272633846j0ngj01jff7jv3f/26tzh1272633825.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