Home » date » 2010 » Dec » 23 »

autocorrelation

*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: Thu, 23 Dec 2010 07:04:44 +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/23/t1293087786g8vw1cajoshnduu.htm/, Retrieved Thu, 23 Dec 2010 08:03:07 +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/23/t1293087786g8vw1cajoshnduu.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 «
1.3031 1.3241 1.2961 1.2865 1.2305 1.2101 1.2125 1.2350 1.2014 1.1992 1.1791 1.1832 1.2159 1.1922 1.2114 1.2614 1.2812 1.2786 1.2772 1.2815 1.2679 1.2765 1.3247 1.3191 1.3029 1.3234 1.3354 1.3651 1.3453 1.3534 1.3706 1.3638 1.4268 1.4485 1.4635 1.4587 1.4876 1.5189 1.5783 1.5633 1.5554 1.5757 1.5593 1.4660 1.4065 1.2759 1.2705 1.3954 1.2793 1.2694 1.3282 1.3230 1.4135 1.4042 1.4253 1.4322 1.4632 1.4713 1.5016 1.4318
 
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
10.0103120.07920.468569
2-0.02522-0.19370.423532
30.1646121.26440.105527
4-0.07536-0.57890.282446
50.1426921.0960.138758
60.0318850.24490.403688
7-0.33584-2.57960.006201
8-0.113863-0.87460.192669
9-0.068943-0.52960.299202
10-0.091364-0.70180.242788
110.0134890.10360.458916
12-0.219313-1.68460.048677
13-0.153105-1.1760.122155
140.1210030.92940.178223
150.116760.89680.186722
160.0292990.2250.41136
170.0280830.21570.41498
18-0.01639-0.12590.450123
19-0.031704-0.24350.404223
200.1570381.20620.116271
21-0.063181-0.48530.314629
220.0001850.00140.499436
23-0.085253-0.65480.257559
240.0002860.00220.499126
250.1069830.82180.207263
26-0.018354-0.1410.444182
27-0.090608-0.6960.24459
28-0.087058-0.66870.253146
29-0.081978-0.62970.265667
30-0.070313-0.54010.295586
310.0323910.24880.402189
320.0029950.0230.490862
33-0.088474-0.67960.249713
34-0.073928-0.56790.286144
350.159191.22280.113141
360.0071610.0550.478159
370.0039710.03050.487886
380.0458460.35220.362989
390.0196650.15110.440225
400.1698561.30470.098533
410.0963480.74010.231098
42-0.027427-0.21070.416934
43-0.006085-0.04670.481439
44-0.023351-0.17940.429133
45-0.02593-0.19920.421407
460.0386890.29720.383689
47-0.059664-0.45830.324214
48-0.080268-0.61660.269952
490.0222660.1710.432395
50-0.042182-0.3240.37354
510.0380780.29250.385473
52-0.039035-0.29980.382678
53-0.010648-0.08180.467546
54-0.008181-0.06280.475053
550.0400890.30790.379609
560.0010520.00810.49679
570.0256630.19710.422205
58-0.012867-0.09880.460802
59NANANA
60NANANA


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.0103120.07920.468569
2-0.025329-0.19460.423206
30.1652641.26940.104639
4-0.082489-0.63360.264391
50.1602591.2310.111609
6-0.010949-0.08410.466631
7-0.3163-2.42950.00909
8-0.169722-1.30370.098707
9-0.08035-0.61720.269745
10-0.016749-0.12870.449036
110.0180040.13830.445242
12-0.139218-1.06940.144633
13-0.116396-0.89410.187462
140.026340.20230.42018
150.123120.94570.174078
160.0003730.00290.498863
17-0.007993-0.06140.475627
18-0.027437-0.21070.416905
19-0.19422-1.49180.070536
20-0.008999-0.06910.472563
21-0.096973-0.74490.229656
220.1062190.81590.208925
23-0.103272-0.79330.215405
240.0645380.49570.310964
250.0280020.21510.415221
26-0.016012-0.1230.451267
27-0.041495-0.31870.375529
28-0.136355-1.04740.149602
29-0.130052-0.99890.160949
30-0.2228-1.71140.046134
31-0.030774-0.23640.406977
320.08960.68820.247003
33-0.019515-0.14990.440678
34-0.101734-0.78140.218836
350.0972960.74730.228912
36-0.07473-0.5740.28407
37-0.07273-0.55870.289257
38-0.058997-0.45320.326045
390.0303970.23350.408098
40-0.006913-0.05310.478917
41-0.001659-0.01270.494938
42-0.078115-0.60.275397
43-0.005215-0.04010.484093
440.0103240.07930.468531
45-0.017391-0.13360.447093
46-0.039734-0.30520.380642
47-0.000504-0.00390.498462
480.01310.10060.460095
49-0.045019-0.34580.365362
50-0.087848-0.67480.251227
510.0331590.25470.39992
52-0.051481-0.39540.346974
530.0296620.22780.410281
54-0.015093-0.11590.45405
55-0.013203-0.10140.459782
56-0.068738-0.5280.299744
57-0.082338-0.63240.264769
58-0.004965-0.03810.484855
59NANANA
60NANANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/1h4hy1293087880.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/1h4hy1293087880.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/2mrrc1293087880.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/2mrrc1293087880.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/3mrrc1293087880.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/23/t1293087786g8vw1cajoshnduu/3mrrc1293087880.ps (open in new window)


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