Home » date » 2009 » Nov » 27 »

WS8: acf 3

*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: Fri, 27 Nov 2009 09:21:39 -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/Nov/27/t1259338923lmaza9l93vtdm5g.htm/, Retrieved Fri, 27 Nov 2009 17:22:05 +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/Nov/27/t1259338923lmaza9l93vtdm5g.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 «
13.4 14 14.7 16.1 16.3 16.1 16.5 19 18.7 17.7 17.2 16.6 17.4 15.5 12.4 11.1 11.1 13.7 12.1 11.3 9.9 10.9 13.2 14.2 16.8 17 19.6 18.3 20.6 17.7 19.6 17.4 17.6 19 17.8 17 15.7 16 17.1 17 15.7 15.6 16.1 17.4 16 15 14.3 14.5 14.3 16.2 14.8 16.3 14 15.4 13.4 12.9 14.3 11.9 8.6 5.5 0.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
1-0.647655-4.97473e-06
20.3689682.83410.003141
3-0.366769-2.81720.00329
40.1726861.32640.094905
50.0663570.50970.306083
6-0.016915-0.12990.448533
7-0.014357-0.11030.45628
8-0.104037-0.79910.213713
90.0980110.75280.227271
10-0.026068-0.20020.420994
110.0863070.66290.254977
12-0.182053-1.39840.083617
130.1070770.82250.207059
14-0.05273-0.4050.343461
150.0155370.11930.452705
160.0600480.46120.323163
17-0.037182-0.28560.388092
180.0026010.020.492064
190.0356680.2740.392531
20-0.189444-1.45510.075465
210.3399832.61150.005707
22-0.36059-2.76970.003744
230.3491122.68160.004744
24-0.353246-2.71330.004359
250.1997061.5340.065191
26-0.016158-0.12410.450826
270.0561530.43130.333904
28-0.09207-0.70720.241113
29-0.021525-0.16530.434623
300.0389560.29920.382908
310.005640.04330.482796
320.0897310.68920.246689
33-0.137965-1.05970.146794
340.1041720.80020.213413
35-0.075643-0.5810.281719
360.0626930.48160.315952


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.647655-4.97473e-06
2-0.086968-0.6680.253365
3-0.283516-2.17770.016718
4-0.325466-2.50.00761
50.1058180.81280.209799
60.1530611.17570.122221
70.0171630.13180.447782
8-0.061238-0.47040.319909
90.0169020.12980.448573
10-0.017253-0.13250.447511
110.0379240.29130.385921
12-0.139673-1.07280.143854
13-0.095018-0.72980.234186
140.007350.05650.477585
15-0.182652-1.4030.082932
16-0.037049-0.28460.388482
170.1934051.48560.071358
180.0607910.46690.321129
190.1398381.07410.143571
20-0.218183-1.67590.049525
210.1716531.31850.096217
22-0.092426-0.70990.240269
23-0.0718-0.55150.291684
24-0.088836-0.68240.248839
25-0.164352-1.26240.105884
260.0781760.60050.275243
270.1604011.23210.111407
28-0.042618-0.32740.372279
290.0661480.50810.306642
300.1141910.87710.19199
31-0.034155-0.26230.396983
32-0.058304-0.44780.327953
330.0662740.50910.306306
340.0146370.11240.455434
350.0738590.56730.286324
36-0.047878-0.36780.357185
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259338923lmaza9l93vtdm5g/1ggov1259338898.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259338923lmaza9l93vtdm5g/1ggov1259338898.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/27/t1259338923lmaza9l93vtdm5g/2s8pp1259338898.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/27/t1259338923lmaza9l93vtdm5g/2s8pp1259338898.ps (open in new window)


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