Home » date » 2011 » Apr » 10 »

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Sun, 10 Apr 2011 12:23:42 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96.htm/, Retrieved Sun, 10 Apr 2011 14:22:26 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12 544 12 264 13 783 11 214 11 453 10 883 10 381 10 348 10 024 10 805 10 796 11 907 12 261 11 377 12 689 11 474 10 992 10 764 12 164 10 409 10 398 10 349 10 865 11 630 12 221 10 884 12 019 11 021 10 799 10 423 10 484 10 450 9 906 11 049 11 281 12 485 12 849 11 380 12 079 11 366 11 328 10 444 10 854 10 434 10 137 10 992 10 906 12 367 14 371 11 695 11 546 10 922 10 670 10 254 10 573 10 239 10 253 11 176 10 719 11 817 12 503 11 510 12 012 10 941 11 252 10 662 11 114 10 415 10 626 11 411 10 936 12 513
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.4342973.68510.00022
20.2880772.44440.008479
3-0.046509-0.39460.347138
4-0.310531-2.63490.005149
5-0.427544-3.62780.000265
6-0.490777-4.16444.3e-05
7-0.409562-3.47530.000434
8-0.306831-2.60350.005599
90.0433870.36820.35692
100.2104371.78560.039186
110.3262072.7680.003583
120.6277735.32681e-06
130.318332.70110.004305
140.1799641.5270.065565
15-0.098625-0.83690.20272
16-0.243499-2.06620.021206
17-0.33504-2.84290.002907
18-0.360738-3.0610.00155
19-0.339556-2.88120.002608
20-0.211411-1.79390.038515
210.0804760.68290.248442
220.278962.36710.010311
230.2948152.50160.007319
240.4734584.01747.1e-05
250.1823181.5470.063121
260.067210.57030.285126
27-0.164744-1.39790.083218
28-0.281381-2.38760.009793
29-0.29286-2.4850.00764
30-0.274713-2.3310.011278
31-0.182014-1.54440.063433
32-0.142023-1.20510.116054
330.1396281.18480.12
340.2683262.27680.012885
350.2467772.0940.019892
360.3512872.98080.00196
370.1340571.13750.129548
380.0451880.38340.351263
39-0.136577-1.15890.125164
40-0.210513-1.78630.039134
41-0.250638-2.12670.018435
42-0.213312-1.810.037233
43-0.124023-1.05240.148074
44-0.061962-0.52580.300334
450.1157310.9820.164692
460.2575832.18570.016047
470.2187411.85610.033767
480.238472.02350.023368


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.4342973.68510.00022
20.1225841.04020.150874
3-0.262165-2.22450.014624
4-0.324548-2.75390.003725
5-0.201401-1.70890.045884
6-0.213206-1.80910.037304
7-0.182096-1.54510.063349
8-0.229352-1.94610.027772
90.0974580.8270.205495
100.0235930.20020.420947
11-0.092291-0.78310.218064
120.4312643.65940.000239
13-0.142249-1.2070.115686
14-0.185306-1.57240.060124
15-0.050564-0.4290.334585
160.0809740.68710.247117
170.0389490.33050.370995
18-0.08766-0.74380.229703
19-0.138881-1.17840.12125
200.0905460.76830.222409
210.0104250.08850.46488
220.1266291.07450.143098
23-0.083207-0.7060.241222
240.0708640.60130.274765
25-0.156562-1.32850.094109
26-0.09497-0.80580.211492
27-0.00433-0.03670.485396
28-0.020122-0.17070.432453
29-0.002885-0.02450.49027
30-0.023797-0.20190.420274
310.0288510.24480.403651
32-0.104412-0.8860.189292
33-0.033202-0.28170.38948
34-0.00666-0.05650.477546
35-0.069747-0.59180.277913
360.0122910.10430.458614
370.0858750.72870.234283
38-0.044948-0.38140.352017
39-0.002776-0.02360.490637
400.0057590.04890.48058
410.0526170.44650.328298
42-0.042145-0.35760.360839
43-0.035405-0.30040.38236
440.1076610.91350.182006
45-0.071097-0.60330.274111
460.0142190.12070.45215
470.0486770.4130.340404
48-0.020018-0.16990.4328
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/1ztok1302438221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/1ztok1302438221.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/2v3xj1302438221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/2v3xj1302438221.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/3g44m1302438221.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/10/t13024381436k2xsj477xpky96/3g44m1302438221.ps (open in new window)


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