Home » date » 2008 » Dec » 07 »

workshop8, step2, 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: Sun, 07 Dec 2008 09:15:37 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Dec/07/t122866660001xr9dz78x7xodf.htm/, Retrieved Sun, 07 Dec 2008 16:16:40 +0000
 
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/2008/Dec/07/t122866660001xr9dz78x7xodf.htm/},
    year = {2008},
}
@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 = {2008},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Family? (F = Feedback message, R = changed R code, M = changed R Module, P = changed Parameters, D = changed Data)
 
Feedback Forum:
2008-11-27 13:41:43 [a2386b643d711541400692649981f2dc] [reply
test

Post a new message
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7.5 7.2 6.9 6.7 6.4 6.3 6.8 7.3 7.1 7.1 6.8 6.5 6.3 6.1 6.1 6.3 6.3 6 6.2 6.4 6.8 7.5 7.5 7.6 7.6 7.4 7.3 7.1 6.9 6.8 7.5 7.6 7.8 8 8.1 8.2 8.3 8.2 8 7.9 7.6 7.6 8.2 8.3 8.4 8.4 8.4 8.6 8.9 8.8 8.3 7.5 7.2 7.5 8.8 9.3 9.3 8.7 8.2 8.3 8.5 8.6 8.6 8.2 8.1 8 8.6 8.7 8.8 8.5 8.4 8.5 8.7 8.7 8.6 8.5 8.3 8.1 8.2 8.1 8.1 7.9 7.9 7.9 8 8 7.9 8 7.7 7.2 7.5 7.3 7 7 7 7.2 7.3 7.1 6.8 6.6 6.2 6.2 6.8 6.9 6.8 6.7
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9274189.54840
20.8059198.29740
30.7000097.2070
40.6432556.62270
50.6284556.47030
60.6224456.40850
70.5939916.11550
80.5544085.7080
90.5310965.4680
100.53055.46180
110.5439945.60080
120.535945.51780
130.4628774.76563e-06
140.3706583.81620.000114
150.2831092.91480.002172
160.2177812.24220.013515
170.1692871.74290.042124
180.1333981.37340.086261
190.0910050.93690.175457
200.0519240.53460.297026
210.033110.34090.366933
220.0326430.33610.368738
230.0391160.40270.343981
240.0282540.29090.385849
25-0.025896-0.26660.395141
26-0.085315-0.87840.190864
27-0.140358-1.44510.075694
28-0.180201-1.85530.033167
29-0.210332-2.16550.016296
30-0.234303-2.41230.008785
31-0.254802-2.62330.004995
32-0.266539-2.74420.003563
33-0.263355-2.71140.003909
34-0.256392-2.63970.004775
35-0.253597-2.61090.005169
36-0.261197-2.68920.004161
37-0.289085-2.97630.001807
38-0.303939-3.12920.001132
39-0.312783-3.22030.00085
40-0.320563-3.30040.000658
41-0.347478-3.57750.000262
42-0.38831-3.99795.9e-05
43-0.431158-4.4391.1e-05
44-0.449894-4.63195e-06
45-0.429291-4.41981.2e-05
46-0.387082-3.98536.2e-05
47-0.342954-3.53090.000307
48-0.325132-3.34740.000565
49-0.343605-3.53763e-04
50-0.366447-3.77280.000133
51-0.378797-3.98.5e-05
52-0.379817-3.91058.1e-05
53-0.387563-3.99026.1e-05
54-0.397444-4.09194.2e-05
55-0.40772-4.19772.8e-05
56-0.404121-4.16073.2e-05
57-0.381538-3.92827.6e-05
58-0.352736-3.63160.000218
59-0.318396-3.27810.000707
60-0.28808-2.9660.001864


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9274189.54840
2-0.387331-3.98786.1e-05
30.1875531.9310.028078
40.2130462.19340.01523
50.0981291.01030.157325
6-0.024789-0.25520.399526
7-0.08559-0.88120.190101
80.1054221.08540.140108
90.1475961.51960.065795
100.032230.33180.370339
110.0363750.37450.354388
12-0.143104-1.47330.071811
13-0.357446-3.68010.000184
140.1626181.67430.048515
15-0.176873-1.8210.035713
16-0.118636-1.22140.112316
17-0.124486-1.28170.101379
180.0427090.43970.330518
19-0.054972-0.5660.286304
200.0126580.13030.448277
210.0667550.68730.246702
220.0404240.41620.339057
23-0.006124-0.06310.474921
24-0.002838-0.02920.488371
25-0.098121-1.01020.157347
260.1217931.25390.106311
27-0.107154-1.10320.136214
28-0.011377-0.11710.453489
29-0.03212-0.33070.370762
30-0.058687-0.60420.273493
310.1112271.14520.127363
32-0.070582-0.72670.23451
33-0.01967-0.20250.41995
34-0.067592-0.69590.244007
35-0.034484-0.3550.361635
360.0537770.55370.290487
37-0.075545-0.77780.219215
380.1191991.22720.111228
39-0.0561-0.57760.282385
40-0.063461-0.65340.257466
41-0.136939-1.40990.080753
42-0.121769-1.25370.106357
43-0.03766-0.38770.349494
44-0.003789-0.0390.484479
450.0662350.68190.248386
460.0642230.66120.254954
470.0275060.28320.38879
48-0.033094-0.34070.366994
49-0.085338-0.87860.190801
50-0.03993-0.41110.340913
510.0450450.46380.321883
52-0.101037-1.04020.150298
530.0131450.13530.4463
540.0314070.32340.373531
550.032910.33880.367704
56-0.029775-0.30650.379894
57-0.101987-1.050.148049
58-0.059119-0.60870.272025
590.0625110.64360.260614
600.0464720.47850.316654
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t122866660001xr9dz78x7xodf/10gfh1228666532.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t122866660001xr9dz78x7xodf/10gfh1228666532.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t122866660001xr9dz78x7xodf/2xm491228666532.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Dec/07/t122866660001xr9dz78x7xodf/2xm491228666532.ps (open in new window)


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