Home » date » 2009 » Nov » 28 »

*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: Sat, 28 Nov 2009 07:11:22 -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/28/t1259417541ijm5gwngreqq012.htm/, Retrieved Sat, 28 Nov 2009 15:12:23 +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/28/t1259417541ijm5gwngreqq012.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 «
95,5 76,7 79,4 55,2 60 64,8 82,3 210,5 106 80,8 97,3 189,5 90 69,3 87,3 57,4 56,2 61,6 77,7 177,2 97,6 81,6 96,8 191,3 106 75,1 72 63,5 57,4 62,3 79,4 178,1 109,3 85,2 102,7 193,7 108,4 73,4 85,9 58,5 58,6 62,7 77,5 180,5 102,2 82,6 97,8 197,8 93,8 72,4 77,7 58,7 53,1 64,3 76,4 188,4 105,5 79,8 96,1 202,5
 
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.482613-3.30860.000902
2-0.000992-0.00680.497301
30.0046010.03150.487486
40.1554031.06540.146071
5-0.353846-2.42580.009583
60.0983890.67450.251641
70.1675981.1490.128186
8-0.144899-0.99340.162806
90.1195950.81990.208205
10-0.052281-0.35840.360816
110.1438110.98590.164611
12-0.26454-1.81360.038064
130.1421850.97480.167332
14-0.018584-0.12740.44958
150.0083820.05750.477209
16-0.074895-0.51350.305019
170.0412820.2830.389204
180.1064120.72950.23465
19-0.175849-1.20560.117011
200.1272960.87270.193633
21-0.112024-0.7680.223164
220.080340.55080.292196
230.0009990.00680.497282
24-0.010724-0.07350.470851
25-0.032318-0.22160.412809
260.0337130.23110.409109
270.0040130.02750.489084
28-0.088325-0.60550.273872
290.1461051.00160.160822
30-0.152806-1.04760.150093
310.1294930.88780.189595
32-0.029871-0.20480.419313
330.0418270.28670.387782
34-0.113016-0.77480.22117
350.1135920.77870.220017
36-0.110698-0.75890.225848


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.482613-3.30860.000902
2-0.304931-2.09050.021004
3-0.205801-1.41090.08243
40.0883030.60540.273921
5-0.309718-2.12330.019511
6-0.352008-2.41320.009882
7-0.080294-0.55050.292302
8-0.16631-1.14020.129998
90.0918270.62950.266023
10-0.078543-0.53850.296399
110.1028010.70480.242216
12-0.057037-0.3910.348773
13-0.067099-0.460.323815
140.0717650.4920.312507
150.044260.30340.381449
160.0160680.11020.456378
17-0.155287-1.06460.146249
18-0.005703-0.03910.484489
19-0.070969-0.48650.314422
20-0.016288-0.11170.455782
21-0.154236-1.05740.147869
22-0.202467-1.3880.085834
230.0881850.60460.274187
24-0.069963-0.47960.316853
25-0.059655-0.4090.342208
26-0.079588-0.54560.293952
27-0.080605-0.55260.291577
28-0.032547-0.22310.412201
290.0066230.04540.481988
30-0.095712-0.65620.257458
31-0.021486-0.14730.441763
320.0377210.25860.398535
330.0405280.27780.391174
340.0007790.00530.49788
350.0804570.55160.291922
36-0.10917-0.74840.228965
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/28/t1259417541ijm5gwngreqq012/1ypu41259417480.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/28/t1259417541ijm5gwngreqq012/1ypu41259417480.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/28/t1259417541ijm5gwngreqq012/2n8sq1259417480.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/28/t1259417541ijm5gwngreqq012/2n8sq1259417480.ps (open in new window)


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