Home » date » 2009 » Jun » 02 »

Exponential Smoothing - Prijsevolutie slagroom - Van Hal Elien

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 12:36:57 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc.htm/, Retrieved Tue, 02 Jun 2009 20:37:42 +0200
 
BibTeX entries for LaTeX users:
@Manual{KEY,
    author = {{YOUR NAME}},
    publisher = {Office for Research Development and Education},
    title = {Statistical Computations at FreeStatistics.org, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc.htm/},
    year = {2009},
}
@Manual{R,
    title = {R: A Language and Environment for Statistical Computing},
    author = {{R Development Core Team}},
    organization = {R Foundation for Statistical Computing},
    address = {Vienna, Austria},
    year = {2009},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4.2 4.19 4.19 4.19 4.19 4.18 4.2 4.19 4.17 4.21 4.22 4.23 4.21 4.23 4.23 4.22 4.25 4.28 4.3 4.32 4.33 4.32 4.34 4.33 4.31 4.31 4.3 4.3 4.29 4.33 4.32 4.32 4.35 4.37 4.39 4.4 4.41 4.44 4.47 4.47 4.47 4.48 4.47 4.48 4.46 4.44 4.43 4.41 4.41 4.38 4.35 4.37 4.4 4.39 4.36 4.34 4.33 4.33 4.34 4.34 4.35 4.37 4.39 4.4 4.38 4.37 4.36 4.33 4.33 4.33 4.32 4.33 4.34
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.187080608713926
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34.194.180.00999999999999979
44.194.181870806087140.00812919391286027
54.194.183391620632710.00660837936728864
64.184.18462792026736-0.0046279202673567
74.24.173762126126660.0262378738733409
84.194.19867072354224-0.0086707235422434
94.174.18704859930397-0.0170485993039708
104.214.163859136968460.0461408630315363
114.224.212491197710990.00750880228901085
124.234.223895949013930.00610405098607103
134.214.23503789858803-0.0250378985880255
144.234.210353793279260.0196462067207408
154.234.23402921759150-0.00402921759149510
164.224.23327542911184-0.0132754291118387
174.254.220791853752660.0292081462473437
184.284.256256131532020.0237438684679852
194.34.290698148898230.00930185110177106
204.324.312438344864510.00756165513548623
214.334.33385298391015-0.00385298391014643
224.324.34313216533487-0.0231321653348706
234.344.328804585763150.0111954142368473
244.334.35089903067339-0.0208990306733856
254.314.33698922729348-0.0269892272934786
264.314.31194006622269-0.00194006622269516
274.34.31157711745281-0.0115771174528083
284.34.299411263272580.000588736727415551
294.294.29952140449792-0.00952140449792171
304.334.287740134348640.0422598656513609
314.324.33564613573886-0.0156461357388640
324.324.32271904714082-0.0027190471408165
334.354.322210366146590.0277896338534083
344.374.357409267763820.0125907322361769
354.394.379764749614720.0102352503852776
364.44.40167956648714-0.00167956648713830
374.414.41136535216635-0.00136535216635014
384.444.421109921251960.0188900787480399
394.474.45464388868280.0153561113172023
404.474.4875167193355-0.0175167193354984
414.474.48423968081954-0.0142396808195420
424.484.48157571266393-0.00157571266392953
434.474.49128092737960-0.0212809273796051
444.484.477299678531430.00270032146856991
454.464.48780485631549-0.0278048563154947
464.444.46260310687079-0.0226031068707879
474.434.43837450387858-0.00837450387857608
484.414.42680779659529-0.0168077965952937
494.414.403663383777110.00633661622289328
504.384.40484884179727-0.0248488417972723
514.354.370200105348-0.0202001053480023
524.374.336421057343410.0335789426565878
534.44.362703026375580.0372969736244233
544.394.39968056690442-0.00968056690442243
554.364.38786952055525-0.0278695205552459
564.344.35265567368521-0.0126556736852059
574.334.33028804254849-0.000288042548492129
584.334.320234155373180.0097658446268154
594.344.322061155530580.0179388444694242
604.344.335417165473540.00458283452646047
614.354.336274524946380.0137254750536151
624.374.34884229517430.021157704825697
634.394.372800491472080.0171995085279155
644.44.396018185997070.00398181400293396
654.384.40676310618452-0.0267631061845215
664.374.38175624798845-0.011756247988445
674.364.36955688195858-0.0095568819585754
684.334.35776897466436-0.0277689746643581
694.334.322573937980790.0074260620192117
704.334.323963210183690.00603678981631006
714.324.3250925764972-0.00509257649720318
724.334.314139854186180.0158601458138152
734.344.327106979919320.0128930200806749


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
744.339519013964184.304115658110954.37492236981741
754.339038027928364.284086814644034.39398924121269
764.338557041892534.265164600733454.41194948305162
774.338076055856714.246198000526174.42995411118725
784.337595069820894.226812618820944.44837752082084
794.337114083785074.206853923620744.46737424394939
804.336633097749254.186252958127024.48701323737147
814.336152111713424.164979922494824.50732430093203
824.33567112567764.143024711370594.52831753998461
834.335190139641784.120387695858634.54999258342493
844.334709153605964.097074979288524.5723433279234
854.334228167570144.073095807449184.59536052769109
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/1rxv31243967812.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/1rxv31243967812.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/2z5o91243967812.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/2z5o91243967812.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/3jetl1243967812.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t1243967862u5wrfe2ld9wfmvc/3jetl1243967812.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