Home » date » 2008 » Jun » 01 »

exponential smoothing sigaretten

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 13:14:26 -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/Jun/01/t1212347744x2o6u9mr4xqsi9n.htm/, Retrieved Sun, 01 Jun 2008 19:15:48 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
Pieter Van den Broeck
 
Dataseries X:
» Textbox « » Textfile « » CSV «
3,42 3,42 3,43 3,47 3,51 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,52 3,58 3,6 3,61 3,61 3,61 3,63 3,68 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,69 3,78 3,79 3,79 3,8 3,8 3,8 3,8 3,81 3,95 3,99 4 4,06 4,16 4,19 4,2 4,2 4,2 4,2 4,2 4,23 4,38 4,43 4,44 4,44 4,44 4,44 4,44 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,45 4,46 4,46 4,46 4,48 4,58 4,67 4,68 4,68
 
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 time5 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0133505095885232
gamma0.182841778177839


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
133.523.455815175553780.0641848244462229
143.523.52380859542702-0.00380859542701817
153.583.58088492117983-0.00088492117983252
163.63.598363280213420.00163671978657876
173.613.607968955649390.00203104435060508
183.613.608003930577580.00199606942241637
193.613.608038273055810.00196172694419161
203.633.628061313777340.00193868622266313
213.683.68058615382746-0.000586153827464297
223.693.6939388529079-0.00393885290790008
233.693.69513643007025-0.00513643007025255
243.693.69170921824993-0.00170921824992520
253.693.658401601800030.0315983981999706
263.693.69374601018515-0.00374601018515452
273.693.75357878779703-0.06357878779703
283.693.70805653637266-0.0180565363726641
293.693.69710470670963-0.00710470670963392
303.783.686812763885490.0931872361145092
313.793.777712849338190.0122871506618125
323.793.8088315338865-0.0188315338865013
333.83.84247400128342-0.0424740012834248
343.83.81363378002641-0.0136337800264061
353.83.80443826153263-0.00443826153262661
363.83.80092262746532-0.000922627465318904
373.813.766643044997070.0433569550029262
383.953.813163645416980.136836354583018
393.994.01877459680042-0.0287745968004227
4044.01064055664128-0.0106405566412846
414.064.008903788623780.0510962113762181
424.164.058289076441460.101710923558538
434.194.159257678403140.0307423215968576
444.24.21276346876571-0.0127634687657103
454.24.26019111284203-0.0601911128420314
464.24.21696998416558-0.0169699841655779
474.24.20677751344434-0.00677751344433997
484.24.20286158827441-0.00286158827440541
494.234.164927570820150.0650724291798479
504.384.23547231803760.144527681962399
514.434.45816783639808-0.0281678363980777
524.444.45485694713161-0.0148569471316131
534.444.45178434056866-0.0117843405686591
544.444.439344822076590.000655177923412076
554.444.439356094446840.000643905553164181
564.444.463961995146-0.0239619951460019
574.454.50336866093698-0.0533686609369823
584.454.46781904733247-0.0178190473324742
594.454.45702233899632-0.00702233899632176
604.454.45287588359192-0.00287588359192181
614.454.412687790843480.0373122091565152
624.454.45529936755093-0.00529936755092919
634.454.52745566587846-0.0774556658784604
644.454.47254845055493-0.0225484505549263
654.464.459329747428050.00067025257195219
664.464.456998698834600.00300130116540309
674.464.457050336377240.00294966362276039
684.484.48179412180944-0.00179412180944105
694.584.541865556341010.0381344436589872
704.674.597172324766960.0728276752330368
714.684.677103416194960.00289658380503965
724.684.68286106835216-0.00286106835216504


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
734.640599925686024.558624091280534.7225757600915
744.645583801734494.529014404156094.7621531993129
754.725950806428244.58082976680844.87107184604809
764.750216787222364.581654032493014.91877954195171
774.760734900864124.571490208312534.94997959341571
784.758078965849484.550274206535884.96588372516308
794.755443782711324.530322494121974.98056507130067
804.779160572390874.536514008755965.02180713602578
814.845659303339574.584151055891135.10716755078800
824.863919735791694.586593641981545.14124582960184
834.870648985096914.578635655473555.16266231472026
844.87293189698833-0.26060762914487610.0064714231215
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/1xo6r1212347660.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/1xo6r1212347660.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/245vi1212347660.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/245vi1212347660.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/3ehmr1212347660.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t1212347744x2o6u9mr4xqsi9n/3ehmr1212347660.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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