Home » date » 2011 » Jan » 16 »

Exponential smoothing (Single, Additief) Bel20

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 16 Jan 2011 14:23:51 +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/16/t12951878187bhin2fdlb8a068.htm/, Retrieved Sun, 16 Jan 2011 15:23:39 +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/16/t12951878187bhin2fdlb8a068.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
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2981,85 3080,58 3106,22 3119,31 3061,26 3097,31 3161,69 3257,16 3277,01 3295,32 3363,99 3494,17 3667,03 3813,06 3917,96 3895,51 3801,06 3570,12 3701,61 3862,27 3970,1 4138,52 4199,75 4290,89 4443,91 4502,64 4356,98 4591,27 4696,96 4621,4 4562,84 4202,52 4296,49 4435,23 4105,18 4116,68 3844,49 3720,98 3674,4 3857,62 3801,06 3504,37 3032,6 3047,03 2962,34 2197,82 2014,45 1862,83 1905,41 1810,99 1670,07 1864,44 2052,02 2029,6 2070,83 2293,41 2443,27 2513,17 2466,92 2502,66
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.99995731091006
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
23080.582981.8598.73
33106.223080.5757853061525.6442146938498
43119.313106.2189052718113.0910947281877
53061.263119.30944115308-58.0494411530794
63097.313061.2624780778136.0475219221853
73161.693097.3084611640964.3815388359058
83257.163161.687251610795.4727483893016
93277.013257.1559243552619.8540756447433
103295.323277.0091524475818.3108475524209
113363.993295.3192183265868.6707816734179
123494.173363.98706850682130.182931493176
133667.033494.16444260913172.865557390871
143813.063667.02262052667146.037379473327
153917.963813.05376579717104.906234202827
163895.513917.95552164833-22.4455216483325
173801.063895.51095817889-94.4509581788925
183570.123801.06403202545-230.944032025448
193701.613570.12985879055131.480141209446
203862.273701.60438723243160.665612767573
213970.13862.26314133121107.836858668793
224138.523970.09539654264168.424603457359
234199.754138.5128101069561.2371898930451
244290.894199.7473858400991.1426141599077
254443.914290.88610920475153.023890795253
264502.644443.9034675493658.7365324506372
274356.984502.63749259088-145.657492590884
284591.274356.9862179858234.283782014199
294696.964591.25999863856105.700001361442
304621.44696.95548776314-75.5554877631357
314562.844621.40322539501-58.5632253950125
324202.524562.8425000108-360.322500010796
334296.494202.5353818396193.9546181603891
344435.234296.48598916285138.744010837145
354105.184435.22407714444-330.044077144442
364116.684105.1940892812911.4859107187067
373844.494116.67950967692-272.189509676925
383720.983844.50161952246-123.521619522459
393674.43720.98527302553-46.5852730255251
403857.623674.40198868291183.21801131709
413801.063857.61217858984-56.5521785898363
423504.373801.06241416104-296.692414161038
433032.63504.38266552915-471.782665529153
443047.033032.6201399726414.4098600273592
452962.343047.02938485619-84.6893848561895
462197.822962.34361531277-764.523615312767
472014.452197.85263681738-183.402636817376
481862.832014.45782929166-151.627829291658
491905.411862.8364728540442.5735271459582
501810.991905.40818257487-94.4181825748706
511670.071810.99403062629-140.924030626288
521864.441670.07601591862194.363984081382
532052.021864.4317027784187.588297221597
542029.62052.01199202631-22.4119920263083
552070.832029.6009567475441.2290432524567
562293.412070.82823996966222.581760030335
572443.272293.40049818723149.869501812773
582513.172443.2636022073669.9063977926421
592466.922513.1670157595-46.2470157594971
602502.662466.9219742430235.7380257569844


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
612502.65847437622145.050473722622860.26647502979
622502.65847437621996.935184387483008.38176436492
632502.65847437621883.2808755383122.03607321441
642502.65847437621787.4653718873217.85157686541
652502.65847437621703.049984080053302.26696467236
662502.65847437621626.732506237773378.58444251464
672502.65847437621556.551257637623448.76569111478
682502.65847437621491.228086524243514.08886222817
692502.65847437621429.875181545853575.44176720656
702502.65847437621371.846130403293633.47081834911
712502.65847437621316.652942691353688.66400606106
722502.65847437621263.916497573683741.40045117873
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/1lxa91295187828.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/1lxa91295187828.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/2japd1295187828.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/2japd1295187828.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/3u84b1295187828.png (open in new window)
http://www.freestatistics.org/blog/date/2011/Jan/16/t12951878187bhin2fdlb8a068/3u84b1295187828.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