Home » date » 2008 » May » 24 »

Opgave10: Exponential Smoothing Gemiddelede Prijs Zakje Frieten - Dave Florus

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 24 May 2008 11:55:28 -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/24/t1211651891ejanves0wlxq7u2.htm/, Retrieved Sat, 24 May 2008 19:58:11 +0200
 
User-defined keywords:
Exponential Smoothing, Gemiddelede Prijs, Zakje Frieten
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,72 1,73 1,73 1,73 1,73 1,73 1,74 1,74 1,74 1,74 1,75 1,75 1,75 1,75 1,75 1,76 1,77 1,77 1,78 1,78 1,78 1,79 1,8 1,8 1,82 1,83 1,85 1,86 1,86 1,87 1,88 1,88 1,89 1,9 1,9 1,9 1,9 1,92 1,92 1,93 1,93 1,93 1,94 1,94 1,95 1,96 1,96 1,96 1,96 1,97 1,97 1,98 1,99 1,99 1,99 2 2 2,01 2,01 2,01 2,02 2,02 2,02 2,02 2,03 2,03 2,03 2,04 2,04 2,05 2,06 2,06
 
Text written by user:
Exponential Smoothing Gemiddelede Prijs Zakje Frieten
 
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
alpha0.823465303952612
beta0.208609164233188
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.731.74-0.01
41.731.74004752287215-0.0100475228721482
51.731.73832992462616-0.00832992462615989
61.731.73659577442420-0.00659577442419734
71.741.735156598726690.00484340127331162
81.741.74396919845957-0.00396919845956822
91.741.74484308960228-0.00484308960228019
101.741.74416540411147-0.0041654041114656
111.751.74333022595730.00666977404269975
121.751.75256319092666-0.00256319092665946
131.751.75375281847946-0.00375281847946218
141.751.75331816081959-0.00331816081959224
151.751.75267142700324-0.00267142700323908
161.761.752098351879910.00790164812009131
171.771.761589201424540.00841079857545779
181.771.77294414594316-0.00294414594315939
191.781.774442935140320.0055570648596821
201.781.78389678246284-0.00389678246283864
211.781.78489631584824-0.00489631584823513
221.791.78423166723980.00576833276019961
231.81.793339884835750.0066601151642467
241.81.80432654492613-0.00432654492613116
251.821.805522847316430.0144771526835714
261.831.824690262435350.00530973756464626
271.851.837220748786040.0127792512139626
281.861.858097371020940.00190262897905535
291.861.87034431041034-0.0103443104103431
301.871.87072934957296-0.000729349572960558
311.881.87890668595750.00109331404249802
321.881.88877273470998-0.00877273470998063
331.891.889007433127160.000992566872841438
341.91.897454024108770.00254597589123184
351.91.90761714739129-0.00761714739129471
361.91.90810279934356-0.00810279934355829
371.91.90679661537381-0.0067966153738126
381.921.905398489622910.0146015103770907
391.921.92412926062266-0.00412926062266039
401.931.926726557251380.0032734427486234
411.931.93598204314233-0.00598204314233208
421.931.93658834775013-0.0065883477501325
431.941.935563619303040.00443638069696162
441.941.94437946438025-0.00437946438024794
451.951.945183451970720.00481654802928144
461.961.954387434937880.00561256506211794
471.961.96521105025904-0.00521105025904189
481.961.96622662713385-0.00622662713385091
491.961.96533628668080-0.00533628668080288
501.971.964262430519300.00573756948070425
511.971.97329312419399-0.00329312419399108
521.981.974321654150320.00567834584967808
531.991.983713318341310.00628668165869328
541.991.99468586728306-0.00468586728306164
551.991.99581795330601-0.00581795330600521
5621.995018383734580.00498161626541593
5722.00396763904480-0.00396763904480357
582.012.004865922518350.00513407748165084
592.012.01414109795477-0.00414109795477291
602.012.01506712044935-0.00506712044934599
612.022.014360153392320.00563984660767547
622.022.02343882865304-0.00343882865303691
632.022.02445079956112-0.00445079956111849
642.022.02386487846795-0.00386487846794559
652.032.023097524932790.0069024750672142
662.032.03238243724317-0.00238243724317400
672.032.03361228560719-0.00361228560719029
682.042.033208869391320.00679113060867831
692.042.04253890224645-0.00253890224645481
702.052.043749838016960.00625016198303863
712.062.053271931115710.00672806888429323
722.062.06434332784589-0.00434332784588998


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
732.065551706182762.053452011270482.07765140109504
742.070336664304402.053265722743912.08740760586490
752.075121622426052.052967357550282.09727588730183
762.07990658054772.052461612278882.10735154881653
772.084691538669352.051717276189842.11766580114886
782.089476496791002.050724993496392.12822800008560
792.094261454912652.049484253181372.13903865664392
802.099046413034292.047998408225332.15009441784325
812.103831371155942.046272510370642.16139023194125
822.108616329277592.044312291910592.17292036664459
832.113401287399242.042123664386172.18467891041230
842.118186245520892.039712467327002.19666002371478
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/1ms2r1211651723.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/1ms2r1211651723.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/262la1211651723.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/262la1211651723.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/3p5f01211651723.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/24/t1211651891ejanves0wlxq7u2/3p5f01211651723.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