Home » date » 2010 » Dec » 15 »

ACF 2

*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 17:14:50 +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/t1292433166dbwwno3bvgwh4fb.htm/, Retrieved Wed, 15 Dec 2010 18:12:49 +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/t1292433166dbwwno3bvgwh4fb.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 «
12231 13604 15107 10853 13698 11536 8879 11005 13656 12631 10931 8064 12332 12452 14029 10003 12388 10492 9114 9304 9660 10569 8356 5998 10408 11420 11538 10860 10412 9521 7602 8197 10449 11561 8603 8080 10792 11943 11179 9939 10065 11021 9226 9554 11468 9937 8928 8395 11996 12385 15277 12657 11482 16797 11047 11794 13077 11725 10921 9334 11431 13085 16394 15701 14936 18282 12824 14784 16061 14814 14375 13644 16397 19254 21943 16731 22065 20937 18242 19017 20372 20561 18267 16170
 
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.307151-2.79830.003193
2-0.167261-1.52380.065677
30.0176510.16080.436316
40.0216340.19710.422117
50.0818160.74540.229075
6-0.154784-1.41010.081117
70.0071030.06470.474281
80.0756220.68890.246388
90.0306250.2790.390466
10-0.281994-2.56910.005993
11-0.050358-0.45880.323794
120.5430684.94762e-06
13-0.168489-1.5350.064293
14-0.087602-0.79810.213547
15-0.035608-0.32440.373224
160.0165240.15050.440353
170.1361661.24050.109138
18-0.174138-1.58650.058218
199.1e-058e-040.49967
200.1179891.07490.14276
21-0.029819-0.27170.393277
22-0.302288-2.7540.003616
230.0781250.71180.239306
240.3081352.80720.003113
25-0.041224-0.37560.354099
26-0.064032-0.58340.280616
27-0.098705-0.89920.185562
280.0943820.85990.19617
290.1082750.98640.163395
30-0.1612-1.46860.07286
31-0.007292-0.06640.473597
320.139981.27530.102885
33-0.122657-1.11750.133511
34-0.101619-0.92580.178618
35-0.061671-0.56190.287865
360.2188071.99340.02475
370.0795350.72460.235369
38-0.164481-1.49850.068899
39-0.023499-0.21410.415503
400.0592680.540.295338
410.1239411.12920.131042
42-0.168512-1.53520.064267
430.0235450.21450.41534
440.0682960.62220.267757
45-0.088558-0.80680.211044
46-0.019928-0.18160.428189
47-0.123274-1.12310.132321
480.1805651.6450.051873
490.1415911.290.100324
50-0.21023-1.91530.02945
510.0157980.14390.442952
520.047170.42970.334251
530.0216970.19770.421895
54-0.068472-0.62380.267232
550.0499130.45470.325247
560.0227310.20710.418224
57-0.053915-0.49120.312295
58-0.038666-0.35230.362765
59-0.122857-1.11930.133124
600.2064991.88130.031719


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.307151-2.79830.003193
2-0.288854-2.63160.005065
3-0.165385-1.50670.067839
4-0.099825-0.90950.182873
50.0411820.37520.354241
6-0.133697-1.2180.11333
7-0.086601-0.7890.216188
8-0.018513-0.16870.433238
90.0360250.32820.371792
10-0.308696-2.81240.003068
11-0.349254-3.18190.00103
120.3678663.35140.000606
130.1639481.49360.069531
140.0799170.72810.234307
150.0162120.14770.44147
16-0.054683-0.49820.309836
170.0334840.30510.380546
18-0.018857-0.17180.432009
19-0.012407-0.1130.455138
200.0121870.1110.455932
21-0.028923-0.26350.396408
22-0.173321-1.5790.059066
23-0.05637-0.51360.304463
240.0067590.06160.475523
250.076230.69450.244657
260.0504930.460.323355
27-0.009111-0.0830.467024
280.0231550.2110.416721
290.0275980.25140.401053
300.0183750.16740.433728
31-0.033993-0.30970.378785
32-0.004685-0.04270.483028
33-0.111002-1.01130.157412
340.1407351.28220.101678
35-0.094965-0.86520.19472
36-0.055691-0.50740.30662
370.0453430.41310.3403
38-0.095401-0.86910.193638
390.0317780.28950.386455
40-0.05476-0.49890.309589
410.0450150.41010.341393
42-0.054562-0.49710.310222
43-0.034547-0.31470.376874
44-0.088513-0.80640.211161
45-0.061069-0.55640.289729
460.0203060.1850.426841
470.0146970.13390.446906
48-0.032456-0.29570.384102
490.0719770.65570.256903
500.0118320.10780.457209
51-0.017679-0.16110.436216
520.0079540.07250.471205
53-0.185152-1.68680.047697
54-0.086835-0.79110.215568
550.04330.39450.347118
560.0826980.75340.226666
57-0.056027-0.51040.305551
58-0.08257-0.75230.227014
59-0.023223-0.21160.41648
60-0.017963-0.16370.435202
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/1b8bu1292433286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/1b8bu1292433286.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/240tf1292433286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/240tf1292433286.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/340tf1292433286.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433166dbwwno3bvgwh4fb/340tf1292433286.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