Home » date » 2010 » Dec » 20 »

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 20 Dec 2010 19:50:00 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209.htm/, Retrieved Mon, 20 Dec 2010 20:49:11 +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/Dec/20/t1292874550jj984ixm1hfq209.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:
KDGP2W102 - Sofie Baert
 
Dataseries X:
» Textbox « » Textfile « » CSV «
6,59 6,59 6,59 6,59 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,63 6,79 6,79 6,79 6,81 6,80 6,80 6,85 6,85 6,85 6,85 6,85 6,85 6,86 6,86 6,88 6,88 6,88 6,91 6,91 6,91 6,91 6,99 6,99 6,99 7,02 7,02 7,05 7,05 7,05 7,05 7,10 7,10 7,10 7,10 7,12 7,13 7,18 7,24 7,24 7,24 7,27 7,27 7,27 7,27 7,30 7,30 7,57 7,76 7,94 7,94 7,96
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.153603670908544
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
36.596.590
46.596.590
56.636.590.04
66.636.63614414683634-0.00614414683634212
76.636.63520038332768-0.00520038332767836
86.636.63440158535842-0.00440158535841562
96.636.63372548568955-0.00372548568954567
106.636.63315323741171-0.00315323741171447
116.636.63266888857003-0.002668888570029
126.636.63225893748843-0.00225893748842676
136.636.63191195639785-0.00191195639785136
146.636.63161827287652-0.00161827287652461
156.636.63136970022216-0.00136970022215799
166.636.63115930923999-0.00115930923999041
176.636.63098123508501-0.00098123508500958
186.636.63083051377393-0.000830513773927954
196.636.63070294380951-0.000702943809512746
206.636.63059496905993-0.000594969059928729
216.636.63050357962825-0.000503579628246875
226.796.630426227948750.159573772051247
236.796.81493734511655-0.0249373451165482
246.796.81110687736393-0.0211068773639331
256.816.807864783519420.00213521648058279
266.86.82819276060902-0.0281927606090182
276.86.81386224908643-0.0138622490864275
286.856.81173295673970.0382670432602961
296.856.8676109150593-0.0176109150593016
306.856.86490581385813-0.0149058138581344
316.856.86261622613165-0.0126162261316454
326.856.86067832748481-0.0106783274848121
336.856.85903809718398-0.00903809718398119
346.866.85764981227850.00235018772150664
356.866.86801080973984-0.00801080973984103
366.886.866780319956850.0132196800431474
376.886.88881091133972-0.00881091133971612
386.886.88745752301389-0.00745752301388602
396.916.886312020103070.0236879798969323
406.916.91995058077165-0.0099505807716449
416.916.91842213503745-0.00842213503744826
426.916.91712846417881-0.00712846417880808
436.996.9160335059130.0739664940869966
446.997.007395030929-0.0173950309290012
456.997.00472309032274-0.0147230903227387
467.027.002461569602050.0175384303979511
477.027.03515553689315-0.0151555368931477
487.057.032827590791770.0171724092082304
497.057.0654653358845-0.0154653358844978
507.057.0630898035208-0.0130898035208054
517.057.06107916164854-0.0110791616485377
527.17.059377361748730.040622638251266
537.17.11561714810612-0.0156171481061183
547.17.1132182968279-0.0132182968278958
557.17.11118791791197-0.0111879179119718
567.127.109469412650870.0105305873491304
577.137.13108694952452-0.00108694952451938
587.187.140919990087460.0390800099125386
597.247.196922823069170.0430771769308311
607.247.26353963557812-0.0235396355781221
617.247.25992386114147-0.0199238611414732
627.277.256863482931470.0131365170685287
637.277.28888130017615-0.0188813001761492
647.277.28598106315757-0.0159810631575663
657.277.28352631319154-0.0135263131915435
667.37.281448621831460.0185513781685369
677.37.31429818161856-0.014298181618563
687.577.312101928434640.257898071565365
697.767.621716018947310.13828398105269
707.947.832956946064850.107043053935151
717.948.02939915209455-0.0893991520945514
727.968.01566711415672-0.0556671141567167


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
738.027116441073367.93460224505358.11963063709323
748.094232882146727.95299180632148.23547395797205
758.161349323220087.975407469756618.34729117668355
768.228465764293447.998598958649928.45833256993696
778.29558220536688.021454414607778.56970999612583
788.362698646440168.043480629056138.68191666382419
798.429815087513528.064431840813028.79519833421402
808.496931528586888.084179488651278.90968356852248
818.564047969660248.10265658602649.02543935329408
828.63116441073368.119830779925699.1424980415415
838.698280851806968.13569010930759.26087159430641
848.765397292880328.150234979902369.38055960585827
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/1dv5v1292874594.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/1dv5v1292874594.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/264my1292874594.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/264my1292874594.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/364my1292874594.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/20/t1292874550jj984ixm1hfq209/364my1292874594.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Double ; par3 = multiplicative ;
 
Parameters (R input):
par1 = 12 ; par2 = Double ; 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=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