Home » date » 2010 » Dec » 15 »

ACF 1

*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:11: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/t1292432998tziv8xxaufw1v80.htm/, Retrieved Wed, 15 Dec 2010 18:09:58 +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/t1292432998tziv8xxaufw1v80.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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.7785547.13560
20.682776.25770
30.6517395.97330
40.6116015.60540
50.5675525.20171e-06
60.4896674.48791.1e-05
70.4678544.2882.4e-05
80.4395544.02866.1e-05
90.3973763.6420.000233
100.3237662.96740.001956
110.3795393.47850.000401
120.4649974.26182.6e-05
130.3273012.99980.001778
140.2596872.38010.009787
150.2289122.0980.019454
160.2074031.90090.030373
170.1838481.6850.047851
180.1072730.98320.164172
190.0865040.79280.215056
200.0766430.70240.242171
210.0132260.12120.451903
22-0.039601-0.36290.358778
230.0476980.43720.331558
240.1056240.96810.167897
250.0395580.36260.358924
26-0.013671-0.12530.450295
27-0.042013-0.38510.350583
28-0.032773-0.30040.382319
29-0.060213-0.55190.291255
30-0.132292-1.21250.114364
31-0.155356-1.42390.079095
32-0.15752-1.44370.076272
33-0.223178-2.04550.021969
34-0.24453-2.24120.013827
35-0.213878-1.96020.026642
36-0.155819-1.42810.078485
37-0.178894-1.63960.052415
38-0.237495-2.17670.016156
39-0.228934-2.09820.019445
40-0.216005-1.97970.025505
41-0.222235-2.03680.022409
42-0.28039-2.56980.00597
43-0.272825-2.50050.007173
44-0.272198-2.49470.007282
45-0.299833-2.7480.003668
46-0.294218-2.69660.004232
47-0.283205-2.59560.005571
48-0.215664-1.97660.025684
49-0.215351-1.97370.02585
50-0.277561-2.54390.006397
51-0.257857-2.36330.010211
52-0.242305-2.22080.01453
53-0.239991-2.19960.015293
54-0.242616-2.22360.014429
55-0.224489-2.05750.021371
56-0.230595-2.11340.018765
57-0.247496-2.26830.012937
58-0.244085-2.23710.013965
59-0.224091-2.05380.021551
60-0.148599-1.36190.08843


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.7785547.13560
20.1945491.78310.039094
30.1903071.74420.042392
40.0753480.69060.245869
50.0326940.29960.382593
6-0.090762-0.83180.203928
70.062220.57030.285014
80.0067290.06170.475485
9-0.010659-0.09770.461206
10-0.113273-1.03820.151087
110.2606772.38910.009564
120.2713482.48690.007432
13-0.382283-3.50370.000369
14-0.131106-1.20160.116447
15-0.022587-0.2070.41825
16-0.026276-0.24080.405139
170.0219620.20130.42048
18-0.060904-0.55820.289099
19-0.013199-0.1210.452
200.0038040.03490.486134
21-0.075084-0.68820.246625
220.046350.42480.336033
230.178981.64040.052333
240.0125850.11530.454223
25-0.053943-0.49440.311159
26-0.113954-1.04440.149646
27-0.071458-0.65490.257154
28-0.005238-0.0480.480911
29-0.069619-0.63810.262583
30-0.054243-0.49710.310191
31-0.058382-0.53510.297004
320.0023460.02150.49145
330.0236430.21670.414488
340.0811890.74410.229444
35-0.155836-1.42830.078462
360.0697370.63920.262231
370.0060720.05560.477877
38-0.093702-0.85880.196448
390.060710.55640.289702
40-0.088803-0.81390.209005
41-0.013924-0.12760.449381
42-0.054405-0.49860.309673
430.0274520.25160.400981
440.0278320.25510.399642
450.0624680.57250.284246
460.027630.25320.400355
47-0.059311-0.54360.294079
48-0.051481-0.47180.319135
490.0118190.10830.456999
50-0.113937-1.04420.149683
51-0.0555-0.50870.306158
52-0.022743-0.20840.417693
53-0.008672-0.07950.46842
540.1672511.53290.064531
550.0689260.63170.264645
56-0.092342-0.84630.199886
57-0.096161-0.88130.190326
580.0301490.27630.391489
590.0618250.56660.286238
60-0.00487-0.04460.482253
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292432998tziv8xxaufw1v80/195ld1292433106.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/15/t1292432998tziv8xxaufw1v80/195ld1292433106.ps (open in new window)


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


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


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