Home » date » 2008 » May » 21 »

Exponential Smoothing (double)

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 21 May 2008 10:32:24 -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/May/21/t1211387645f1vbuubv2a7vgk2.htm/, Retrieved Wed, 21 May 2008 18:34:05 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,74 1,73 1,74 1,73 1,74 1,73 1,73 1,74 1,75 1,73 1,74 1,74 1,74 1,74 1,76 1,76 1,78 1,77 1,78 1,79 1,83 1,82 1,84 1,83 1,83 1,84 1,83 1,83 1,83 1,83 1,83 1,84 1,83 1,84 1,84 1,83 1,84 1,85 1,85 1,85 1,85 1,84 1,84 1,85 1,84 1,84 1,84 1,84 1,85 1,84 1,85 1,84 1,84 1,84 1,84 1,84 1,83 1,83 1,82 1,83 1,83 1,83 1,87 1,87 1,86 1,87 1,87 1,89 1,89 1,88 1,88 1,87
 
Text written by user:
Gem prijzen kattenvoeding Veronique Van Hoof 2MAR02
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.693896710109591
beta0.271603477614666
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.741.720.02
41.731.727647229393610.0023527706063855
51.741.723492518715110.0165074812848909
61.731.73227079370045-0.0022707937004538
71.731.727590920863140.00240907913685695
81.741.726612422911690.0133875770883110
91.751.735774955067880.0142250449321175
101.731.74819952307874-0.0181995230787360
111.741.734694821278790.00530517872120995
121.741.738499793962110.00150020603789147
131.741.739947244588655.27554113460837e-05
141.741.74040025652331-0.000400256523308773
151.761.740463490717430.0195365092825661
161.761.758042724639280.00195727536072088
171.781.763792663406780.0162073365932180
181.771.78248518457670-0.0124851845767042
191.781.778915042392620.00108495760738236
201.791.784965653500410.00503434649959145
211.831.794705529470090.0352944705299103
221.821.83209456985453-0.0120945698545276
231.841.834321110821200.00567888917879644
241.831.84995086702208-0.0199508670220838
251.831.84403618435771-0.0140361843577095
261.841.839580354425210.000419645574785132
271.831.84523446572714-0.0152344657271390
281.831.83715508077651-0.00715508077650862
291.831.83333347388457-0.00333347388457295
301.831.83153542508809-0.00153542508809079
311.831.83069566291604-0.000695662916037731
321.841.830307501008230.00969249899176705
331.831.83895434496447-0.00895434496446645
341.841.832974626774700.0070253732253025
351.841.839407217741090.000592782258908242
361.831.84148797356433-0.0114879735643276
371.841.833020854490420.00697914550957779
381.851.838683331567580.0113166684324235
391.851.849488394726180.000511605273818549
401.851.85289227967143-0.00289227967142947
411.851.85338912725869-0.00338912725868989
421.841.85290248288576-0.0129024828857593
431.841.84338288900617-0.00338288900616757
441.851.8398313546380.0101686453619994
451.841.84759961668816-0.00759961668815512
461.841.84160628022538-0.00160628022537623
471.841.839468973000220.000531026999779804
481.841.838914816102930.00108518389706735
491.851.838949705775810.0110502942241912
501.841.84798194376471-0.00798194376470795
511.851.842303459314560.00769654068543923
521.841.84895475033369-0.0089547503336862
531.841.84236411042691-0.00236411042690521
541.841.839901142365759.88576342497716e-05
551.841.839165850919610.000834149080393587
561.841.839097983494800.000902016505203607
571.831.83924720737657-0.00924720737656792
581.831.83061114548168-0.000611145481683284
591.821.82785243913769-0.00785243913769329
601.831.818589114894730.0114108851052719
611.831.824843097687590.00515690231241028
621.831.827729356749840.00227064325015691
631.871.829040786378490.0409592136215124
641.871.864917456054060.00508254394593965
651.861.87685730309485-0.0168573030948458
661.871.87039615487893-0.000396154878934629
671.871.87528268202066-0.00528268202065929
681.891.875782864657970.0142171353420339
691.891.89249333540501-0.00249333540500984
701.881.89713855961866-0.0171385596186620
711.881.88839149641372-0.00839149641371684
721.871.88413249023575-0.0141324902357505


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
731.873226350957491.851000010916851.89545269099813
741.872126700159481.842485046403271.90176835391569
751.871027049361471.833012661065151.90904143765778
761.869927398563451.822720387494921.91713440963198
771.868827747765441.811696796181811.92595869934907
781.867728096967421.800004257855741.93545193607911
791.866628446169411.787689776168251.94556711617057
801.865528795371401.774790574078301.95626701666449
811.864429144573381.761337217674741.96752107147202
821.863329493775371.747355493032631.97930349451811
831.862229842977351.732867604919861.99159208103485
841.861130192179341.717892982577302.00436740178139
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/14l3c1211387537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/14l3c1211387537.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/2s5qh1211387537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/2s5qh1211387537.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/31r101211387537.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/21/t1211387645f1vbuubv2a7vgk2/31r101211387537.ps (open in new window)


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