Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 05:09:12 -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/04/t1259928592d3w3bewkcyr06up.htm/, Retrieved Fri, 04 Dec 2009 13:09:55 +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/04/t1259928592d3w3bewkcyr06up.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 «
89.1 82.6 102.7 91.8 94.1 103.1 93.2 91 94.3 99.4 115.7 116.8 99.8 96 115.9 109.1 117.3 109.8 112.8 110.7 100 113.3 122.4 112.5 104.2 92.5 117.2 109.3 106.1 118.8 105.3 106 102 112.9 116.5 114.8 100.5 85.4 114.6 109.9 100.7 115.5 100.7 99 102.3 108.8 105.9 113.2 95.7 80.9 113.9 98.1 102.8 104.7 95.9 94.6 101.6 103.9 110.3 114.1
 
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.2543721.97040.026708
20.0050890.03940.484342
30.1456431.12810.131874
40.0593330.45960.323736
50.281782.18270.016493
60.3092252.39520.009874
70.172751.33810.092954
8-0.016668-0.12910.448853
9-0.095778-0.74190.230522
10-0.292433-2.26520.013563
11-0.007281-0.05640.477607
120.4266823.30510.000803
13-0.055901-0.4330.33328
14-0.265259-2.05470.022136
15-0.214391-1.66070.050999
16-0.137985-1.06880.144714
170.0394360.30550.380533
180.0059570.04610.481675
190.0022350.01730.493124
20-0.15174-1.17540.122245
21-0.215518-1.66940.050124
22-0.260848-2.02050.0239
23-0.073796-0.57160.284858
240.2361331.82910.036179
25-0.057526-0.44560.328746
26-0.275762-2.1360.018383
27-0.19485-1.50930.068235
28-0.10784-0.83530.203425
29-0.02139-0.16570.434481
30-0.003039-0.02350.490648
31-0.012363-0.09580.462014
32-0.148007-1.14650.128079
33-0.160941-1.24660.108687
34-0.131768-1.02070.155754
35-0.080011-0.61980.268882
360.1854831.43670.077992


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2543721.97040.026708
2-0.06374-0.49370.31165
30.1722821.33450.093543
4-0.027591-0.21370.415746
50.3182272.4650.008291
60.153231.18690.11997
70.1284360.99490.1619
8-0.156189-1.20980.115544
9-0.12208-0.94560.174065
10-0.494008-3.82660.000156
110.0157770.12220.45157
120.4115373.18780.001139
13-0.077934-0.60370.274167
14-0.175058-1.3560.090091
15-0.108977-0.84410.200974
160.1911911.4810.071925
17-0.000164-0.00130.499497
18-0.20349-1.57620.060116
19-0.03327-0.25770.398756
20-0.089193-0.69090.246151
210.0226350.17530.430705
220.0544430.42170.337369
23-0.07424-0.57510.283699
24-0.075858-0.58760.279506
25-0.025453-0.19720.422186
260.020630.15980.436789
270.0499460.38690.350106
28-0.167621-1.29840.099561
29-0.145929-1.13040.131412
30-0.001323-0.01020.495929
310.0463330.35890.360466
32-0.054639-0.42320.33682
33-0.082532-0.63930.262534
340.1045840.81010.210541
35-0.098081-0.75970.225194
36-0.012614-0.09770.461244
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928592d3w3bewkcyr06up/1au8r1259928550.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928592d3w3bewkcyr06up/1au8r1259928550.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928592d3w3bewkcyr06up/2g3x71259928550.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259928592d3w3bewkcyr06up/2g3x71259928550.ps (open in new window)


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