Home » date » 2011 » May » 20 »

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: Fri, 20 May 2011 00:08:29 +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/May/20/t1305849860rvppflzny0l7d2m.htm/, Retrieved Fri, 20 May 2011 02:04:22 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7.24 7.52 7.57 7.59 7.58 7.55 7.52 7.55 7.62 7.64 7.68 7.69 7.7 7.6 7.51 7.66 7.69 7.66 7.7 7.72 7.74 7.76 7.72 7.73 7.75 8.1 8.22 8.32 8.07 8.18 8.33 8.34 8.25 8.36 8.36 8.34 8.41 8.39 8.43 8.44 8.49 8.47 8.53 8.52 8.51 8.53 8.54 8.53 8.47 8.63 8.67 8.73 8.57 8.55 8.63 8.65 8.44 8.62 8.37 8.59 8.84 8.72 8.8 8.69 8.68 8.57 8.85 8.85 8.85 8.93 8.75 8.78 8.77 9.03 9.01 9.07 8.99 9.02 8.99 8.98 8.94 8.94 8.75 8.86
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9411128.62540
20.9088618.32990
30.8734678.00550
40.8460417.75410
50.8170247.48810
60.7856247.20040
70.745826.83560
80.7031416.44440
90.6665346.10890
100.6261135.73840
110.5892895.40090
120.5571675.10651e-06
130.526934.82943e-06
140.493354.52161e-05
150.447674.1034.7e-05
160.4073013.7330.000172
170.3717333.4070.000505
180.3314923.03820.001586
190.2969152.72130.003952
200.2607842.39010.00954
210.2245672.05820.021336
220.1892271.73430.043268
230.1556591.42660.078696
240.1215731.11420.134177
250.0747250.68490.247658
260.0566950.51960.302347
270.0330010.30250.381523
280.0262020.24010.4054
29-0.001043-0.00960.496197
30-0.023288-0.21340.41575
31-0.043405-0.39780.345889
32-0.056656-0.51930.302472
33-0.077717-0.71230.23913
34-0.092751-0.85010.198849
35-0.110207-1.01010.157683
36-0.130624-1.19720.117301
37-0.148119-1.35750.089124
38-0.168224-1.54180.063441
39-0.180678-1.65590.050732
40-0.196724-1.8030.037487
41-0.208466-1.91060.029732
42-0.224533-2.05790.021351
43-0.24044-2.20370.015142
44-0.256318-2.34920.010581
45-0.274627-2.5170.006868
46-0.287541-2.63540.005004
47-0.297073-2.72270.003936
48-0.308055-2.82340.002966


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9411128.62540
20.2026891.85770.033359
30.0067630.0620.475361
40.0534230.48960.312838
50.0019160.01760.493016
6-0.036127-0.33110.370695
7-0.099704-0.91380.181717
8-0.08571-0.78550.217172
90.0050210.0460.481704
10-0.049468-0.45340.32572
11-0.009121-0.08360.466788
120.0415630.38090.352109
130.0284970.26120.397296
14-0.026817-0.24580.403227
15-0.140719-1.28970.100346
16-0.03348-0.30680.37986
170.0166320.15240.439604
18-0.079845-0.73180.233167
190.0009210.00840.496642
20-0.002007-0.01840.492683
21-0.009661-0.08850.464829
22-0.011654-0.10680.457597
23-0.01825-0.16730.433782
24-0.015896-0.14570.442259
25-0.16231-1.48760.0703
260.1572591.44130.076608
270.0335650.30760.379562
280.1404931.28760.100704
29-0.107609-0.98630.163421
30-0.03658-0.33530.36913
310.0184030.16870.433231
320.0132480.12140.451825
33-0.126547-1.15980.124704
340.0099330.0910.463838
35-0.016785-0.15380.439055
36-0.046007-0.42170.337176
37-0.018149-0.16630.434146
38-0.005183-0.04750.481111
390.0719710.65960.255651
40-0.102676-0.9410.174691
41-0.022892-0.20980.417162
42-0.025641-0.2350.407388
43-0.024681-0.22620.410795
44-0.033413-0.30620.380093
45-0.092391-0.84680.199763
460.0392830.360.359861
470.0408640.37450.354479
48-0.040074-0.36730.357167
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/10rxs1305850108.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/10rxs1305850108.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/2e3ey1305850108.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/2e3ey1305850108.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/3nazh1305850108.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t1305849860rvppflzny0l7d2m/3nazh1305850108.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