Home » date » 2009 » Dec » 06 »

WS9

*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: Sun, 06 Dec 2009 07:38:30 -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/06/t1260110355sy73ij1akajmavl.htm/, Retrieved Sun, 06 Dec 2009 15:39:17 +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/06/t1260110355sy73ij1akajmavl.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 «
10414.9 12476.8 12384.6 12266.7 12919.9 11497.3 12142 13919.4 12656.8 12034.1 13199.7 10881.3 11301.2 13643.9 12517 13981.1 14275.7 13435 13565.7 16216.3 12970 14079.9 14235 12213.4 12581 14130.4 14210.8 14378.5 13142.8 13714.7 13621.9 15379.8 13306.3 14391.2 14909.9 14025.4 12951.2 14344.3 16093.4 15413.6 14705.7 15972.8 16241.4 16626.4 17136.2 15622.9 18003.9 16136.1 14423.7 16789.4 16782.2 14133.8 12607 12004.5 12175.4 13268 12299.3 11800.6 13873.3 12269.6
 
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
1-0.330662-2.53990.006872
2-0.268057-2.0590.021959
30.3170822.43560.008955
4-0.099045-0.76080.224908
5-0.109677-0.84240.201472
60.271242.08340.020777
7-0.248284-1.90710.03069
80.0319620.24550.403459
90.2441411.87530.032853
10-0.379244-2.9130.002524
11-0.085137-0.65390.257844
120.4977713.82340.00016
13-0.204128-1.56790.061122
14-0.170971-1.31330.097091
150.1224510.94060.175381
160.0079820.06130.47566
17-0.049639-0.38130.35218
180.0530080.40720.342681
19-0.018313-0.14070.444307
200.0065910.05060.479897
21-0.004653-0.03570.485806
22-0.085263-0.65490.257534
23-0.076098-0.58450.280548
240.1717831.31950.096052
250.1450741.11430.134827
26-0.29991-2.30370.012392
270.1018450.78230.218588
280.0939350.72150.236717
29-0.118385-0.90930.183437
300.0369580.28390.388749
310.1587681.21950.113751
32-0.161443-1.24010.10993
330.0306960.23580.407209
340.068170.52360.30125
35-0.217979-1.67430.04968
360.1654761.2710.10435


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.330662-2.53990.006872
2-0.423723-3.25470.000941
30.069490.53380.297755
4-0.056302-0.43250.333491
5-0.039574-0.3040.381108
60.1941161.4910.07064
7-0.140581-1.07980.142308
80.0489230.37580.354211
90.1277860.98150.165166
10-0.246886-1.89640.031406
11-0.300343-2.3070.012292
120.2109011.620.055287
130.1832021.40720.082307
14-0.00657-0.05050.479962
15-0.19783-1.51960.066982
160.0973930.74810.228688
170.006750.05180.479413
18-0.152271-1.16960.123429
190.1461.12140.133321
200.0313880.24110.405157
21-0.260382-20.025053
22-0.003834-0.02950.488301
230.0743430.5710.285071
24-0.129451-0.99430.162061
250.1625581.24860.108365
260.0333790.25640.399273
270.1116050.85730.197386
28-0.20112-1.54480.063867
290.0612090.47020.319988
300.1060650.81470.209259
31-0.040755-0.3130.377675
32-0.026357-0.20240.420131
330.073710.56620.28671
340.0530030.40710.342696
35-0.162133-1.24540.10896
360.0127320.09780.461212
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260110355sy73ij1akajmavl/13upl1260110308.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260110355sy73ij1akajmavl/13upl1260110308.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/06/t1260110355sy73ij1akajmavl/2w6381260110308.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/06/t1260110355sy73ij1akajmavl/2w6381260110308.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