Home » date » 2009 » Dec » 16 »

*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, 16 Dec 2009 08:01:05 -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/16/t1260975732haattsubq1sorg5.htm/, Retrieved Wed, 16 Dec 2009 16:02:14 +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/16/t1260975732haattsubq1sorg5.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:
KDGP2W21
 
Dataseries X:
» Textbox « » Textfile « » CSV «
-9 -13 -18 -11 -9 -10 -13 -11 -5 -15 -6 -6 -3 -1 -3 -4 -6 0 -4 -2 -2 -6 -7 -6 -6 -3 -2 -5 -11 -11 -11 -10 -14 -8 -9 -5 -1 -2 -5 -4 -6 -2 -2 -2 -2 2 1 -8 -1 1 -1 2 2 1 -1 -2 -2 -1 -8 -4 -6 -3 -3 -7 -9 -11 -13 -11 -9 -17 -22 -25 -20 -24 -24 -22 -19 -18 -17 -11 -11
 
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.243411-2.17710.016209
2-0.058969-0.52740.299675
30.0110710.0990.460685
40.0400280.3580.360636
50.009080.08120.467738
6-0.094835-0.84820.199421
70.1598111.42940.078392
8-0.082757-0.74020.230673
90.0072520.06490.474223
10-0.072481-0.64830.259327
11-0.012437-0.11120.455853
120.0026620.02380.490533
130.0222310.19880.421445
14-0.100434-0.89830.185858
15-0.017027-0.15230.439668
160.0860670.76980.221842
17-0.090066-0.80560.211439
18-0.029015-0.25950.397952
190.0786210.70320.241984
20-0.011342-0.10140.459726
21-0.179749-1.60770.055918
22-0.011273-0.10080.45997
230.1190231.06460.145136
24-0.08794-0.78660.216933
25-0.086138-0.77040.221655
260.1985191.77560.0398
27-0.05793-0.51810.302893
280.0030970.02770.488985
29-0.013758-0.12310.451185
30-0.09623-0.86070.195986
310.1622321.4510.075338
32-0.035297-0.31570.376525
33-0.003765-0.03370.486611
34-0.062523-0.55920.288787
35-0.017648-0.15780.437488
36-0.001917-0.01710.493181
37-0.009385-0.08390.466655
380.1573591.40750.081582
39-0.10485-0.93780.175584
40-0.049651-0.44410.329087
410.0898210.80340.212067
420.0972880.87020.193405
43-0.00658-0.05890.476609
44-0.047757-0.42720.335207
450.0812740.72690.234693
46-0.004943-0.04420.482423
47-0.06651-0.59490.2768
48-0.031233-0.27940.390347


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.243411-2.17710.016209
2-0.125664-1.1240.132194
3-0.03853-0.34460.365642
40.0278020.24870.402128
50.0288120.25770.398649
6-0.084088-0.75210.227097
70.126061.12750.131447
8-0.028691-0.25660.399065
90.0032590.02910.48841
10-0.081946-0.73290.232867
11-0.06578-0.58840.278975
12-0.040667-0.36370.358507
130.03230.28890.386701
14-0.122152-1.09260.138932
15-0.05412-0.48410.314832
160.0418490.37430.354582
17-0.055598-0.49730.310177
18-0.054235-0.48510.314467
190.0582180.52070.302
20-0.022624-0.20240.420077
21-0.174463-1.56040.061301
22-0.114356-1.02280.154735
230.0264120.23620.406927
24-0.074122-0.6630.25463
25-0.12788-1.14380.12806
260.1442341.29010.100372
27-0.008772-0.07850.468831
280.0248050.22190.412492
290.0009550.00850.496602
30-0.163845-1.46550.073355
310.0764970.68420.247909
320.004570.04090.483747
33-0.057674-0.51590.303691
34-0.056967-0.50950.305893
35-0.150148-1.3430.09154
36-0.087529-0.78290.218005
370.0536760.48010.316236
380.1213421.08530.14052
39-0.099357-0.88870.18842
40-0.051645-0.46190.322695
410.099070.88610.189107
420.0789160.70580.241168
430.0666660.59630.276338
44-0.029136-0.26060.397535
45-0.029284-0.26190.397028
460.0168380.15060.440333
47-0.017377-0.15540.438441
48-0.052966-0.47370.318486
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260975732haattsubq1sorg5/1oj4f1260975663.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260975732haattsubq1sorg5/1oj4f1260975663.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/16/t1260975732haattsubq1sorg5/2yzsj1260975663.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/16/t1260975732haattsubq1sorg5/2yzsj1260975663.ps (open in new window)


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