Home » date » 2011 » Apr » 27 »

Alexander De Raeymaeker - volvo verkoop - opgave 6.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: Wed, 27 Apr 2011 15:28:04 +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/27/t1303917891yyxcvbgby54xzyb.htm/, Retrieved Wed, 27 Apr 2011 17:25:14 +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 time2 seconds
R Server'Herman Ole Andreas Wold' @ www.yougetit.org


Autocorrelation Function
Time lag kACF(k)T-STATP-value
1-0.463017-4.24362.8e-05
2-0.133623-1.22470.112061
30.0558430.51180.305062
40.1933531.77210.040001
5-0.174395-1.59840.05686
60.0925660.84840.199318
7-0.165161-1.51370.066925
80.1399841.2830.101514
90.0632260.57950.281908
10-0.067565-0.61920.268717
11-0.392885-3.60090.000268
120.73946.77670
13-0.365043-3.34570.000614
14-0.096309-0.88270.189963
150.0254260.2330.408152
160.1928741.76770.04037
17-0.148969-1.36530.087898
180.0442280.40540.343124
19-0.115988-1.0630.145404
200.144721.32640.094154
210.0356790.3270.372241
22-0.06133-0.56210.287774
23-0.350789-3.2150.000926
240.6451295.91270
25-0.313196-2.87050.002592
26-0.105961-0.97120.16713
270.0393870.3610.359508
280.1720661.5770.059276
29-0.151569-1.38920.084229
300.0844320.77380.220601
31-0.099799-0.91470.18149
320.0717680.65780.256243
330.0576610.52850.299284
34-0.060135-0.55110.291497
35-0.301997-2.76780.00347
360.5331084.8862e-06
37-0.226406-2.0750.020521
38-0.131874-1.20860.115096
390.0807050.73970.230779
400.1233951.13090.130651
41-0.125879-1.15370.125947
420.0510910.46830.320409
43-0.068863-0.63110.264832
440.06320.57920.28199
450.0015270.0140.494434
460.0161590.14810.441309
47-0.230191-2.10970.018928
480.3643993.33980.000626


Partial Autocorrelation Function
Time lag kPACF(k)T-STATP-value
1-0.463017-4.24362.8e-05
2-0.442974-4.05995.5e-05
3-0.377757-3.46220.000423
4-0.051384-0.47090.319452
5-0.089424-0.81960.207386
60.1119681.02620.15387
7-0.150411-1.37850.085849
8-0.095439-0.87470.192112
90.072050.66040.255417
100.0993440.91050.182581
11-0.529189-4.85013e-06
120.3938583.60980.00026
130.0478640.43870.33101
140.0798340.73170.233198
15-0.005156-0.04730.481211
16-0.03493-0.32010.374827
170.0435760.39940.345314
18-0.096777-0.8870.188813
19-0.016665-0.15270.439487
200.0786940.72120.236383
210.059960.54950.292044
22-0.00637-0.05840.476793
23-0.162917-1.49320.069571
240.079320.7270.234631
250.0049140.0450.482092
26-0.058927-0.54010.295288
270.0447490.41010.341377
28-0.035005-0.32080.37457
29-0.070228-0.64360.260778
300.0827840.75870.225071
310.089520.82050.207136
32-0.014182-0.130.448448
330.0054230.04970.48024
34-0.120955-1.10860.13539
35-0.065231-0.59790.275774
36-0.115067-1.05460.147316
370.0313590.28740.387253
380.0016410.0150.494017
390.1179881.08140.141311
40-0.019281-0.17670.430079
410.0113270.10380.458782
42-0.06292-0.57670.282851
43-0.068369-0.62660.266308
440.0138220.12670.449749
45-0.174891-1.60290.056355
460.0761920.69830.243455
470.1266611.16090.124493
48-0.048939-0.44850.327461
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/1lm3n1303918082.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/1lm3n1303918082.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/27q1a1303918082.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/27q1a1303918082.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/35jyj1303918082.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Apr/27/t1303917891yyxcvbgby54xzyb/35jyj1303918082.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