Home » date » 2010 » Dec » 20 »

BEL20-ACF

*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: Mon, 20 Dec 2010 11:53:46 +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/20/t1292845912rn8sfp9qsb1c3i8.htm/, Retrieved Mon, 20 Dec 2010 12:51:56 +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/20/t1292845912rn8sfp9qsb1c3i8.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 «
3030 2803 2768 2883 2863 2897 3013 3143 3033 3046 3111 3013 2987 2996 2833 2849 2795 2845 2915 2893 2604 2642 2660 2639 2720 2746 2736 2812 2799 2555 2305 2215 2066 1940 2042 1995 1947 1766 1635 1833 1910 1960 1970 2061 2093 2121 2175 2197 2350 2440 2409 2473 2408 2455 2448 2498 2646 2757 2849 2921 2982 3081 3106 3119 3061 3097 3162 3257 3277 3295 3364 3494 3667 3813 3918 3896 3801 3570 3702 3862 3970 4139 4200 4291 4444 4503 4357 4591 4697 4621 4563 4203 4296 4435 4105 4117 3844 3721 3674 3858 3801 3504 3033 3047 2962 2198 2014 1863 1905 1811 1670 1864 2052 2030 2071 2293 2443 2513 2467 2503 2540 2483 2626 2656 2447 2467 2462 2505 2579 2649 2637
 
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'Gwilym Jenkins' @ 72.249.127.135


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.2727013.10930.001152
20.0595570.6790.249157
30.2140892.4410.007997
40.171841.95930.02611
50.184022.09820.018914
60.0161990.18470.426878
70.0003890.00440.498234
80.1238231.41180.080199
90.0423480.48280.315011
10-0.099417-1.13350.129539
110.0881151.00470.158462
120.0237950.27130.393294
13-0.040977-0.46720.320566
140.0521430.59450.276599
150.001420.01620.493552
160.062450.7120.238859
17-0.080824-0.92150.17924
18-0.105552-1.20350.115489
190.0599630.68370.247696
20-0.128769-1.46820.072234
21-0.12514-1.42680.078015
22-0.08598-0.98030.164373
23-0.128159-1.46120.073181
24-0.088012-1.00350.158745
25-0.075433-0.86010.195667
26-0.147382-1.68040.04764
27-0.036825-0.41990.337636
280.015170.1730.431476
29-0.036253-0.41330.340018
300.0176520.20130.420403
31-0.081718-0.93170.176602
32-0.008937-0.10190.459496
33-0.017948-0.20460.419089
34-0.073673-0.840.201226
35-0.097476-1.11140.134224
36-0.040263-0.45910.323475
37-0.071726-0.81780.207484
38-0.070243-0.80090.212328
39-0.011711-0.13350.446992
40-0.050074-0.57090.284515
41-0.01935-0.22060.412865
42-0.037649-0.42930.334219
43-0.091065-1.03830.15053
440.0004020.00460.498176
45-0.063197-0.72060.236238
46-0.08089-0.92230.179044
47-0.061343-0.69940.242772
48-0.048087-0.54830.292219
49-0.077377-0.88220.18964
50-0.074867-0.85360.197445
51-0.08489-0.96790.167446
52-0.116289-1.32590.093598
53-0.019449-0.22180.412426
54-0.026513-0.30230.381456
55-0.03242-0.36960.356126
560.0030920.03530.485966
57-0.04126-0.47040.319414
58-0.041828-0.47690.317112
59-0.013552-0.15450.43872
600.0199190.22710.410346


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.2727013.10930.001152
2-0.015999-0.18240.427769
30.2182312.48820.007051
40.0644690.73510.231813
50.1413311.61140.054756
6-0.115286-1.31450.095502
7-0.010086-0.1150.454312
80.0613850.69990.242621
9-0.020302-0.23150.408655
10-0.122997-1.40240.081593
110.1537551.75310.040973
12-0.072489-0.82650.205016
13-0.010171-0.1160.453928
140.0600540.68470.247369
150.0010340.01180.495308
160.0321540.36660.357252
17-0.13957-1.59130.056981
18-0.017439-0.19880.421352
190.0416550.47490.317812
20-0.187261-2.13510.017314
210.0344870.39320.347403
22-0.076345-0.87050.192825
23-0.062405-0.71150.239016
24-0.012256-0.13970.444539
250.0257760.29390.384653
26-0.074516-0.84960.198551
270.0256370.29230.385258
280.0723370.82480.205505
290.0478730.54580.293059
30-0.043846-0.49990.30899
31-0.036762-0.41920.337897
320.040460.46130.32267
33-0.107353-1.2240.11158
340.0126460.14420.442786
35-0.108557-1.23770.109022
360.055870.6370.262617
37-0.091439-1.04260.149543
380.0127830.14570.442173
390.0635430.72450.235031
40-0.058068-0.66210.254547
41-0.014105-0.16080.436244
420.017310.19740.421926
43-0.157479-1.79550.037446
440.0273420.31170.377867
45-0.080503-0.91790.180192
46-0.025626-0.29220.385305
47-0.071115-0.81080.209471
480.0051910.05920.476448
49-0.03754-0.4280.334673
50-0.011021-0.12570.450097
51-0.070211-0.80050.212433
52-0.033891-0.38640.349912
53-0.010794-0.12310.451121
540.0607410.69250.244914
55-0.078834-0.89880.185199
560.070270.80120.212239
57-0.103767-1.18310.119458
58-0.072805-0.83010.204
590.0152390.17380.431164
600.0038350.04370.482597
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/1xahx1292846024.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/1xahx1292846024.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/28jhi1292846024.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/28jhi1292846024.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/38jhi1292846024.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292845912rn8sfp9qsb1c3i8/38jhi1292846024.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