Home » date » 2011 » May » 01 »

Opgave 6 bis, eigen reeks

*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, 01 May 2011 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/2011/May/01/t1304250747qwha0u6eda0hp3h.htm/, Retrieved Sun, 01 May 2011 13:52:30 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8 8 8,2 8,5 8,7 8,7 8 8 8,3 8,5 8,7 8,6 8,3 7,9 7,9 8,1 8,3 8,1 7,4 7,3 7,7 8 8 7,7 6,9 6,6 6,9 7,5 7,9 7,7 6,5 6,1 6,4 6,8 7,1 7,3 7,2 7 7 7 7,3 7,5 7,2 7,7 8 7,9 8 8 7,9 7,9 8 8,1 8,1 8,2 8 8,3 8,5 8,6 8,7 8,7 8,5 8,4 8,5 8,7 8,7 8,6 7,9 8,1 8,2 8,5 8,6 8,5
 
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.8707397.38850
20.6597645.59830
30.5297854.49541.3e-05
40.5440144.61618e-06
50.6486675.50410
60.7096946.0220
70.6216255.27471e-06
80.4490483.81030.000145
90.3015822.5590.006299
100.2469952.09580.019807
110.2755012.33770.011093
120.2806122.38110.009955
130.1596831.3550.089834
140.0129540.10990.456389
15-0.08104-0.68760.246941
16-0.110798-0.94010.175143
17-0.102495-0.86970.193677
18-0.124871-1.05960.146441
19-0.224715-1.90680.030271
20-0.341997-2.90190.002459
21-0.418814-3.55380.000338
22-0.432801-3.67240.000229
23-0.393005-3.33480.000676
24-0.370639-3.1450.001207
25-0.43445-3.68640.000219
26-0.501375-4.25433.1e-05
27-0.526767-4.46981.4e-05
28-0.512772-4.3512.2e-05
29-0.470154-3.98947.9e-05
30-0.438292-3.7190.000196
31-0.443007-3.7590.000172
32-0.44452-3.77190.000165
33-0.413211-3.50620.000393
34-0.349469-2.96530.002049
35-0.270741-2.29730.012255
36-0.23081-1.95850.027023
37-0.258618-2.19440.015715
38-0.272071-2.30860.01192
39-0.239405-2.03140.022952
40-0.159562-1.35390.089998
41-0.064006-0.54310.294366
42-0.010409-0.08830.464933
43-0.022543-0.19130.424422
44-0.04906-0.41630.339218
45-0.046587-0.39530.346893
460.0016950.01440.494283
470.069550.59010.27847
480.1115370.94640.17355


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
10.8707397.38850
2-0.407023-3.45370.000465
30.3761383.19160.001049
40.3400262.88520.002579
50.2405832.04140.022438
6-0.056645-0.48060.316112
7-0.313306-2.65850.004833
8-0.03695-0.31350.377391
9-0.141462-1.20030.116971
10-0.125743-1.0670.144776
11-0.047631-0.40420.343646
12-0.224292-1.90320.030507
13-0.393047-3.33510.000675
140.2934692.49020.007538
15-0.011307-0.09590.461915
16-0.160977-1.36590.088106
170.0096190.08160.467587
180.031320.26580.395592
19-0.025847-0.21930.413509
20-0.046113-0.39130.348371
21-0.083864-0.71160.239503
22-0.043499-0.36910.356569
230.0616740.52330.301179
240.0579130.49140.312317
25-0.1383-1.17350.122229
260.1115540.94660.173513
270.0252110.21390.415607
28-0.048927-0.41520.339631
29-0.039978-0.33920.367713
30-0.012224-0.10370.458838
310.0372110.31570.376556
320.0081680.06930.472468
330.1270021.07760.142394
340.0802830.68120.248958
35-0.047661-0.40440.343554
36-0.053125-0.45080.326752
37-0.08308-0.7050.241556
38-0.120116-1.01920.155756
39-0.176215-1.49520.069612
400.062470.53010.298845
41-0.088667-0.75240.227143
42-0.096638-0.820.207462
430.0382670.32470.373171
440.0319590.27120.393513
45-0.021554-0.18290.427698
460.0076980.06530.474049
47-0.132816-1.1270.131745
480.0478380.40590.343002
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/01/t1304250747qwha0u6eda0hp3h/12j191304250825.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/01/t1304250747qwha0u6eda0hp3h/12j191304250825.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/01/t1304250747qwha0u6eda0hp3h/2jiw61304250825.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/01/t1304250747qwha0u6eda0hp3h/2jiw61304250825.ps (open in new window)


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