Home » date » 2010 » Jan » 18 »

Exponential Smoothing gemiddelde consumptieprijs Cola-limonade

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 18 Jan 2010 06:41:19 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk.htm/, Retrieved Mon, 18 Jan 2010 14:43:09 +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/2010/Jan/18/t1263822185rofp3qw8j1b92uk.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W61
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,14 1,15 1,15 1,14 1,14 1,14 1,15 1,14 1,14 1,15 1,15 1,14 1,15 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,17 1,18 1,19 1,19 1,19 1,19 1,18 1,19 1,19 1,2 1,21 1,21 1,2 1,21 1,21 1,21 1,21 1,21 1,21 1,2 1,21 1,22 1,22 1,23 1,22 1,23 1,23 1,23 1,23 1,23 1,22 1,22 1,23 1,24 1,24 1,25 1,25 1,25 1,26 1,26 1,26 1,26 1,27 1,27 1,29 1,31 1,32 1,32 1,33 1,33 1,32 1,32 1,31 1,3 1,31 1,29 1,3 1,3 1,32 1,31 1,35 1,35 1,36 1,37 1,37 1,37 1,32 1,32 1,31 1,31 1,34 1,31 1,26 1,27 1,24 1,25 1,27 1,25 1,26 1,27 1,26 1,26 1,28 1,27 1,28 1,27 1,26 1,27 1,27 1,28 1,27 1,26 1,3 1,31 1,28 1,29 1,31 1,29 1,29 1,32 1,3 1,29 1,31 1,29 1,33 1,35 1,32 1,33
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.812685219892519
beta0.060457480341854
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
31.151.16-0.01
41.141.16138181879402-0.0213818187940171
51.141.15246325089893-0.0124632508989266
61.141.15018031564590-0.0101803156458962
71.151.149252499693190.000747500306808258
81.141.15724228510931-0.0172422851093077
91.141.14976487432649-0.0097648743264922
101.151.147884468169250.00211553183075197
111.151.15576303471770-0.00576303471769624
121.141.15695565206573-0.0169556520657328
131.151.148219114353760.00178088564623979
141.171.154796983989890.0152030160101084
151.171.17302978886826-0.00302978886826222
161.171.17629620038917-0.00629620038917333
171.171.17659869695641-0.00659869695640825
181.171.17633114591204-0.00633114591203654
191.171.17596996208354-0.00596996208354295
201.171.17560898545986-0.00560898545986221
211.171.17526578347731-0.00526578347731399
221.171.17494277345669-0.00494277345669181
231.171.17463941610825-0.0046394161082477
241.171.17435464482225-0.00435464482225068
251.171.17408734661977-0.00408734661977261
261.181.173836454520130.00616354547986719
271.191.182219143788640.00778085621135882
281.191.19229849362024-0.00229849362024481
291.191.19407357315876-0.00407357315876156
301.191.19420592532667-0.00420592532666531
311.181.19402406753244-0.0140240675324419
321.191.185174107563220.00482589243678144
331.191.19188034155046-0.00188034155046157
341.21.193044131660440.0069558683395603
351.211.201730740936360.0082692590636435
361.211.21189101612616-0.00189101612616405
371.21.21370127473161-0.0137012747316145
381.211.205240327354380.00475967264562382
391.211.21201617557932-0.00201617557932243
401.211.21318633154508-0.00318633154507553
411.211.21324896534107-0.00324896534107211
421.211.21310106648530-0.00310106648529729
431.211.21292099845195-0.0029209984519456
441.21.21274375192097-0.0127437519209728
451.211.203957561329320.00604243867067855
461.221.210735512708820.00926448729118379
471.221.22058716651414-0.000587166514138149
481.231.222403677686340.0075963223136597
491.221.23124401862602-0.0112440186260154
501.231.224220641695590.00577935830440524
511.231.2313158682269-0.00131586822689966
521.231.23258025660149-0.00258025660148942
531.231.23269031974045-0.00269031974044998
541.231.23257875298045-0.00257875298044796
551.221.23243115326320-0.0124311532631978
561.221.22366587483675-0.00366587483675307
571.231.221843893571370.0081561064286313
581.241.230030194917510.00996980508248768
591.241.24018030779616-0.000180307796157742
601.251.242072714913040.00792728508695784
611.251.25094353344598-0.000943533445983968
621.251.25255881033374-0.00255881033374128
631.261.252735653794730.00726434620526839
641.261.26125254978846-0.00125254978846168
651.261.26278634888434-0.00278634888433982
661.261.26293675072165-0.00293675072164734
671.271.262820632127130.00717936787287399
681.271.27127847676588-0.00127847676588044
691.291.272799940802580.0172000591974206
701.311.290183726702590.0198162732974145
711.321.310667302122010.00933269787798885
721.321.32308957326460-0.00308957326459747
731.331.325264648555670.00473535144432624
741.331.33403158605679-0.004031586056785
751.321.33547567950961-0.0154756795096069
761.321.32685896233355-0.00685896233355199
771.311.32490792313519-0.0149079231351921
781.31.31568314295071-0.0156831429507140
791.311.305057794774640.00494220522535782
801.291.31143718709501-0.0214371870950059
811.31.295325165981910.00467483401808622
821.31.30066368664458-0.000663686644579942
831.321.301631061618600.0183689383814016
841.311.31896848887255-0.0089684888725523
851.351.313648545174070.0363514548259252
861.351.346945502306180.00305449769381649
871.361.353332590841530.00666740915847086
881.371.362983428277130.00701657172287273
891.371.37326276948991-0.00326276948990945
901.371.37502793269946-0.00502793269945823
911.321.37511153693983-0.0551115369398307
921.321.3317851465829-0.0117851465828993
931.311.32309043486348-0.0130904348634793
941.311.31269176361439-0.00269176361439039
951.341.310611684641570.0293883153584322
961.311.33604654488336-0.0260465448833587
971.261.31515057123636-0.0551505712363562
981.271.267892477992490.00210752200751174
991.241.26727073951667-0.0272707395166698
1001.251.241433831577170.00856616842283353
1011.271.245141929749290.0248580702507060
1021.251.26331156483824-0.0133115648382387
1031.261.249807265848270.0101927341517285
1041.271.255905361846380.0140946381536176
1051.261.26586698801315-0.00586698801315366
1061.261.259317833489680.000682166510322268
1071.281.258124596869640.0218754031303605
1081.271.27522959242229-0.00522959242229382
1091.281.270049813658840.00995018634116263
1101.271.27769529825518-0.00769529825518456
1111.261.27062246599717-0.0106224659971661
1121.271.260648855212000.00935114478799615
1131.271.267366951568180.00263304843181733
1141.281.268754719617040.0112452803829648
1151.271.27769403452734-0.00769403452733597
1161.261.27086361790069-0.0108636179006871
1171.31.260923566653680.0390764333463214
1181.311.293488995455330.0165110045446704
1191.281.30852706733619-0.0285270673361875
1201.291.285561746300160.00443825369984041
1211.311.289604918717460.0203950812825353
1221.291.30761803857114-0.0176180385711400
1231.291.29387283241798-0.00387283241798464
1241.321.291107868659230.0288921313407686
1251.31.31639006089787-0.0163900608978749
1261.291.30406679354518-0.0140667935451844
1271.311.292940468861380.0170595311386199
1281.291.3079482324472-0.0179482324471998
1291.331.293623855262660.0363761447373399
1301.351.32523536200330.0247646379966995
1311.321.34862712733485-0.0286271273348464
1321.331.327221660312640.0027783396873593


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1331.331475460051191.303254285277811.35969663482457
1341.333471344189981.296215860953561.3707268274264
1351.335467228328771.290202696438961.38073176021859
1361.337463112467561.284708961851571.39021726308356
1371.339458996606351.279507483157881.39941051005483
1381.341454880745141.274475228809681.40843453268061
1391.343450764883931.269537876382221.41736365338565
1401.345446649022731.264647186412351.42624611163311
1411.347442533161521.259770227150311.43511483917272
1421.349438417300311.254883668134511.44399316646611
1431.35143430143911.249970512543101.45289809033510
1441.353430185577891.245018110158021.46184226099776
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/1wcg21263822077.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/1wcg21263822077.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/2xjaa1263822077.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/2xjaa1263822077.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/3qla31263822077.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jan/18/t1263822185rofp3qw8j1b92uk/3qla31263822077.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=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