Home » date » 2009 » Nov » 25 »

workshop 8

*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: Wed, 25 Nov 2009 04:50:24 -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/25/t1259149904qti3xfbddygmrry.htm/, Retrieved Wed, 25 Nov 2009 12:51:46 +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/25/t1259149904qti3xfbddygmrry.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:
workshop 8
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.6348 0.634 0.62915 0.62168 0.61328 0.6089 0.60857 0.62672 0.62291 0.62393 0.61838 0.62012 0.61659 0.6116 0.61573 0.61407 0.62823 0.64405 0.6387 0.63633 0.63059 0.62994 0.63709 0.64217 0.65711 0.66977 0.68255 0.68902 0.71322 0.70224 0.70045 0.69919 0.69693 0.69763 0.69278 0.70196 0.69215 0.6769 0.67124 0.66532 0.67157 0.66428 0.66576 0.66942 0.6813 0.69144 0.69862 0.695 0.69867 0.68968 0.69233 0.68293 0.68399 0.66895 0.68756 0.68527 0.6776 0.68137 0.67933 0.67922
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time0 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.3498072.39820.01025
20.2083611.42850.079887
30.0419510.28760.387458
4-0.031582-0.21650.414762
5-0.073071-0.50090.309372
6-0.091869-0.62980.26593
7-0.103143-0.70710.241494
8-0.000488-0.00330.498673
9-0.027522-0.18870.425578
10-0.002139-0.01470.494181
11-0.028198-0.19330.423773
12-0.406549-2.78720.003824
13-0.222706-1.52680.066757
14-0.225006-1.54260.064822
15-0.127218-0.87220.193777
160.0178770.12260.451489
170.0527070.36130.359732
180.220571.51220.068595
190.161661.10830.136689
200.0233770.16030.43668
210.0023880.01640.493505
22-0.019926-0.13660.445964
23-0.096496-0.66150.255747
240.0209640.14370.443167
25-0.122745-0.84150.202166
260.0288530.19780.422024
270.0917570.62910.266179
280.0818140.56090.288769
290.0539150.36960.356662
30-0.04297-0.29460.384802
31-0.09312-0.63840.263156
320.0192280.13180.447844
33-0.008243-0.05650.477586
340.014470.09920.4607
35-0.059896-0.41060.341607
36-0.03532-0.24210.404861


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.3498072.39820.01025
20.0979870.67180.252512
3-0.066808-0.4580.324528
4-0.053774-0.36870.357019
5-0.045379-0.31110.378549
6-0.04527-0.31040.378831
7-0.050208-0.34420.366112
80.0733020.50250.308819
9-0.036252-0.24850.402403
10-0.00744-0.0510.479769
11-0.033994-0.23310.408367
12-0.464372-3.18360.001291
130.043840.30060.382541
14-0.050461-0.34590.365464
15-0.035017-0.24010.405663
160.1125190.77140.222168
17-0.017738-0.12160.451866
180.1783331.22260.11379
19-0.082366-0.56470.28749
20-0.102901-0.70550.242005
21-0.032462-0.22250.412425
220.0300560.20610.418818
23-0.021527-0.14760.441651
24-0.119533-0.81950.208326
25-0.157509-1.07980.142865
260.0122530.0840.466705
270.0662180.4540.32597
280.0563370.38620.350535
29-0.041869-0.2870.387672
300.1000570.6860.248056
31-0.031967-0.21920.413739
320.0466140.31960.375357
33-0.009665-0.06630.473726
34-0.035143-0.24090.405328
35-0.15329-1.05090.149338
36-0.021742-0.14910.441073
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259149904qti3xfbddygmrry/1gw171259149822.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259149904qti3xfbddygmrry/1gw171259149822.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Nov/25/t1259149904qti3xfbddygmrry/2nlob1259149822.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Nov/25/t1259149904qti3xfbddygmrry/2nlob1259149822.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