Home » date » 2008 » Aug » 17 »

Maarten Verhaegen 2MAR03 - tweede zit - Oefening 10 - triple additief exponential smoothing model evolutie prijs diesel

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 17 Aug 2008 13:40:03 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv.htm/, Retrieved Sun, 17 Aug 2008 19:44:01 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
0.6200 0.6200 0.6100 0.6100 0.6100 0.6000 0.5900 0.5900 0.5900 0.5900 0.5900 0.5700 0.5800 0.5700 0.5900 0.6200 0.6200 0.6100 0.6400 0.6500 0.6700 0.6700 0.6900 0.7400 0.7300 0.7400 0.7500 0.7400 0.7600 0.7600 0.7800 0.7900 0.8900 0.8800 0.8800 0.8400 0.7600 0.7700 0.7600 0.7700 0.7800 0.7900 0.7800 0.7600 0.7800 0.7600 0.7400 0.7300 0.7200 0.7100 0.7300 0.7500 0.7500 0.7200 0.7200 0.7200 0.7400 0.7800 0.7400 0.7400 0.7500 0.7800 0.8100 0.7500 0.7000 0.7100 0.7100 0.7300 0.7400 0.7400 0.7500 0.7400 0.7400 0.7300 0.7600 0.8000 0.8300 0.8100 0.8300 0.8800 0.8900 0.9300 0.9100 0.9000 0.8600 0.8800 0.9300 0.9800 0.9700 1.0300 1.0600 1.0600 1.0800 1.0900 1.0400 1.0000
 
Text written by user:
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.779623557136431
beta0.00737648872348067
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
130.580.5439763888888890.0360236111111109
140.570.566785260172690.00321473982731013
150.590.592784050117634-0.00278405011763394
160.620.623256698023525-0.00325669802352480
170.620.622508796260632-0.00250879626063183
180.610.6085795485332920.00142045146670833
190.640.6356384704148270.00436152958517311
200.650.645015408733250.00498459126674977
210.670.6644900997575590.00550990024244102
220.670.6664893541666520.00351064583334781
230.690.687783465393320.00221653460668014
240.740.7368314040563650.00316859594363483
250.730.7074952363368840.0225047636631156
260.740.7127776984797010.0272223015202987
270.750.756552926934541-0.00655292693454135
280.740.784343004705179-0.0443430047051790
290.760.7518516831877980.00814831681220152
300.760.7472817862056140.0127182137943862
310.780.784046726904767-0.00404672690476737
320.790.7872072164254670.00279278357453294
330.890.805277801350270.0847221986497296
340.880.8692366948935820.0107633051064182
350.880.896586121573558-0.0165861215735575
360.840.931762909591833-0.0917629095918326
370.760.832709230750218-0.0727092307502176
380.770.7642847804654770.00571521953452259
390.760.78321015808745-0.0232101580874502
400.770.788950870961858-0.0189508709618583
410.780.787234780841077-0.00723478084107665
420.790.7710015648190160.0189984351809842
430.780.808326841517319-0.0283268415173189
440.760.793284342032865-0.0332843420328651
450.780.800295280968893-0.0202952809688929
460.760.764488950178656-0.00448895017865614
470.740.772240150581619-0.0322401505816187
480.730.776875431789645-0.0468754317896447
490.720.7155041488223930.00449585117760709
500.710.723485576818818-0.0134855768188176
510.730.7198887441916450.0101112558083554
520.750.751559545173321-0.00155954517332080
530.750.765097390427123-0.0150973904271225
540.720.747583562459308-0.0275835624593085
550.720.736963233516226-0.0169632335162258
560.720.728553098183873-0.00855309818387262
570.740.756715351008665-0.0167153510086653
580.780.7262117191792690.0537882808207315
590.740.772645014778041-0.0326450147780415
600.740.773100558674985-0.0331005586749852
610.750.7332299051595720.0167700948404280
620.780.7463289205476580.0336710794523417
630.810.7844788875659010.0255211124340986
640.750.825462399986536-0.0754623999865357
650.70.777846203541177-0.0778462035411772
660.710.7077451903747230.00225480962527691
670.710.721984552422646-0.0119845524226465
680.730.718594464574930.0114055354250706
690.740.759918104592518-0.0199181045925182
700.740.741836386053711-0.00183638605371073
710.750.724917143583260.0250828564167392
720.740.769671915749024-0.0296719157490244
730.740.742877959107356-0.00287795910735567
740.730.743683802823674-0.0136838028236737
750.760.742146730048630.0178532699513699
760.80.7538817304220970.0461182695779028
770.830.8002104561268840.0297895438731163
780.810.831979286537432-0.0219792865374316
790.830.824349891840640.0056501081593604
800.880.8401269755233650.0398730244766354
810.890.89716941185198-0.0071694118519805
820.930.893512839165270.0364871608347292
830.910.91312547768583-0.00312547768583027
840.90.924381057433586-0.0243810574335855
850.860.908206513817093-0.048206513817093
860.880.871620894183320.00837910581668
870.930.8946905929892760.0353094070107237
880.980.9268201176815020.0531798823184979
890.970.975652755636756-0.00565275563675605
901.030.9687744582605150.0612255417394846
911.061.032974031352020.0270259686479786
921.061.07395274996467-0.0139527499646692
931.081.079349339947150.000650660052845087
941.091.09214037223277-0.00214037223276997
951.041.07341625367428-0.0334162536742793
9611.05670587311530-0.0567058731153010


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
971.010227347381950.9499930438053361.07046165095856
981.024119804182840.947529500508941.10071010785675
991.046968576503340.9567639653155261.13717318769116
1001.055682044979510.9535017968781941.15786229308082
1011.049956992579630.9369166976799881.16299728747927
1021.062124552428140.939043167267611.18520593758867
1031.070602804091290.9381120482069951.20309355997558
1041.080873606905230.9394781779730991.22226903583737
1051.099839487906800.9499533039404281.24972567187317
1061.110977581556220.9529470691710491.2690080939414
1071.086511398180890.9206312263347741.25239157002701
1081.090394523769740.9169186642631111.26387038327638
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/1c1si1219001999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/1c1si1219001999.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/2i2tk1219001999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/2i2tk1219001999.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/3qt3h1219001999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Aug/17/t12190022382flqf778hz8bvbv/3qt3h1219001999.ps (open in new window)


 
Parameters (Session):
par1 = 4 ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ;
 
R code (references can be found in the software module):
par1 <- as.numeric(par1)
if (par2 == 'Single') K <- 1
if (par2 == 'Double') K <- 2
if (par2 == 'Triple') K <- par1
nx <- length(x)
nxmK <- nx - K
x <- ts(x, frequency = par1)
if (par2 == 'Single') fit <- HoltWinters(x, gamma=0, beta=0)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=0)
if (par2 == 'Triple') fit <- HoltWinters(x, seasonal=par3)
fit
myresid <- x - fit$fitted[,'xhat']
bitmap(file='test1.png')
op <- par(mfrow=c(2,1))
plot(fit,ylab='Observed (black) / Fitted (red)',main='Interpolation Fit of Exponential Smoothing')
plot(myresid,ylab='Residuals',main='Interpolation Prediction Errors')
par(op)
dev.off()
bitmap(file='test2.png')
p <- predict(fit, par1, prediction.interval=TRUE)
np <- length(p[,1])
plot(fit,p,ylab='Observed (black) / Fitted (red)',main='Extrapolation Fit of Exponential Smoothing')
dev.off()
bitmap(file='test3.png')
op <- par(mfrow = c(2,2))
acf(as.numeric(myresid),lag.max = nx/2,main='Residual ACF')
spectrum(myresid,main='Residals Periodogram')
cpgram(myresid,main='Residal Cumulative Periodogram')
qqnorm(myresid,main='Residual Normal QQ Plot')
qqline(myresid)
par(op)
dev.off()
load(file='createtable')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Estimated Parameters of Exponential Smoothing',2,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'Parameter',header=TRUE)
a<-table.element(a,'Value',header=TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'alpha',header=TRUE)
a<-table.element(a,fit$alpha)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'beta',header=TRUE)
a<-table.element(a,fit$beta)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'gamma',header=TRUE)
a<-table.element(a,fit$gamma)
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,'Interpolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Observed',header=TRUE)
a<-table.element(a,'Fitted',header=TRUE)
a<-table.element(a,'Residuals',header=TRUE)
a<-table.row.end(a)
for (i in 1:nxmK) {
a<-table.row.start(a)
a<-table.element(a,i+K,header=TRUE)
a<-table.element(a,x[i+K])
a<-table.element(a,fit$fitted[i,'xhat'])
a<-table.element(a,myresid[i])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable1.tab')
a<-table.start()
a<-table.row.start(a)
a<-table.element(a,'Extrapolation Forecasts of Exponential Smoothing',4,TRUE)
a<-table.row.end(a)
a<-table.row.start(a)
a<-table.element(a,'t',header=TRUE)
a<-table.element(a,'Forecast',header=TRUE)
a<-table.element(a,'95% Lower Bound',header=TRUE)
a<-table.element(a,'95% Upper Bound',header=TRUE)
a<-table.row.end(a)
for (i in 1:np) {
a<-table.row.start(a)
a<-table.element(a,nx+i,header=TRUE)
a<-table.element(a,p[i,'fit'])
a<-table.element(a,p[i,'lwr'])
a<-table.element(a,p[i,'upr'])
a<-table.row.end(a)
}
a<-table.end(a)
table.save(a,file='mytable2.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