Home » date » 2010 » Dec » 20 »

*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: Mon, 20 Dec 2010 19:46:13 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf.htm/, Retrieved Mon, 20 Dec 2010 20:44:56 +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/2010/Dec/20/t1292874294kcftlaqiwu7xwbf.htm/},
    year = {2010},
}
@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 = {2010},
    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 «
21.3 21.1 20.6 20.5 20.5 20.8 21.1 21.3 21.3 21.1 20.9 19.9 19.8 19.5 19.6 19.6 19.7 20.2 19.7 19.3 18.9 18.4 18 17.8 17.8 17.7 17.5 17.4 17.1 17.1 17.2 17.8 18.6 18.9 18.9 18.7 18.6 19.1 20.3 21.1 21.6 21.5 21.5 21.7 21.9 22.2 22.6 22.5 23.2 23.6 23.8 23.9 23.8 23.5 23.3 23.2 23.5 23.5 23.5 23.3
 
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
10.9671947.49190
20.9145137.08380
30.8539586.61470
40.7943476.1530
50.7417285.74540
60.6855715.31041e-06
70.6203734.80545e-06
80.5396164.17984.8e-05
90.4473573.46520.000492
100.3502532.71310.004344
110.2510891.94490.028238
120.1573881.21910.113785
130.0720020.55770.289552
14-0.010454-0.0810.467864
15-0.086039-0.66650.253838
16-0.155591-1.20520.116429
17-0.222279-1.72180.045132
18-0.289121-2.23950.01442
19-0.35288-2.73340.004113
20-0.412047-3.19170.001126
21-0.456395-3.53520.000396
22-0.482987-3.74120.000206
23-0.490149-3.79670.000172
24-0.489421-3.7910.000175
25-0.490156-3.79670.000172
26-0.492476-3.81470.000162
27-0.491708-3.80880.000165
28-0.479803-3.71650.000223
29-0.450472-3.48930.000457
30-0.407955-3.160.001236
31-0.359281-2.7830.003596
32-0.313153-2.42570.009152
33-0.276055-2.13830.018286
34-0.244094-1.89070.031745
35-0.215782-1.67140.049922
36-0.184725-1.43090.078827
37-0.149045-1.15450.126436
38-0.110859-0.85870.19696
39-0.077066-0.59690.276394
40-0.051111-0.39590.34679
41-0.031737-0.24580.403325
42-0.017796-0.13780.445412
43-0.010856-0.08410.466632
44-0.000283-0.00220.499128
450.0103050.07980.468322
460.0211390.16370.435242
470.0334990.25950.398076
480.0450890.34930.364058
490.0540830.41890.338383
500.0510950.39580.346836
510.0446490.34580.365334
520.0345690.26780.394897
530.0242740.1880.425744
540.0171020.13250.447526
550.0146120.11320.45513
560.015980.12380.450951
570.0163540.12670.449809
580.0152240.11790.453261
590.0084120.06520.474133
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9671947.49190
2-0.324649-2.51470.007305
3-0.064289-0.4980.31016
40.0319270.24730.402757
50.0691260.53540.297159
6-0.164346-1.2730.103961
7-0.158498-1.22770.112173
8-0.21829-1.69090.048025
9-0.115049-0.89120.1882
10-0.09063-0.7020.242692
11-0.124879-0.96730.168637
12-0.022548-0.17470.430968
130.0298940.23160.408835
14-0.066817-0.51760.303334
150.0682790.52890.299418
160.0509280.39450.34731
17-0.032936-0.25510.399752
18-0.113463-0.87890.191487
19-0.029052-0.2250.411357
20-0.072522-0.56180.288189
210.1042570.80760.211263
220.0603770.46770.320854
230.1241440.96160.17005
24-0.050946-0.39460.34726
25-0.082527-0.63920.262547
26-0.048587-0.37630.353992
270.0465230.36040.35992
280.0299310.23180.408725
290.069190.53590.29699
30-0.011802-0.09140.463734
31-0.013063-0.10120.459872
32-0.075411-0.58410.280661
33-0.105437-0.81670.208662
34-0.049358-0.38230.351785
35-0.075216-0.58260.281166
36-0.040239-0.31170.378179
370.0076640.05940.47643
380.0039520.03060.48784
39-0.096088-0.74430.229801
40-0.085765-0.66430.25451
410.0073130.05660.477508
420.0096290.07460.470395
43-0.037977-0.29420.384822
440.1627751.26080.106122
450.0020480.01590.493698
46-0.011716-0.09080.463996
47-0.001158-0.0090.496436
480.053240.41240.34076
490.044830.34730.364809
50-0.125301-0.97060.167827
510.0549530.42570.335938
52-0.037444-0.290.386393
53-0.070665-0.54740.293079
54-0.118465-0.91760.181245
550.0159680.12370.450989
560.0771560.59760.276162
57-0.008125-0.06290.475013
580.0529360.410.341618
59-0.04166-0.32270.374022
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/19pdf1292874370.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/19pdf1292874370.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/21gui1292874370.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/21gui1292874370.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/31gui1292874370.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874294kcftlaqiwu7xwbf/31gui1292874370.ps (open in new window)


 
Parameters (Session):
par1 = 48 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 60 ; par2 = 1 ; par3 = 0 ; 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 (par8 != '') par8 <- as.numeric(par8)
ox <- x
if (par8 == '') {
if (par2 == 0) {
x <- log(x)
} else {
x <- (x ^ par2 - 1) / par2
}
} else {
x <- log(x,base=par8)
}
if (par3 > 0) x <- diff(x,lag=1,difference=par3)
if (par4 > 0) x <- diff(x,lag=par5,difference=par4)
bitmap(file='picts.png')
op <- par(mfrow=c(2,1))
plot(ox,type='l',main='Original Time Series',xlab='time',ylab='value')
if (par8=='') {
mytitle <- paste('Working Time Series (lambda=',par2,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(lambda=',par2,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
} else {
mytitle <- paste('Working Time Series (base=',par8,', d=',par3,', D=',par4,')',sep='')
mysub <- paste('(base=',par8,', d=',par3,', D=',par4,', CI=', par7, ', CI type=',par6,')',sep='')
}
plot(x,type='l', main=mytitle,xlab='time',ylab='value')
par(op)
dev.off()
bitmap(file='pic1.png')
racf <- acf(x, par1, main='Autocorrelation', xlab='time lag', ylab='ACF', ci.type=par6, ci=par7, sub=mysub)
dev.off()
bitmap(file='pic2.png')
rpacf <- pacf(x,par1,main='Partial Autocorrelation',xlab='lags',ylab='PACF',sub=mysub)
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