Home » date » 2010 » Dec » 15 »

Paper Auto Correlation Function 2 - Priems

*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, 15 Dec 2010 16:19:08 +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/15/t1292430082jj2j5jlbf152z88.htm/, Retrieved Wed, 15 Dec 2010 17:21:25 +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/15/t1292430082jj2j5jlbf152z88.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 «
0.397232704 0.382767296 0.396037736 0.441761006 0.445220126 0.438490566 0.467484277 0.465786164 0.402075472 0.376163522 0.37591195 0.392955975 0.34490566 0.368553459 0.390880503 0.424842767 0.426855346 0.442327044 0.474842767 0.447610063 0.480754717 0.516037736 0.580628931 0.573522013 0.578867925 0.593584906 0.645974843 0.690503145 0.782201258 0.839056604 0.847484277 0.726855346 0.635534591 0.470943396 0.346163522 0.272327044 0.286792453 0.27672956 0.297421384 0.321698113 0.365597484 0.435220126 0.412893082 0.458679245 0.428427673 0.463522013 0.487169811 0.473584906 0.491886792 0.474842767 0.502327044 0.539371069 0.484402516 0.474654088 0.473522013 0.48754717 0.493333333 0.525157233 0.542704403
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.333234-2.51590.007358
20.154021.16280.124873
3-0.16519-1.24720.10872
40.059650.45040.327083
5-0.133428-1.00740.15901
6-0.222404-1.67910.049302
70.0954420.72060.237059
80.0723390.54610.293548
9-0.111054-0.83840.202644
100.0105670.07980.468347
110.1022570.7720.221644
12-0.007395-0.05580.477836
13-0.084649-0.63910.262663
140.0175080.13220.447653
150.1406121.06160.146448
16-0.090587-0.68390.248399
17-0.057256-0.43230.333587
18-0.045914-0.34660.365069
190.2206021.66550.050649
20-0.261165-1.97180.026749
210.1778311.34260.092363
22-0.115139-0.86930.19417
230.2093991.58090.059714
24-0.213816-1.61430.055995
250.1638711.23720.110544
260.0114890.08670.465592
27-0.051541-0.38910.349315
28-0.028914-0.21830.413989
29-0.032171-0.24290.404482
300.0759050.57310.284425
31-0.127474-0.96240.169954
32-0.000601-0.00450.498198
330.053310.40250.344417
34-0.01676-0.12650.449878
350.0389810.29430.384798
36-0.015813-0.11940.452694
370.0476410.35970.360206
38-0.039742-0.30.382617
39-0.038989-0.29440.384776
400.0877170.66230.255239
41-0.053256-0.40210.344567
420.0034970.02640.489516
43-0.037084-0.280.390254
440.0745010.56250.288001
45-0.006199-0.04680.481419
46-0.04672-0.35270.362798
470.0123230.0930.4631
480.048480.3660.357854


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.333234-2.51590.007358
20.0483430.3650.358238
3-0.113023-0.85330.198532
4-0.035887-0.27090.393706
5-0.120405-0.9090.183578
6-0.364363-2.75090.003976
7-0.102515-0.7740.221074
80.0932890.70430.242053
9-0.18735-1.41450.081333
10-0.167435-1.26410.105669
110.0140760.10630.457869
12-0.112279-0.84770.20008
13-0.15928-1.20250.117063
14-0.048027-0.36260.359124
150.0310310.23430.407804
16-0.101991-0.770.222236
17-0.121214-0.91510.181986
18-0.201057-1.5180.067277
190.0882240.66610.254025
20-0.177531-1.34030.092729
21-4.3e-05-3e-040.499871
22-0.135422-1.02240.155453
23-0.024653-0.18610.426502
24-0.123276-0.93070.177964
250.0961330.72580.235469
260.0110930.08380.466773
27-0.102895-0.77680.220232
280.0305570.23070.409186
29-0.037792-0.28530.388217
30-0.023548-0.17780.42976
31-0.020389-0.15390.439102
32-0.020924-0.1580.43752
33-0.046584-0.35170.36318
34-0.092263-0.69660.244452
350.0731120.5520.291558
36-0.012772-0.09640.461759
37-0.038521-0.29080.386118
38-0.104222-0.78690.217312
390.0168740.12740.449536
40-0.026933-0.20330.419798
410.0154520.11670.453769
42-0.081352-0.61420.270767
430.00570.0430.482912
44-0.090372-0.68230.248907
450.0686280.51810.303186
46-0.049835-0.37620.354067
47-0.061949-0.46770.32089
480.0125450.09470.462437
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/1pii51292429945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/1pii51292429945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/209h81292429945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/209h81292429945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/309h81292429945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292430082jj2j5jlbf152z88/309h81292429945.ps (open in new window)


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