Home » date » 2010 » Dec » 15 »

ACF 3

*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:17:28 +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/t1292433421vnc13pndbisr8x7.htm/, Retrieved Wed, 15 Dec 2010 18:17:04 +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/t1292433421vnc13pndbisr8x7.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 time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.54952-4.63038e-06
20.1505211.26830.104415
30.0066810.05630.477631
4-0.127243-1.07220.143637
50.0618360.5210.301981
60.0248280.20920.417444
7-0.071622-0.60350.27405
80.0029720.0250.490046
90.0968550.81610.208583
10-0.009269-0.07810.468983
11-0.009418-0.07940.468486
12-0.074181-0.62510.266967
13-0.047145-0.39730.346186
140.0026710.02250.491053
150.085950.72420.235653
16-0.085343-0.71910.237215
170.0587440.4950.311069
180.0244420.2060.418709
19-0.064529-0.54370.294165
200.0107290.09040.464109
210.1396421.17660.121634
22-0.311082-2.62120.005355
230.362213.0520.001598
24-0.190444-1.60470.056499
25-0.055241-0.46550.32151
260.2462192.07470.020821
27-0.268748-2.26450.013299
280.143771.21140.114873
29-0.066104-0.5570.289638
300.0634970.5350.297149
31-0.083475-0.70340.242061
320.1752861.4770.072051
33-0.193172-1.62770.05401
34-0.010852-0.09140.463699
350.0652320.54970.292141
36-0.026677-0.22480.411397
370.0049970.04210.483267
380.0038460.03240.487121
390.051660.43530.332334
40-0.045049-0.37960.352691
410.1059890.89310.187417
42-0.114179-0.96210.169635
43-0.000131-0.00110.499561
440.0099630.08390.466667
45-0.005236-0.04410.482467
460.0621190.52340.301155
470.045160.38050.352345
48-0.176668-1.48860.070507
490.2099511.76910.040588
50-0.18145-1.52890.065363
510.071390.60150.274698
52-0.038419-0.32370.373548
53-0.001185-0.010.496032
54-0.033228-0.280.390152
550.1037210.8740.192542
56-0.074042-0.62390.26735
57-0.007005-0.0590.476549
580.0235290.19830.421704
59-0.030632-0.25810.398533
600.0098020.08260.467203


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.54952-4.63038e-06
2-0.21697-1.82820.035858
3-0.017872-0.15060.440364
4-0.147548-1.24330.108931
5-0.131878-1.11120.13511
6-0.005395-0.04550.481936
7-0.058596-0.49370.311506
8-0.133605-1.12580.132026
90.0442210.37260.355274
100.150171.26540.10494
110.0722660.60890.272259
12-0.112934-0.95160.172265
13-0.192293-1.62030.054802
14-0.173205-1.45950.074425
15-0.004755-0.04010.484076
16-0.057701-0.48620.314161
17-0.048516-0.40880.341957
180.0349220.29430.384709
19-0.048831-0.41150.34099
20-0.153187-1.29080.100485
210.1816521.53060.065153
22-0.10193-0.85890.196648
230.1684041.4190.080137
240.0851020.71710.237837
25-0.199438-1.68050.048628
260.0751050.63280.264433
27-0.063013-0.5310.298554
28-0.020535-0.1730.431558
29-0.069186-0.5830.280879
300.0693830.58460.280324
31-0.037542-0.31630.376337
320.1268591.06890.144361
33-0.047324-0.39880.345634
34-0.214343-1.80610.037571
35-0.078541-0.66180.255122
360.0177530.14960.440756
370.0184830.15570.438341
38-0.10055-0.84730.199851
390.1107760.93340.176885
400.0372580.31390.377244
410.0157040.13230.447552
420.0202050.17030.432649
430.0709160.59760.27602
44-0.063449-0.53460.297289
450.0590960.4980.310029
46-0.040531-0.34150.36686
47-0.010943-0.09220.463395
48-0.011144-0.09390.462727
49-0.057751-0.48660.314013
50-0.056702-0.47780.317137
51-0.00159-0.01340.494676
52-0.010323-0.0870.465466
53-0.044074-0.37140.355733
54-0.015544-0.1310.448084
55-0.011213-0.09450.462497
56-0.105016-0.88490.189603
570.0237410.20.42101
58-0.087188-0.73470.232483
590.0158310.13340.447128
60-0.044485-0.37480.354448
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/1slak1292433445.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/1slak1292433445.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/2kurn1292433445.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/2kurn1292433445.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/3kurn1292433445.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292433421vnc13pndbisr8x7/3kurn1292433445.ps (open in new window)


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