Home » date » 2009 » Dec » 12 »

acf

*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: Sat, 12 Dec 2009 09:02:30 -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/12/t1260633820i0mvy19nnv03b4m.htm/, Retrieved Sat, 12 Dec 2009 17:03:42 +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/12/t1260633820i0mvy19nnv03b4m.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 «
17192.4 15386.1 14287.1 17526.6 14497 14398.3 16629.6 16670.7 16614.8 16869.2 15663.9 16359.9 18447.7 16889 16505 18320.9 15052.1 15699.8 18135.3 16768.7 18883 19021 18101.9 17776.1 21489.9 17065.3 18690 18953.1 16398.9 16895.6 18553 19270 19422.1 17579.4 18637.3 18076.7 20438.6 18075.2 19563 19899.2 19227.5 17789.6 19220.8 21968.9 21131.5 19484.6 22168.7 20866.8 22176.2 23533.8 21479.6 24347.7 22751.6 20328.3 23650.4 23335.7 19614.9 18042.3 17282.5 16847.2 18159.5
 
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.6949375.42761e-06
20.6125274.7846e-06
30.6571865.13282e-06
40.5095553.97989.3e-05
50.4540883.54650.000378
60.4609583.60020.00032
70.3152432.46210.008326
80.2967332.31760.011922
90.281472.19830.015864
100.1620791.26590.105185
110.1844581.44070.077396
120.2812532.19670.015927
130.1062230.82960.204991
140.0681820.53250.29815
150.1006410.7860.217447
160.0613950.47950.316646
170.0301270.23530.407381
180.0257750.20130.420563
19-0.000792-0.00620.497543
20-0.046809-0.36560.357967
21-0.047816-0.37350.355051
22-0.059695-0.46620.321354
23-0.041518-0.32430.373424
240.0086570.06760.473157
25-0.013477-0.10530.458259
26-0.104544-0.81650.208693
27-0.06811-0.5320.298345
28-0.032551-0.25420.400085
29-0.10908-0.85190.198789
30-0.109131-0.85230.19868
31-0.079198-0.61860.269257
32-0.190131-1.4850.071351
33-0.195583-1.52750.065897
34-0.214808-1.67770.049261
35-0.273104-2.1330.018478
36-0.236756-1.84910.034643
37-0.246323-1.92380.029522
38-0.331667-2.59040.005987
39-0.278854-2.17790.016644
40-0.233616-1.82460.03648
41-0.291169-2.27410.013245
42-0.280046-2.18720.016285
43-0.255861-1.99830.025071
44-0.310548-2.42550.009132
45-0.289623-2.2620.013635
46-0.27841-2.17450.01678
47-0.285496-2.22980.014726
48-0.219825-1.71690.045537
49-0.218385-1.70560.046581
50-0.222384-1.73690.043728
51-0.145025-1.13270.130891
52-0.09631-0.75220.227411
53-0.081385-0.63560.263695
54-0.036349-0.28390.388726
550.0080970.06320.474892
560.0277380.21660.414605
570.0373960.29210.385613
580.0268430.20970.417318
590.0110650.08640.465709
600.0017490.01370.494572


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.6949375.42761e-06
20.2506271.95750.027436
30.3385012.64380.005204
4-0.134498-1.05050.148825
50.0084040.06560.473942
60.0451980.3530.362649
7-0.164779-1.2870.101485
80.0492090.38430.351034
9-0.023451-0.18320.427642
10-0.082183-0.64190.261682
110.090710.70850.240677
120.2669982.08530.020616
13-0.255223-1.99340.02535
14-0.126947-0.99150.162682
15-0.034946-0.27290.392912
160.162111.26610.105142
17-0.072238-0.56420.287346
18-0.073811-0.57650.283206
190.0934970.73020.234022
20-0.147126-1.14910.127502
210.026070.20360.419667
220.0723910.56540.286942
230.072840.56890.285756
24-0.050007-0.39060.348738
250.091430.71410.238948
26-0.201795-1.57610.060091
27-0.035223-0.27510.392086
280.0406670.31760.37593
29-0.036391-0.28420.388603
30-0.054686-0.42710.3354
310.0012280.00960.496189
32-0.068897-0.53810.296233
33-0.097757-0.76350.224053
34-0.094746-0.740.231072
35-0.04665-0.36430.35843
360.0239650.18720.426074
37-0.024139-0.18850.425543
380.077780.60750.272892
39-0.037206-0.29060.386175
40-0.001518-0.01190.49529
41-0.031716-0.24770.402596
42-0.081839-0.63920.262549
43-0.078302-0.61160.271551
44-0.001439-0.01120.495535
450.0418930.32720.372321
46-0.029502-0.23040.409269
470.00740.05780.477051
480.0630380.49230.312121
49-0.026175-0.20440.419346
500.0376770.29430.384777
510.1248540.97510.16667
52-0.033142-0.25890.398311
530.0001580.00120.49951
540.0538180.42030.337861
550.0348310.2720.393257
56-0.039321-0.30710.379904
570.0246410.19250.424013
58-0.064528-0.5040.308045
59-0.144441-1.12810.131843
60-0.065032-0.50790.306672
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260633820i0mvy19nnv03b4m/160kr1260633749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260633820i0mvy19nnv03b4m/160kr1260633749.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/12/t1260633820i0mvy19nnv03b4m/2u9c01260633749.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/12/t1260633820i0mvy19nnv03b4m/2u9c01260633749.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