Home » date » 2011 » Jan » 05 »

Exponential Smoothing consumptieprijs koffie verbetering

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 05 Jan 2011 19:06:39 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor.htm/, Retrieved Wed, 05 Jan 2011 20:04:52 +0100
 
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/2011/Jan/05/t1294254289gylhmifidujvwor.htm/},
    year = {2011},
}
@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 = {2011},
    note = {{ISBN} 3-900051-07-0},
    url = {http://www.R-project.org},
}
 
Original text written by user:
Verbetering opgave 10
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W92 - Natasha Van Linden
 
Dataseries X:
» Textbox « » Textfile « » CSV «
97 100,7 101,4 101,5 101,8 101,5 102,2 101,8 98,5 98,4 97,5 97,7 98,3 99,6 99,4 96,7 96,9 96,1 97,9 99,2 97,8 94,9 93,3 91,5 89,1 92,3 91,8 92,1 94,4 92,8 92,6 92,3 92,1 89,8 87,4 87,7 86,3 89,1 90,4 87,1 86,7 84,4 88,4 88,9 88,5 87,2 86,2 83,4 87,5 85,7 87,4 86,8 87,9 85,9 87,7 87 86,8 86,2 86,1 87,5 85,7 88,9 89,8 91,4 95,2 94,1 96,8 96,1 96,6 94,2 93,9 96,5 93,4 95 95,2 94 97 96,9 96,3 96,3 97,3 95,7 96,4 95,1 94,6 95,9 96,2 94,3 98,3 95,9 92,1 94,6 94,7 96,7 97,5 96,2 97,1 95,9 94,5 99,4 101,3 101,4 100,9 101,4 103,1 102,4 101,1 102 103,9 101,7 101,2 101,9 101,1 103,1 103,3 101,4 102,8 103 102,6 102,2
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time1 seconds
R Server'Gwilym Jenkins' @ www.wessa.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.787135282216426
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2100.7973.7
3101.499.91240054420081.48759945579923
4101.5101.0833425616660.416657438333687
5101.8101.4113083319770.388691668023327
6101.5101.717261257781-0.217261257781388
7102.2101.5462472563230.653752743677074
8101.8102.060839106717-0.260839106716944
998.5101.855523442838-3.35552344283822
1098.499.214272550676-0.81427255067591
1197.598.5733298966986-1.07332989669855
1297.797.7284740655494-0.0284740655494033
1398.397.70606112392730.59393887607267
1499.698.1735713687641.42642863123589
1599.499.29636367197360.103636328026454
1696.799.3779394822825-2.67793948228253
1796.997.2700388321376-0.370038832137567
1896.196.978768211572-0.878768211571938
1997.996.28705874735341.61294125264656
2099.297.5566617154541.64333828454609
2197.898.8501912598371-1.05019125983715
2294.998.023548666144-3.12354866614399
2393.395.564893305302-2.26489330530201
2491.593.782115874243-2.28211587424302
2589.191.9857819515202-2.88578195152016
2692.389.71428116069532.58571883930473
2791.891.74959168900370.050408310996275
2892.191.78926984910580.310730150894173
2994.492.0338565141232.36614348587696
3092.893.8963315346434-1.09633153464337
3192.693.033370302719-0.433370302719084
3292.392.692249247184-0.392249247184083
3392.192.3834960253027-0.283496025302668
3489.892.1603463014188-2.3603463014188
3587.490.302434449323-2.90243444932301
3687.788.0178258899405-0.317825889940465
3786.387.7676539183665-1.46765391836649
3889.186.6124117371372.48758826286294
3990.488.5704802264641.82951977353606
4087.190.0105597897268-2.91055978972679
4186.787.7195554882324-1.0195554882324
4284.486.9170273912673-2.51702739126728
4388.484.93578632529563.46421367470437
4488.987.6625911337921.23740886620794
4588.588.6365993109118-0.136599310911762
4687.288.5290771737667-1.32907717376666
4786.287.4829136375064-1.28291363750644
4883.486.4730870493885-3.0730870493885
4987.584.05415180749243.44584819250755
5085.786.7665004969768-1.06650049697684
5187.485.9270203273051.47297967269499
5286.887.0864545976708-0.28645459767084
5387.986.8609760770911.039023922909
5485.987.6788284658796-1.7788284658796
5587.786.27864981937491.42135018062514
568787.3974446949296-0.39744469492959
5786.887.0846019528208-0.284601952820765
5886.286.8605817143678-0.660581714367837
5986.186.3406145402019-0.240614540201904
6087.586.15121834619471.3487816538053
6185.787.212891973911-1.51289197391107
6288.986.02204132306362.87795867693639
6389.888.28738413844121.51261586155884
6491.489.47801745151431.92198254848569
6595.290.99087772723164.20912227276837
6694.194.3040263752906-0.20402637529061
6796.894.14343001679662.65656998320337
6896.196.234509980253-0.1345099802531
6996.696.12863242898570.471367571014341
7094.296.4996624750237-2.29966247502369
7193.994.6895170037434-0.789517003743384
7296.594.06806031418722.43193968581282
7393.495.9823258451128-2.58232584511276
749593.94968606224511.05031393775485
7595.294.77642522005570.423574779944332
769495.1098358740069-1.1098358740069
779794.23624490010662.76375509989343
7896.996.41169405063830.488305949361731
7996.396.796056891897-0.496056891897084
8096.396.4055930102983-0.105593010298279
8197.396.3224770263370.977522973662943
8295.797.0919198480843-1.39191984808427
8396.495.99629062563980.403709374360176
8495.196.3140645179602-1.21406451796024
8594.695.3584315009866-0.758431500986646
8695.994.76144330741571.13855669258432
8796.295.65764145095240.542358549047563
8894.396.0845510005195-1.78455100051949
8998.394.6798679450963.62013205490402
9095.997.5294016117936-1.62940161179358
9192.196.2468421142505-4.14684211425055
9294.692.9827163763431.61728362365702
9394.794.25573737787430.444262622125748
9496.794.60543216231942.09456783768059
9597.596.25414040835361.24585959164642
9696.297.2348004496262-1.03480044962622
9797.196.4202725056720.679727494327992
9895.996.9553099987501-1.05530999875013
9994.596.1246382650581-1.62463826505814
10099.494.8458281657924.55417183420801
101101.398.43057749777342.86942250222657
102101.4100.6892011888620.710798811138304
103100.9101.248696011666-0.348696011666149
104101.4100.9742250781160.425774921884425
105103.1101.3093675414141.79063245858623
106102.4102.718837527049-0.318837527048927
107101.1102.467869260214-1.36786926021409
108102101.391171104040.608828895959704
109103.9101.8704018088832.02959819111695
110101.7103.467970153834-1.76797015383384
111101.2102.076338467846-0.876338467845628
112101.9101.3865415406410.513458459359157
113101.1101.790702809955-0.690702809954928
114103.1101.2470262587131.85297374128662
115103.3102.7055672675010.594432732499357
116101.4103.173466244155-1.7734662441552
117102.8101.7775083915611.0224916084392
118103102.5823476123340.417652387666479
119102.6102.911096542368-0.31109654236775
120102.2102.666221477695-0.466221477694546


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121102.29924210327498.8707257081588105.727758498389
122102.29924210327497.9360162399013106.662467966647
123102.29924210327497.1688663667382107.42961783981
124102.29924210327496.502366180739108.096118025809
125102.29924210327495.9049645268393108.693519679709
126102.29924210327495.358795360612109.239688845936
127102.29924210327494.8525773296349109.745906876913
128102.29924210327494.3786467017787110.219837504769
129102.29924210327493.9315156033567110.666968603192
130102.29924210327493.507094354251111.091389852297
131102.29924210327493.1022383898965111.496245816652
132102.29924210327492.7144681066108111.884016099937
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/1r68q1294254398.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/1r68q1294254398.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/2a0bx1294254398.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/2a0bx1294254398.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/3j0jg1294254398.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/05/t1294254289gylhmifidujvwor/3j0jg1294254398.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; 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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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