Home » date » 2010 » Dec » 16 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 16 Dec 2010 16:12:48 +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/16/t1292516005j8sp4u6t50gv77x.htm/, Retrieved Thu, 16 Dec 2010 17:13:26 +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/16/t1292516005j8sp4u6t50gv77x.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:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6715 7703 9856 8326 9269 7035 10342 11682 10304 11385 9777 8882 7897 6930 9545 9110 7459 7320 10017 12307 11072 10749 9589 9080 7384 8062 8511 8684 8306 7643 10577 13747 11783 11611 9946 8693 7303 7609 9423 8584 7586 6843 11811 13414 12103 11501 8213 7982 7687 7180 7862 8043 8340 6692 10065 12684 11587 9843 8110 7940 6475 6121 9669 7778 7826 7403 10741 14023 11519 10236 8075 8157
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.430301-3.30520.000809
2-0.229311-1.76140.041679
30.2415111.85510.034292
4-0.03322-0.25520.399741
5-0.023131-0.17770.429795
60.0024270.01860.492596
7-0.011823-0.09080.463975
80.0127260.09780.461229
9-0.149684-1.14970.127444
100.1835491.40990.081915
110.1757011.34960.091153
12-0.415964-3.19510.001123
130.115460.88690.189376
140.2656532.04050.022891
15-0.171556-1.31770.096341
16-0.111563-0.85690.197475
170.1157820.88930.188717
18-0.088945-0.68320.248578
190.0025930.01990.492088
200.1414981.08690.140758
21-0.084695-0.65060.25893
22-0.07047-0.54130.295173
230.0465460.35750.360986
240.0773970.59450.277225
250.0492060.3780.35341
26-0.230764-1.77250.040734
270.129590.99540.161803
280.0275140.21130.416676
29-0.078432-0.60240.274593
300.053950.41440.340041
310.0241980.18590.426592
32-0.128767-0.98910.163333
330.1114450.8560.197724
340.0846950.65060.25893
35-0.101868-0.78250.218536
36-0.05622-0.43180.333718
370.1117330.85820.197118
38-0.022345-0.17160.432156
39-0.029773-0.22870.40995
40-0.010522-0.08080.46793
410.0192020.14750.441622
420.0162450.12480.45056
43-0.029646-0.22770.410327
440.0502070.38560.350572
450.0093650.07190.47145
46-0.146867-1.12810.131921
470.1451931.11530.134633
480.0213330.16390.435199


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.430301-3.30520.000809
2-0.508652-3.9070.000122
3-0.208976-1.60520.056898
4-0.153098-1.1760.122165
5-0.018045-0.13860.445118
6-0.00925-0.07110.471798
7-0.01119-0.0860.465898
8-0.016784-0.12890.448931
9-0.281355-2.16110.017378
10-0.105747-0.81230.209955
110.288162.21340.015375
12-0.036758-0.28230.389334
13-0.110022-0.84510.200737
140.0648830.49840.310037
150.1164440.89440.187364
16-0.060753-0.46670.321234
17-0.056136-0.43120.333951
18-0.22181-1.70380.046845
19-0.221757-1.70330.046883
200.0574040.44090.330439
21-0.02551-0.19590.422664
22-0.052088-0.40010.345264
230.0937490.72010.237153
24-0.030225-0.23220.408609
250.0223440.17160.43216
26-0.063193-0.48540.314598
270.0497090.38180.351982
28-0.10122-0.77750.219989
29-0.013231-0.10160.459698
30-0.069539-0.53410.297625
31-0.010647-0.08180.467548
320.0057180.04390.482557
33-0.008319-0.06390.474633
340.0007210.00550.4978
350.0078330.06020.476113
36-0.049965-0.38380.351257
370.1223910.94010.175498
380.028140.21610.41481
390.0638020.49010.312949
40-0.015335-0.11780.453317
410.0364120.27970.390348
420.0596160.45790.324346
430.0861210.66150.25543
44-0.019851-0.15250.439666
450.0189060.14520.442517
46-0.066631-0.51180.305351
47-0.01535-0.11790.45327
48-0.045491-0.34940.364009
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/109lo1292515964.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/109lo1292515964.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/2mt551292515965.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/2mt551292515965.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/3mt551292515965.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/16/t1292516005j8sp4u6t50gv77x/3mt551292515965.ps (open in new window)


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