Home » date » 2009 » Dec » 28 »

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: Mon, 28 Dec 2009 06:19:16 -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/28/t1262006379mspqktvvxnjwk2t.htm/, Retrieved Mon, 28 Dec 2009 14:19:41 +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/28/t1262006379mspqktvvxnjwk2t.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 «
14.3 14.2 15.9 15.3 15.5 15.1 15 12.1 15.8 16.9 15.1 13.7 14.8 14.7 16 15.4 15 15.5 15.1 11.7 16.3 16.7 15 14.9 14.6 15.3 17.9 16.4 15.4 17.9 15.9 13.9 17.8 17.9 17.4 16.7 16 16.6 19.1 17.8 17.2 18.6 16.3 15.1 19.2 17.7 19.1 18 17.5 17.8 21.1 17.2 19.4 19.8 17.6 16.2 19.5 19.9 20 17.3 18.9 18.6 21.4 18.6 19.8 20.8 19.6 17.7 19.8 22.2 20.7 17.9
 
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
1-0.332927-2.80530.003241
2-0.301441-2.540.006638
30.0723030.60920.272157
40.1292691.08920.139865
5-0.205646-1.73280.043736
60.3231152.72260.004072
7-0.260508-2.19510.015714
80.1629981.37340.086968
90.0872640.73530.232289
10-0.344227-2.90050.002478
11-0.165094-1.39110.084269
120.7044415.93570
13-0.266994-2.24970.013784
14-0.150942-1.27190.103787
150.0056620.04770.481041
160.0195640.16490.434765
17-0.049382-0.41610.339297
180.2172341.83040.03569
19-0.213837-1.80180.037909
200.1528611.2880.100959
210.0710820.59890.275557
22-0.354053-2.98330.001953
230.0272950.230.40938
240.4234273.56790.000325
25-0.191314-1.6120.055695
26-0.058977-0.4970.310379
27-0.038757-0.32660.372476
28-0.000654-0.00550.497809
290.0027710.02340.490718
300.1180430.99460.161642
31-0.149896-1.2630.105353
320.1928471.6250.054302
33-0.040774-0.34360.366093
34-0.236811-1.99540.024918
350.0236730.19950.421233
360.2992342.52140.006968
37-0.105726-0.89090.188005
38-0.048584-0.40940.341748
39-0.093546-0.78820.216592
400.0898760.75730.225686
41-0.030862-0.260.39779
420.0661710.55760.289446
43-0.128554-1.08320.141189
440.1997541.68320.048368
45-0.076545-0.6450.260508
46-0.123729-1.04260.150345
47-0.038785-0.32680.372388
480.2206581.85930.033564
49-0.037944-0.31970.37506
50-0.061247-0.51610.303702
51-0.07827-0.65950.25585
520.0838840.70680.240997
53-0.024074-0.20290.419914
540.0406640.34260.36644
55-0.060326-0.50830.306404
560.0872850.73550.232236
57-0.030902-0.26040.397659
58-0.051343-0.43260.333298
59-0.039438-0.33230.370318
600.1140560.96110.169894


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.332927-2.80530.003241
2-0.463675-3.9070.000105
3-0.328022-2.7640.003634
4-0.195318-1.64580.052114
5-0.437926-3.690.000218
60.0860190.72480.235476
7-0.339559-2.86120.00277
80.2378052.00380.024455
90.3481542.93360.002254
10-0.189788-1.59920.057111
11-0.409624-3.45150.000471
120.1258991.06080.146178
13-0.003194-0.02690.489304
140.1791331.50940.067817
150.0001650.00140.499447
16-0.067189-0.56610.286541
170.0056470.04760.48109
18-0.141084-1.18880.11924
190.097150.81860.207877
20-0.061606-0.51910.302652
210.0447040.37670.353767
22-0.10368-0.87360.192634
230.0992260.83610.202955
240.0436250.36760.357136
25-0.010424-0.08780.465127
260.0489090.41210.340747
27-0.151314-1.2750.103234
280.1465011.23440.110555
29-0.133597-1.12570.132039
30-0.019899-0.16770.433658
31-0.080534-0.67860.249802
32-0.01236-0.10410.458672
330.0183970.1550.438625
340.1135420.95670.170976
35-0.102391-0.86280.195587
360.0448990.37830.35316
370.0207880.17520.430725
38-0.056652-0.47740.317287
39-0.007238-0.0610.47577
40-0.024646-0.20770.418039
410.0406060.34220.366624
420.0145840.12290.451272
43-0.042343-0.35680.361153
44-0.125056-1.05370.147787
45-0.010687-0.090.464251
46-0.059754-0.50350.308086
470.0640220.53950.29563
48-0.03193-0.2690.394336
49-0.051867-0.4370.331703
50-0.049758-0.41930.338144
51-0.022488-0.18950.425126
52-0.064369-0.54240.294627
53-0.057658-0.48580.31429
54-0.041833-0.35250.362756
550.0451860.38070.352266
56-0.013751-0.11590.454043
57-0.058248-0.49080.31254
580.0072920.06140.475588
590.0648470.54640.293249
60-0.007156-0.06030.476043
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262006379mspqktvvxnjwk2t/1sk661262006354.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262006379mspqktvvxnjwk2t/1sk661262006354.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/28/t1262006379mspqktvvxnjwk2t/2ft7l1262006354.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/28/t1262006379mspqktvvxnjwk2t/2ft7l1262006354.ps (open in new window)


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