Home » date » 2008 » May » 28 »

Exponential smoothing - Prijen bruin brood 800g - Vanessa Limbourg 2MAR04b

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 07:12:10 -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/28/t1211980408cazh87noamks06e.htm/, Retrieved Wed, 28 May 2008 15:13:28 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,43 1,44 1,47 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,48 1,57 1,58 1,58 1,58 1,58 1,59 1,6 1,6 1,6 1,6 1,61 1,61 1,62 1,63 1,63 1,63 1,63 1,63 1,64 1,64 1,64 1,65 1,65
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0106354671671956
gamma0.0993629536350756


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.481.466459928895090.0135400711049085
141.481.477283499956930.00271650004307356
151.481.477736584232470.00226341576752653
161.481.4794309458510.000569054148999548
171.481.48110382317720-0.00110382317719826
181.481.48150875016871-0.00150875016870544
191.481.48149270390582-0.00149270390582279
201.481.48147682830244-0.001476828302442
211.481.48146112154352-0.00146112154351985
221.481.48144558183332-0.00144558183331656
231.481.48143020739519-0.00143020739519062
241.481.48141499647140-0.00141499647139676
251.481.49190037224011-0.0119003722401141
261.481.477095339141800.00290466085819596
271.481.477550897081910.00244910291808953
281.481.479247492246860.000752507753144283
291.481.48092237178651-0.000922371786510778
301.481.48132922859833-0.00132922859832596
311.481.48131509163121-0.00131509163121080
321.481.48130110501735-0.00130110501734526
331.481.48128726715765-0.00128726715765204
341.481.48127357647006-0.00127357647006154
351.481.48126003138933-0.00126003138932940
361.481.48124663036686-0.00124663036685857
371.481.49173261607148-0.0117326160714755
381.481.476929836383520.00307016361647827
391.481.477387570113030.00261242988696830
401.571.479086129863920.0909138701360777
411.581.571694355240820.00830564475918494
421.581.58222469415746-0.00222469415745841
431.581.58220103349579-0.00220103349578982
441.581.58217762447631-0.0021776244763112
451.591.582154464422690.00784553557730883
461.61.592237905358730.00776209464126731
471.61.60232045886144-0.0023204588614385
481.61.60229577969740-0.0022957796974048
491.61.61362854590409-0.0136285459040941
501.611.597612851860130.0123871481398714
511.611.608176151269010.00182384873098562
521.621.610011663158460.00998833684153921
531.631.621928108343920.00807189165607691
541.631.63247003776369-0.00247003776368926
551.631.63244376775815-0.00244376775815169
561.631.63241777714640-0.00241777714639579
571.631.63239206295694-0.00239206295693761
581.641.632366622249900.00763337775010275
591.641.64244780678833-0.00244780678833356
601.641.64242177321960-0.00242177321960457
611.651.65403761006938-0.00403761006938064
621.651.647698386978110.00230161302188581


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
631.648193958265261.620987879917601.67540003661293
641.648251633910801.609598797421041.68690447040056
651.650165351358641.602571952867001.69775874985028
661.652543103613321.597287112167431.70779909505922
671.654920855868001.592810895913591.71703081582242
681.657298608122691.588898559652751.72569865659262
691.659676360377371.585405568324121.73394715243061
701.662054112632051.582238285027391.74186994023671
711.664431864886731.579332032755361.7495316970181
721.666809617141411.576639981032451.75697925325038
731.68101886478451.585339673964881.77669805560412
741.67865403225998-9.7867729299724413.1440809944924
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/1dcys1211980324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/1dcys1211980324.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/2rjdk1211980324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/2rjdk1211980324.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/39mlu1211980324.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211980408cazh87noamks06e/39mlu1211980324.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