Home » date » 2009 » Nov » 26 »

*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, 26 Nov 2009 03:12:32 -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/26/t1259230487kgd09yyqwom6wq8.htm/, Retrieved Thu, 26 Nov 2009 11:14:50 +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/26/t1259230487kgd09yyqwom6wq8.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 «
19 18 19 19 22 23 20 14 14 14 15 11 17 16 20 24 23 20 21 19 23 23 23 23 27 26 17 24 26 24 27 27 26 24 23 23 24 17 21 19 22 22 18 16 14 12 14 16 8 3 0 5 1 1 3 6 7 8 14 14 13
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.126902-0.9830.164783
2-0.088574-0.68610.247649
30.0074990.05810.476935
40.0777020.60190.274761
5-0.05967-0.46220.322803
6-0.018109-0.14030.444458
7-0.00211-0.01630.493508
80.0286730.22210.412496
9-0.101617-0.78710.217155
10-0.064059-0.49620.310783
110.1464271.13420.130606
12-0.029289-0.22690.410649
130.0044190.03420.486402
14-0.244441-1.89340.031563
150.1149520.89040.188399
160.0830610.64340.261211
17-0.091731-0.71050.24006
180.0238990.18510.426879
190.0432860.33530.369287
200.0349550.27080.393751
21-0.278118-2.15430.017621
22-0.056083-0.43440.332773
230.0710960.55070.291939
240.0284260.22020.413236
25-0.184093-1.4260.079528
260.1868491.44730.076505
270.0149830.11610.453997
28-0.01737-0.13450.44671
29-0.123175-0.95410.171928
30-0.009701-0.07510.470174
310.140731.09010.140016
32-0.080567-0.62410.267475
33-0.065183-0.50490.307737
34-0.015306-0.11860.453009
350.0107020.08290.467104
360.0045270.03510.486071


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.126902-0.9830.164783
2-0.106391-0.82410.206572
3-0.018954-0.14680.441883
40.0685990.53140.298565
5-0.041383-0.32050.374833
6-0.018662-0.14460.442773
7-0.016877-0.13070.448214
80.0180380.13970.444674
9-0.093046-0.72070.236936
10-0.08997-0.69690.244277
110.1125280.87160.19344
12-0.012638-0.09790.461172
130.0374540.29010.386363
14-0.258267-2.00050.024987
150.0333570.25840.398498
160.0782530.60610.273351
17-0.063727-0.49360.311686
180.0491730.38090.352315
19-0.021797-0.16880.433244
200.0770730.5970.276374
21-0.289062-2.23910.014436
22-0.156834-1.21480.114595
23-0.032815-0.25420.400113
240.002420.01870.492553
25-0.062315-0.48270.315535
260.10670.82650.2059
270.0321910.24930.401972
28-0.058579-0.45370.325824
29-0.143175-1.1090.135921
30-0.12645-0.97950.165638
310.0508220.39370.347613
320.0200290.15510.438615
33-0.026694-0.20680.418443
34-0.083996-0.65060.258885
35-0.186272-1.44290.077131
36-0.016444-0.12740.449534
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259230487kgd09yyqwom6wq8/12eir1259230350.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259230487kgd09yyqwom6wq8/12eir1259230350.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/26/t1259230487kgd09yyqwom6wq8/2g1pk1259230350.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/26/t1259230487kgd09yyqwom6wq8/2g1pk1259230350.ps (open in new window)


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