Home » date » 2011 » Jan » 04 »

Exponential Smoothing consumptieprijs koffie

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 04 Jan 2011 13:48:53 +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/04/t1294149107z8io3nl8sx8ntho.htm/, Retrieved Tue, 04 Jan 2011 14:51:48 +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/04/t1294149107z8io3nl8sx8ntho.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:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102 - 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 time3 seconds
R Server'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.78713528221648
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2100.7973.7
3101.499.9124005442011.48759945579903
4101.5101.0833425616660.416657438333573
5101.8101.4113083319770.388691668023284
6101.5101.717261257781-0.217261257781416
7102.2101.5462472563230.653752743677074
8101.8102.060839106717-0.260839106716986
998.5101.855523442838-3.35552344283822
1098.499.2142725506757-0.814272550675739
1197.598.5733298966985-1.07332989669847
1297.797.7284740655493-0.0284740655493323
1398.397.70606112392730.593938876072684
1499.698.17357136876411.42642863123586
1599.499.29636367197360.103636328026369
1696.799.3779394822826-2.67793948228255
1796.997.2700388321374-0.370038832137425
1896.196.9787682115719-0.878768211571895
1997.996.28705874735341.61294125264664
2099.297.5566617154541.64333828454602
2197.898.8501912598373-1.05019125983726
2294.998.023548666144-3.12354866614398
2393.395.5648933053018-2.26489330530184
2491.593.7821158742429-2.28211587424286
2589.191.98578195152-2.88578195152
2692.389.7142811606952.58571883930492
2791.891.74959168900380.0504083109961755
2892.191.78926984910580.310730150894145
2994.492.0338565141232.36614348587692
3092.893.8963315346435-1.0963315346435
3192.693.033370302719-0.433370302719069
3292.392.692249247184-0.392249247184054
3392.192.3834960253026-0.28349602530264
3489.892.1603463014188-2.36034630141879
3587.490.3024344493229-2.90243444932288
3687.788.0178258899403-0.317825889940295
3786.387.7676539183664-1.46765391836644
3889.186.6124117371372.48758826286304
3990.488.5704802264641.82951977353595
4087.190.0105597897269-2.9105597897269
4186.787.7195554882323-1.01955548823227
4284.486.9170273912672-2.51702739126721
4388.484.93578632529553.46421367470451
4488.987.66259113379221.23740886620779
4588.588.6365993109119-0.136599310911862
4687.288.5290771737667-1.32907717376668
4786.287.4829136375064-1.28291363750637
4883.486.4730870493884-3.07308704938842
4987.584.05415180749233.44584819250774
5085.786.766500496977-1.06650049697699
5187.485.9270203273051.47297967269502
5286.887.086454597671-0.286454597670925
5387.986.8609760770911.039023922909
5485.987.6788284658797-1.77882846587966
5587.786.27864981937481.42135018062523
568787.3974446949297-0.397444694929661
5786.887.0846019528208-0.284601952820765
5886.286.8605817143678-0.660581714367822
5986.186.3406145402019-0.240614540201875
6087.586.15121834619471.34878165380532
6185.787.2128919739111-1.51289197391114
6288.986.02204132306352.87795867693646
6389.888.28738413844131.5126158615587
6491.489.47801745151441.92198254848557
6595.290.99087772723184.20912227276823
6694.194.3040263752909-0.204026375290866
6796.894.14343001679672.65656998320331
6896.196.2345099802533-0.134509980253256
6996.696.12863242898570.471367571014326
7094.296.4996624750237-2.29966247502372
7193.994.6895170037433-0.78951700374327
7296.594.06806031418712.43193968581289
7393.495.982325845113-2.58232584511289
749593.9496860622451.05031393775495
7595.294.77642522005570.423574779944303
769495.109835874007-1.10983587400695
779794.23624490010652.76375509989349
7896.996.41169405063840.488305949361603
7996.396.7960568918971-0.49605689189714
8096.396.4055930102982-0.10559301029825
8197.396.3224770263370.977522973662957
8295.797.0919198480843-1.39191984808431
8396.495.99629062563980.403709374360247
8495.196.3140645179602-1.21406451796025
8594.695.3584315009866-0.758431500986589
8695.994.76144330741561.13855669258437
8796.295.65764145095250.542358549047506
8894.396.0845510005195-1.78455100051953
8998.394.67986794509593.6201320549041
9095.997.5294016117938-1.62940161179375
9192.196.2468421142505-4.1468421142505
9294.692.98271637634281.61728362365724
9394.794.25573737787430.44426262212572
9496.794.60543216231942.09456783768056
9597.596.25414040835371.24585959164631
9696.297.2348004496263-1.03480044962632
9797.196.4202725056720.67972749432802
9895.996.9553099987502-1.05530999875016
9994.596.124638265058-1.62463826505808
10099.494.8458281657924.55417183420811
101101.398.43057749777362.86942250222636
102101.4100.6892011888620.710798811138105
103100.9101.248696011666-0.34869601166622
104101.4100.9742250781160.425774921884425
105103.1101.3093675414141.79063245858622
106102.4102.718837527049-0.318837527049027
107101.1102.467869260214-1.36786926021409
108102101.391171104040.608828895959775
109103.9101.8704018088832.02959819111693
110101.7103.467970153834-1.76797015383396
111101.2102.076338467846-0.876338467845557
112101.9101.3865415406410.513458459359214
113101.1101.790702809955-0.690702809954956
114103.1101.2470262587131.85297374128665
115103.3102.7055672675010.594432732499257
116101.4103.173466244155-1.77346624415524
117102.8101.7775083915611.02249160843928
118103102.5823476123340.41765238766645
119102.6102.911096542368-0.311096542367778
120102.2102.666221477695-0.466221477694532


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121102.29924210327498.8707257081588105.727758498389
122102.29924210327497.9360162399012106.662467966647
123102.29924210327497.168866366738107.42961783981
124102.29924210327496.5023661807388108.096118025809
125102.29924210327495.904964526839108.693519679709
126102.29924210327495.3587953606117109.239688845936
127102.29924210327494.8525773296345109.745906876914
128102.29924210327494.3786467017783110.21983750477
129102.29924210327493.9315156033562110.666968603192
130102.29924210327493.5070943542505111.091389852298
131102.29924210327493.1022383898959111.496245816652
132102.29924210327492.7144681066102111.884016099938
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/1runv1294148928.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/1runv1294148928.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/2nem61294148928.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/2nem61294148928.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/31d0u1294148928.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/04/t1294149107z8io3nl8sx8ntho/31d0u1294148928.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