Home » date » 2011 » Apr » 14 »

KDGP2W12

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Thu, 14 Apr 2011 15:36:58 +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/14/t1302795221lft6ogae1kt5rim.htm/, Retrieved Thu, 14 Apr 2011 17:33:45 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
315.42 316.32 316.49 317.56 318.13 318.00 316.39 314.66 313.68 313.18 314.66 315.43 316.27 316.81 317.42 318.87 319.87 319.43 318.01 315.75 314.00 313.68 314.84 316.03 316.73 317.54 318.38 319.31 320.42 319.61 318.42 316.64 314.83 315.15 315.95 316.85 317.78 318.40 319.53 320.41 320.85 320.45 319.44 317.25 316.12 315.27 316.53 317.53 318.58 318.92 319.70 321.22 322.08 321.31 319.58 317.61 316.05 315.83 316.91 318.20 319.41 320.07 320.74 321.40 322.06 321.73 320.27 318.54 316.54 316.71 317.53 318.55 319.27 320.28 320.73 321.97 322.00 321.71 321.05 318.71 317.65 317.14 318.71 319.25 320.46 321.43 322.22 323.54 323.91 323.59 322.26 320.21 318.48 317.94 319.63 320.87 322.17 322.34 322.88 324.25 324.83 323.93 322.39 320.76 319.10 319.23 320.56 321.80 322.40 322.99 323.73 324.86 325.41 325.19 323.97 321.92 320.10 319.96 320.97 322.48 323.52 323.89 325.04 326.01 326.67 325.96 325.13 322.90 etc...
 
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' @ www.wessa.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.70190613.73660
20.242884.75331e-06
3-0.204643-4.00493.7e-05
4-0.459409-8.99080
5-0.524403-10.26280
6-0.510634-9.99330
7-0.510322-9.98720
8-0.445232-8.71340
9-0.17697-3.46340.000297
100.2410294.7172e-06
110.70452613.78780
120.91614217.92930
130.69686613.63790
140.2337364.57433e-06
15-0.198747-3.88965.9e-05
16-0.448332-8.7740
17-0.512762-10.03490
18-0.494537-9.67830
19-0.493337-9.65480
20-0.423799-8.29390
21-0.170083-3.32860.000479
220.2381464.66062e-06
230.68103613.32810
240.87968317.21570
250.67493813.20880
260.223164.36738e-06
27-0.190448-3.72710.000111
28-0.436111-8.53490
29-0.496427-9.71530
30-0.483548-9.46320
31-0.476831-9.33180
32-0.405769-7.9410
33-0.164529-3.21990.000696
340.2377834.65352e-06
350.65868312.89070
360.85277316.68910
370.65204312.76070
380.2181314.26891.2e-05
39-0.19474-3.81118.1e-05
40-0.424309-8.30390
41-0.481214-9.41750
42-0.46772-9.15350
43-0.455583-8.91590
44-0.387019-7.57410
45-0.159341-3.11840.000978
460.2260544.4246e-06
470.64157112.55580
480.82227716.09230


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.70190613.73660
2-0.492366-9.63580
3-0.295223-5.77760
4-0.065832-1.28840.0992
5-0.158402-3.10.001039
6-0.356508-6.9770
7-0.52723-10.31810
8-0.520909-10.19440
9-0.324194-6.34460
10-0.316643-6.19680
110.1323712.59060.004974
120.3456096.76370
13-0.001823-0.03570.485781
14-0.119317-2.33510.010028
150.0113980.22310.4118
160.0646361.2650.103327
170.0466330.91260.181008
180.0731581.43170.076518
190.0382070.74770.227542
20-0.012395-0.24260.404234
210.0134220.26270.396473
22-0.066658-1.30450.09642
230.0419590.82110.206037
240.1004741.96630.024992
25-0.022833-0.44680.327621
26-0.082801-1.62040.052979
270.0505770.98980.161443
280.0284170.55610.28922
290.0059170.11580.453934
30-0.02365-0.46280.321873
310.0110340.21590.414577
320.0028060.05490.478119
33-0.016531-0.32350.373239
34-0.013455-0.26330.396224
350.0167760.32830.371427
360.0782031.53050.063364
37-0.012343-0.24160.404623
38-0.025446-0.4980.30939
39-0.029192-0.57130.284065
400.0353870.69250.244513
410.0300910.58890.278141
42-0.000425-0.00830.496687
430.0426530.83470.202193
440.040510.79280.214193
45-0.025759-0.50410.307239
46-0.046446-0.9090.181972
470.0563261.10230.135508
480.0409650.80170.211612
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/14hbs1302795416.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/14hbs1302795416.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/28pla1302795416.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/28pla1302795416.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/35dax1302795416.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/14/t1302795221lft6ogae1kt5rim/35dax1302795416.ps (open in new window)


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