Home » date » 2009 » Dec » 03 »

*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: Thu, 03 Dec 2009 09:01:18 -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/03/t1259856154arkbg4jmazb1qp0.htm/, Retrieved Thu, 03 Dec 2009 17:02:36 +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/03/t1259856154arkbg4jmazb1qp0.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 «
8.1 7.7 7.5 7.6 7.8 7.8 7.8 7.5 7.5 7.1 7.5 7.5 7.6 7.7 7.7 7.9 8.1 8.2 8.2 8.2 7.9 7.3 6.9 6.6 6.7 6.9 7 7.1 7.2 7.1 6.9 7 6.8 6.4 6.7 6.6 6.4 6.3 6.2 6.5 6.8 6.8 6.4 6.1 5.8 6.1 7.2 7.3 6.9 6.1 5.8 6.2 7.1 7.7 7.9 7.7 7.4 7.5 8 8.1 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
10.4066053.14950.001275
2-0.176074-1.36390.088852
3-0.522452-4.04697.5e-05
4-0.400424-3.10170.001466
50.0648890.50260.308534
60.4204363.25670.000928
70.3014472.3350.011453
8-0.068114-0.52760.299857
9-0.284633-2.20480.015658
10-0.270928-2.09860.020035
110.0150910.11690.453667
120.3043052.35710.010849
130.1297251.00480.159504
140.0261410.20250.42011
15-0.029837-0.23110.409005
16-0.107248-0.83070.204707
17-0.090195-0.69860.243736
18-0.017473-0.13530.446395
190.0119960.09290.463137
200.0337120.26110.397442
210.0878860.68080.24932
220.0075380.05840.476815
23-0.063458-0.49150.312417
24-0.051094-0.39580.34684
25-0.15156-1.1740.122521
260.0045480.03520.486006
270.1234590.95630.171377
280.1111710.86110.196299
290.0339660.26310.396688
30-0.061838-0.4790.316841
31-0.114365-0.88590.189614
32-0.146746-1.13670.130094
33-0.052385-0.40580.343175
340.0309750.23990.4056
350.0974370.75470.226677
360.0850720.6590.25622
37-0.066401-0.51430.304452
38-0.087937-0.68120.249196
39-0.089457-0.69290.245512
400.0389070.30140.382086
410.114720.88860.188879
420.1550091.20070.117294
430.0345260.26740.395023
44-0.109166-0.84560.200568
45-0.161847-1.25370.107414
46-0.040077-0.31040.378652
470.0727280.56330.287649
480.1253560.9710.167722


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4066053.14950.001275
2-0.409025-3.16830.001206
3-0.367271-2.84490.003035
4-0.108475-0.84020.202055
50.1526171.18220.120902
60.1450671.12370.132811
7-0.110387-0.85510.197961
8-0.109296-0.84660.200291
90.0671380.520.302473
10-0.0334-0.25870.39837
110.026060.20190.420355
120.1118130.86610.194943
13-0.248094-1.92170.029697
140.222841.72610.044737
150.2252781.7450.043053
16-0.156043-1.20870.11576
17-0.161825-1.25350.107445
180.032670.25310.400542
190.1113770.86270.195862
20-0.041756-0.32340.373743
21-0.059255-0.4590.32395
22-0.038905-0.30140.382092
23-0.00613-0.04750.481143
240.1010890.7830.218344
25-0.175382-1.35850.089696
26-0.057121-0.44250.329876
270.014470.11210.455565
280.130351.00970.15835
290.0322750.250.401721
30-0.158039-1.22420.112838
310.0070320.05450.478372
32-0.07839-0.60720.273003
33-0.079219-0.61360.270891
340.0252190.19530.422892
35-0.061257-0.47450.318434
36-0.079618-0.61670.269876
370.0299150.23170.408772
380.0507080.39280.347935
39-0.093973-0.72790.234749
400.1028470.79660.214398
41-0.010709-0.0830.467084
420.0439610.34050.367326
43-0.011513-0.08920.464618
440.0831940.64440.260879
45-0.066636-0.51620.303821
460.059020.45720.3246
47-0.008811-0.06820.472908
48-0.009676-0.07490.470253
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259856154arkbg4jmazb1qp0/1qoj41259856076.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259856154arkbg4jmazb1qp0/1qoj41259856076.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/03/t1259856154arkbg4jmazb1qp0/29itc1259856076.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/03/t1259856154arkbg4jmazb1qp0/29itc1259856076.ps (open in new window)


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