Home » date » 2009 » Dec » 02 »

*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, 02 Dec 2009 09:32:21 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/02/t1259771594fcmgfn39ml5x8ga.htm/, Retrieved Wed, 02 Dec 2009 17:33:17 +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/2009/Dec/02/t1259771594fcmgfn39ml5x8ga.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 «
17823,2 17872 17420,4 16704,4 15991,2 16583,6 19123,5 17838,7 17209,4 18586,5 16258,1 15141,6 19202,1 17746,5 19090,1 18040,3 17515,5 17751,8 21072,4 17170 19439,5 19795,4 17574,9 16165,4 19464,6 19932,1 19961,2 17343,4 18924,2 18574,1 21350,6 18594,6 19823,1 20844,4 19640,2 17735,4 19813,6 22160 20664,3 17877,4 20906,5 21164,1 21374,4 22952,3 21343,5 23899,3 22392,9 18274,1 22786,7 22321,5 17842,2 16373,5 15993,8 16446,1 17729 16643 16196,7 18252,1 17570,4 15836,8
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.5150663.98979.1e-05
20.3422042.65070.005128
30.4568453.53870.000392
40.4032313.12340.001376
50.2578551.99730.025165
60.2388441.85010.034614
70.0786780.60940.272268
80.15441.1960.118206
9-0.032553-0.25220.400891
10-0.19552-1.51450.067576
11-0.057835-0.4480.327887
120.1756441.36050.089376
13-0.101849-0.78890.216632
14-0.21565-1.67040.050023
15-0.093055-0.72080.236915
16-0.010582-0.0820.467474
17-0.099043-0.76720.222991
18-0.093349-0.72310.236221
19-0.058614-0.4540.325725
20-0.050788-0.39340.347707
21-0.179468-1.39020.084809
22-0.191966-1.4870.07113
23-0.104869-0.81230.209913
240.0070560.05470.478296
25-0.097651-0.75640.226184
26-0.246307-1.90790.030597
27-0.132294-1.02470.1548
28-0.032121-0.24880.402179
29-0.164409-1.27350.103874
30-0.1309-1.01390.157339
31-0.071973-0.55750.289629
32-0.169164-1.31030.097538
33-0.202156-1.56590.061317
34-0.173657-1.34510.091821
35-0.189321-1.46650.07387
36-0.070763-0.54810.292819
37-0.136239-1.05530.14776
38-0.237546-1.840.035356
39-0.111097-0.86060.196454
40-0.081979-0.6350.263918
41-0.136441-1.05690.147405
42-0.032026-0.24810.402462
43-0.023744-0.18390.427349
44-0.046139-0.35740.361025
45-0.013049-0.10110.459913
460.0239290.18530.42679
470.0591950.45850.324116
480.1236960.95810.170916
490.099340.76950.222313
500.0831140.64380.26108
510.1067710.8270.205744
520.0831440.6440.261005
530.0564930.43760.331625
540.0677070.52450.300948
550.0616760.47770.317287
560.0416820.32290.373959
570.0217660.16860.433339
580.0148450.1150.45442
590.0109390.08470.466379
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.5150663.98979.1e-05
20.1046820.81090.210325
30.3373262.61290.005665
40.08130.62970.265626
5-0.04206-0.32580.372855
6-0.000534-0.00410.498358
7-0.250653-1.94150.028446
80.1626971.26020.10623
9-0.336941-2.60990.005709
10-0.122065-0.94550.174095
110.1213790.94020.175443
120.4226583.27390.000882
13-0.164824-1.27670.10331
14-0.239673-1.85650.034147
15-0.005946-0.04610.481709
160.0648170.50210.308727
170.0002710.00210.499165
18-0.093595-0.7250.23564
190.0934330.72370.236022
20-0.221387-1.71490.045766
21-0.020119-0.15580.43834
220.1325891.0270.154265
23-0.038085-0.2950.384504
24-0.110085-0.85270.198604
250.0576780.44680.328325
26-0.017733-0.13740.445604
27-0.052537-0.40690.342748
28-0.014418-0.11170.455724
29-0.051316-0.39750.346209
30-0.038893-0.30130.382129
31-0.133832-1.03670.152027
32-0.052352-0.40550.343269
330.0253970.19670.422354
340.0141590.10970.456516
35-0.170505-1.32070.095804
360.090030.69740.244132
37-0.021547-0.16690.434005
380.0336810.26090.397534
39-0.018315-0.14190.443829
40-0.124904-0.96750.168589
410.017270.13380.447016
42-0.03431-0.26580.395667
430.0584610.45280.326151
44-0.010225-0.07920.468568
450.016990.13160.447869
46-0.00233-0.0180.492831
470.0568020.440.330763
480.0324880.25170.401085
49-0.00297-0.0230.490861
50-0.033962-0.26310.396701
51-0.055628-0.43090.334044
52-0.091361-0.70770.240941
53-0.08612-0.66710.253638
54-0.041206-0.31920.37535
550.073730.57110.285029
560.0752570.58290.28106
570.0261790.20280.419995
58-0.08287-0.64190.26169
59-0.049321-0.3820.351892
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259771594fcmgfn39ml5x8ga/19usy1259771539.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259771594fcmgfn39ml5x8ga/19usy1259771539.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/02/t1259771594fcmgfn39ml5x8ga/25zey1259771539.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/02/t1259771594fcmgfn39ml5x8ga/25zey1259771539.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; 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