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 06:55:13 -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/t125993497191ocuhrmoynq94f.htm/, Retrieved Fri, 04 Dec 2009 14:56:13 +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/t125993497191ocuhrmoynq94f.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 «
3.2 1.9 0 0.6 0.2 0.9 2.4 4.7 9.4 12.5 15.8 18.2 16.8 17.3 19.3 17.9 20.2 18.7 20.1 18.2 18.4 18.2 18.9 19.9 21.3 20 19.5 19.6 20.9 21 19.9 19.6 20.9 21.7 22.9 21.5 21.3 23.5 21.6 24.5 22.2 23.5 20.9 20.7 18.1 17.1 14.8 13.8 15.2 16 17.6 15 15 16.3 19.4 21.3 20.5 21.1 21.6 22.6
 
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.0278-0.19060.424836
20.4098692.80990.0036
3-0.116406-0.7980.214432
40.1333450.91420.182647
50.062130.42590.336048
6-0.026953-0.18480.427099
7-0.099685-0.68340.248853
8-0.11058-0.75810.226088
9-0.062863-0.4310.334233
10-0.075163-0.51530.304383
110.0217820.14930.440967
12-0.328145-2.24970.014597
130.0141960.09730.461442
14-0.214759-1.47230.073801
150.0950090.65130.258997
16-0.003173-0.02180.491368
170.007980.05470.4783
18-0.017158-0.11760.45343
190.0232390.15930.437049
20-0.04516-0.30960.379116
210.1945551.33380.094348
22-0.129044-0.88470.190415
230.2481311.70110.047766
24-0.027215-0.18660.426399
250.2380061.63170.054714
260.0615670.42210.337446
270.027460.18830.425742
28-0.076434-0.5240.301369
29-0.026092-0.17890.4294
30-0.029992-0.20560.418989
31-0.046289-0.31730.376196
32-0.055878-0.38310.351693
33-0.195443-1.33990.093361
34-0.011043-0.07570.469986
35-0.22661-1.55360.063499
36-0.013158-0.09020.464253


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.0278-0.19060.424836
20.4094122.80680.00363
3-0.11818-0.81020.210954
4-0.040517-0.27780.391203
50.1888681.29480.100855
6-0.110899-0.76030.22544
7-0.228294-1.56510.062134
8-0.009114-0.06250.475221
90.0393080.26950.394369
10-0.097298-0.6670.254004
110.077890.5340.297935
12-0.316956-2.17290.01743
13-0.028983-0.19870.421677
140.0918030.62940.266077
15-0.042984-0.29470.384766
160.0934160.64040.262501
170.0529490.3630.359116
18-0.146255-1.00270.160576
190.0089150.06110.475762
20-0.092246-0.63240.265093
210.1557981.06810.145465
22-0.084035-0.57610.283644
230.2187481.49970.070195
240.0180520.12380.451017
250.0614190.42110.337813
260.0118460.08120.46781
27-0.114779-0.78690.21765
28-0.11829-0.8110.21074
290.0791030.54230.295086
300.0282780.19390.423558
31-0.080471-0.55170.291891
32-0.044664-0.30620.380402
33-0.026538-0.18190.428209
34-0.171447-1.17540.122881
350.0125170.08580.465991
36-0.083118-0.56980.285754
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993497191ocuhrmoynq94f/1xtd41259934911.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993497191ocuhrmoynq94f/1xtd41259934911.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t125993497191ocuhrmoynq94f/23usk1259934911.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t125993497191ocuhrmoynq94f/23usk1259934911.ps (open in new window)


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