Home » date » 2008 » May » 27 »

exponential smoothing gemiddelde consumptieprijzen mineraalwater - Rebecca De Cauwer

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 12:54:41 -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/27/t1211914613bqb3hvov8t0ncv2.htm/, Retrieved Tue, 27 May 2008 20:56:53 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1,12 1,12 1,12 1,13 1,13 1,13 1,14 1,14 1,14 1,14 1,14 1,15 1,15 1,17 1,17 1,18 1,18 1,18 1,18 1,18 1,18 1,19 1,19 1,19 1,19 1,19 1,2 1,21 1,21 1,21 1,21 1,21 1,23 1,24 1,24 1,24 1,27 1,28 1,29 1,29 1,3 1,31 1,31 1,31 1,32 1,32 1,33 1,33 1,34 1,35 1,36 1,37 1,37 1,37 1,37 1,37 1,38 1,38 1,39 1,39 1,39 1,41 1,42 1,42 1,42 1,43 1,43 1,44 1,46 1,46 1,47 1,47 1,47 1,48 1,49 1,49 1,5 1,5 1,51 1,52 1,53 1,53 1,53 1,54
 
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
alpha0.759655664815453
beta0.044937528401639
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.151.127748412910290.0222515870897062
141.171.165269847164940.00473015283505496
151.171.169720696198520.000279303801478337
161.181.18038026833481-0.000380268334809974
171.181.18010511594078-0.000105115940782996
181.181.18045345413021-0.000453454130213471
191.181.18093696889368-0.000936968893684664
201.181.1818509133503-0.0018509133502993
211.181.18241938937945-0.00241938937945396
221.191.19207223355274-0.00207223355274166
231.191.19191034063664-0.00191034063663831
241.191.19180347375300-0.00180347375299506
251.191.19324618402795-0.00324618402795362
261.191.20726961663339-0.0172696166333872
271.21.192748713054130.00725128694587274
281.211.207827203145500.00217279685449712
291.211.208679346630520.00132065336947784
301.211.209206153900460.000793846099539364
311.211.209754102752590.000245897247410198
321.211.21063980567670-0.000639805676704075
331.231.211338932255020.0186610677449845
341.241.237505954583730.00249404541626941
351.241.24102933090185-0.00102933090184676
361.241.24182235135665-0.00182235135665354
371.271.243155582542810.0268444174571874
381.281.278547666462400.00145233353760288
391.291.286223812413830.00377618758617393
401.291.29968527029284-0.00968527029284272
411.31.292486822829130.00751317717087008
421.311.298964627046500.0110353729535040
431.311.308879306891620.0011206931083807
441.311.31200807273773-0.00200807273772763
451.321.318441687840660.00155831215933699
461.321.32943417942494-0.00943417942494151
471.331.323826771787200.00617322821280308
481.331.33094975351980-0.000949753519796648
491.341.34140676183843-0.00140676183843169
501.351.349762202456250.000237797543754859
511.361.357456285363140.00254371463686032
521.371.367077548739060.0029224512609376
531.371.37420497360625-0.00420497360625105
541.371.37267651700804-0.00267651700803784
551.371.369289720368530.000710279631471744
561.371.37095027998639-0.000950279986389413
571.381.379012500423400.000987499576595052
581.381.38678527581468-0.00678527581468247
591.391.386825041159940.00317495884005803
601.391.389532528707180.0004674712928181
611.391.40104198283157-0.0110419828315653
621.411.402148098619780.00785190138022474
631.421.416054443341840.00394555665815766
641.421.42673714751333-0.00673714751333354
651.421.42419946559852-0.00419946559851736
661.431.422394926722030.00760507327797422
671.431.427215534753420.00278446524658116
681.441.429756090753280.0102439092467184
691.461.447268014297820.0127319857021790
701.461.46276466598419-0.00276466598418956
711.471.469221154425620.000778845574378684
721.471.469879096122690.000120903877314893
731.471.47925419800945-0.00925419800945382
741.481.48758814296854-0.00758814296853738
751.491.489186847532470.000813152467529221
761.491.49506919389382-0.00506919389381655
771.51.494530364148590.00546963585141191
781.51.50340991621185-0.00340991621184950
791.511.498514067049480.0114859329505226
801.521.509747364982710.0102526350172862
811.531.528564900629890.00143509937010777
821.531.53164817768346-0.00164817768345782
831.531.54009091682670-0.0100909168267043
841.541.531826304374900.00817369562509818


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
851.545128457930831.531073000350201.55918391551147
861.561743084461.54374988200821.5797362869118
871.571946037839131.550481324629391.59341075104888
881.576279587843981.551643038919611.60091613676834
891.582900703881331.555218626966881.61058278079577
901.585890455587451.555316784032211.61646412714270
911.587590093835021.554219307834241.62096087983580
921.589889040362321.553762168382241.62601591234241
931.598858707384191.559870461545721.63784695322266
941.599773122827751.558122006289541.64142423936596
951.607436819852431.562973877263261.65189976244161
961.61140351917486-0.7382311844526123.96103822280233
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211914613bqb3hvov8t0ncv2/1fwbe1211914475.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211914613bqb3hvov8t0ncv2/1fwbe1211914475.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211914613bqb3hvov8t0ncv2/2h7x71211914475.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211914613bqb3hvov8t0ncv2/2h7x71211914475.ps (open in new window)


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