Home » date » 2011 » May » 19 »

iko Guy Hendrickx opgave 6 BIS oef 2 stap 1

*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, 19 May 2011 14:28:14 +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/19/t1305815122o0qr594eu6ivera.htm/, Retrieved Thu, 19 May 2011 16:25:25 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
12.94 12.79 12.82 12.85 12.85 12.72 12.62 12.67 12.6 12.54 12.64 12.67 12.51 12.59 12.52 12.5 12.58 12.51 12.47 12.44 12.51 12.27 12.51 12.41 12.35 12.39 12.31 12.31 12.21 12.1 12.01 11.85 12.12 11.96 11.99 11.93 11.91 11.83 11.92 11.86 11.94 11.87 11.86 11.92 11.82 11.85 11.77 11.82 11.61 11.56 11.45 11.4 11.38 11.33 11.19 11.15 10.98 10.92 10.99 11 10.9 10.99 11.04 11.03 10.99 11 10.87 10.88 10.91 10.92 10.83 10.9 10.82 10.79 10.77 10.72 10.71 10.63 10.61 10.57 10.65 10.57 10.57 10.57 10.52 10.43 10.35 10.2 10.2 10.17 10.14 10.05 10.12 10.12
 
Output produced by software:


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


Autocorrelation Function
Time lag kACF(k)T-STATP-value
10.9644189.35040
20.9346489.06170
30.9001588.72740
40.8655988.39230
50.8302378.04940
60.798167.73840
70.7660147.42680
80.7347967.12410
90.7069116.85380
100.6808116.60070
110.6525036.32620
120.6240616.05050
130.5968945.78710
140.5690555.51720
150.5414265.24930
160.5137614.98111e-06
170.483734.68995e-06
180.4570664.43141.3e-05
190.4295584.16473.5e-05
200.4028433.90578.8e-05
210.3740233.62630.000233
220.349213.38570.000519
230.3200733.10320.001264
240.2900322.8120.002997
250.263182.55160.006168
260.2323952.25320.013287
270.2035941.97390.025664
280.172161.66920.049207
290.1458341.41390.080346
300.1197091.16060.124366
310.0948980.92010.179945
320.072540.70330.241803
330.0438010.42470.336024
340.0144270.13990.444529
35-0.012863-0.12470.450509
36-0.040158-0.38930.34895
37-0.070587-0.68440.247715
38-0.099105-0.96090.169543
39-0.12541-1.21590.113535
40-0.151391-1.46780.07275
41-0.17637-1.710.045286
42-0.198998-1.92940.028351
43-0.222248-2.15480.016867
44-0.246726-2.39210.009371
45-0.266472-2.58350.00566
46-0.286896-2.78160.003269
47-0.301412-2.92230.002176
48-0.318261-3.08570.001334


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.9644189.35040
20.0650330.63050.264943
3-0.076607-0.74270.229747
4-0.029219-0.28330.388791
5-0.027113-0.26290.396613
60.0274390.2660.395399
7-0.010379-0.10060.460031
8-0.009935-0.09630.461734
90.0307550.29820.383111
100.0146290.14180.443756
11-0.047738-0.46280.322275
12-0.028539-0.27670.39131
130.0035650.03460.486249
14-0.018605-0.18040.428621
15-0.014915-0.14460.442667
16-0.019256-0.18670.426151
17-0.05107-0.49510.310826
180.0276860.26840.39448
19-0.022171-0.2150.415134
20-0.016216-0.15720.437703
21-0.04581-0.44410.32898
220.0301650.29250.385289
23-0.067647-0.65590.256757
24-0.051311-0.49750.310006
250.025680.2490.401959
26-0.06901-0.66910.252543
270.0007620.00740.497059
28-0.060596-0.58750.279138
290.0366420.35530.361595
300.0026610.02580.489736
31-0.017164-0.16640.434095
320.0083710.08120.467743
33-0.114458-1.10970.134976
34-0.047714-0.46260.322358
350.0067780.06570.47387
36-0.017495-0.16960.432836
37-0.06728-0.65230.257898
38-0.018593-0.18030.428667
390.0195370.18940.425085
40-0.027961-0.27110.393458
41-0.02616-0.25360.400168
42-0.004036-0.03910.484434
43-0.027697-0.26850.39444
44-0.04705-0.45620.324662
450.0173910.16860.43323
46-0.013605-0.13190.44767
470.0499110.48390.314789
48-0.040124-0.3890.349073
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305815122o0qr594eu6ivera/1kwks1305815291.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305815122o0qr594eu6ivera/1kwks1305815291.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305815122o0qr594eu6ivera/2jzab1305815291.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305815122o0qr594eu6ivera/2jzab1305815291.ps (open in new window)


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