Home » date » 2011 » Mar » 28 »

Alexander De Raeymaeker - Opdracht 6Bis oefening 2

*Unverified author*
R Software Module: /rwasp_autocorrelation.wasp (opens new window with default values)
Title produced by software: (Partial) Autocorrelation Function
Date of computation: Mon, 28 Mar 2011 18:53:36 +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/Mar/28/t13013382303ceayb9ydm1vubi.htm/, Retrieved Mon, 28 Mar 2011 20:50:32 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W12
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2435 1379 1511 2021 1614 1680 1630 870 1877 2428 1711 127 3192 1934 2075 1700 1198 1582 1705 911 1817 1168 920 84 2254 1485 1886 1358 1167 1781 1218 779 1418 1641 1196 132 2926 1777 2094 1648 1646 1537 1917 977 1475 2124 1209 135 2917 1981 1398 1171 903 1390 1280 781 1828 1631 1063 186 2275 1342 1070 950 1121 1305 1586 548 1225 1419 880 124 2044 1143 897 1264 1326 1529 1373 587 1137 1426 1016 176 2614
 
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
1-0.125989-1.16160.124333
2-0.125771-1.15950.12474
30.1323111.21980.112948
40.2391282.20460.01509
5-0.053157-0.49010.312668
60.0520320.47970.316332
7-0.07058-0.65070.258492
80.1839331.69580.046794
90.1104631.01840.155685
10-0.115-1.06030.146017
11-0.158898-1.4650.073309
120.6920526.38040
13-0.191467-1.76520.040557
14-0.174412-1.6080.055772
150.02190.20190.420234
160.15511.42990.078199
17-0.11029-1.01680.156062
18-0.038658-0.35640.361207
19-0.103484-0.95410.171374
200.1179961.08790.139863
210.0035280.03250.487066
22-0.163332-1.50590.067906
23-0.193348-1.78260.039113
240.5564935.13061e-06
25-0.197171-1.81780.036307
26-0.171956-1.58540.0583
270.0415290.38290.351381
280.1649851.52110.065974
29-0.087827-0.80970.21018
300.0081590.07520.470108
31-0.080584-0.74290.22978
320.057380.5290.299085
330.036970.34080.367031
34-0.125136-1.15370.125929
35-0.150881-1.3910.08392
360.4927484.54299e-06
37-0.141703-1.30640.097465
38-0.150773-1.39010.08407
390.0805020.74220.230007
400.1170671.07930.141753
41-0.092481-0.85260.19813
42-0.006933-0.06390.474592
43-0.077042-0.71030.239734
440.0442630.40810.342119
450.0091290.08420.466561
46-0.048741-0.44940.327155
47-0.130233-1.20070.116603
480.3330193.07030.001436


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.125989-1.16160.124333
2-0.143929-1.3270.094039
30.0996650.91890.180382
40.2646922.44030.008375
50.0529610.48830.313305
60.1017920.93850.175329
7-0.130259-1.20090.116557
80.1187011.09440.138442
90.1351661.24620.108063
10-0.059724-0.55060.291666
11-0.187472-1.72840.043773
120.6252375.76440
13-0.199923-1.84320.034393
14-0.0836-0.77080.221496
15-0.187477-1.72850.043769
16-0.110774-1.02130.155009
17-0.049699-0.45820.323989
18-0.09476-0.87360.192387
190.0425990.39270.347748
200.0125030.11530.454249
21-0.102363-0.94370.173989
22-0.071758-0.66160.255017
23-0.055485-0.51150.305147
240.2049231.88930.031131
250.0588570.54260.2944
260.0650670.59990.275089
270.1316811.2140.114048
280.0116960.10780.457192
290.0201380.18570.426575
300.080260.740.23068
31-0.030457-0.28080.389772
32-0.149296-1.37640.08615
330.0004830.00450.498227
34-0.073611-0.67870.2496
350.0267940.2470.40274
360.0066260.06110.475715
370.0299140.27580.391688
38-0.032855-0.30290.381349
390.0012360.01140.495467
40-0.138617-1.2780.102367
41-0.009001-0.0830.467028
42-0.04564-0.42080.337488
430.0179770.16570.434377
440.0860060.79290.215012
45-0.028271-0.26060.3975
460.2148731.9810.02541
47-0.017905-0.16510.434636
48-0.149073-1.37440.086468
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/184kw1301338414.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/184kw1301338414.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/2rufm1301338414.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/2rufm1301338414.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/3hdht1301338414.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Mar/28/t13013382303ceayb9ydm1vubi/3hdht1301338414.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