Home » date » 2009 » Jun » 02 »

Exponential Smoothing - Koers BEL 20 van Januari 2000 tot Januari 2009 - Claus Wesley

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 01:41:47 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt.htm/, Retrieved Tue, 02 Jun 2009 09:43:26 +0200
 
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/2009/Jun/02/t12439286024q0yhdl9etcouyt.htm/},
    year = {2009},
}
@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 = {2009},
    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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
1635,25 1765,9 1833,42 1862,83 1905,41 1910,43 1940,49 1946,81 1959,67 1969,6 1995,37 2014,45 2042 2061,41 2065,81 2091,48 2120,88 2174,56 2196,72 2197,82 2214,95 2304,98 2350,44 2407,6 2408,64 2440,25 2448,05 2452,62 2472,81 2497,84 2555,28 2604,42 2638,53 2641,65 2645,64 2659,81 2720,25 2735,7 2745,88 2756,76 2767,63 2794,83 2799,43 2803,47 2811,7 2833,18 2845,26 2848,96 2849,27 2863,36 2882,6 2892,63 2897,06 2915,02 2921,44 2962,34 2981,85 2987,1 2995,55 3012,61 3013,24 3030,29 3032,6 3032,93 3045,78 3047,03 3061,26 3080,58 3097,31 3106,22 3110,52 3119,31 3142,95 3161,69 3257,16 3277,01 3295,32 3363,99 3494,17 3504,37 3570,12 3667,03 3674,4 3701,61 3720,98 3801,06 3801,06 3813,06 3844,49 3857,62 3862,27 3895,51 3917,96 3970,1 4105,18 4116,68 4138,52 4199,75 4202,52 4290,89 4296,49 4356,98 4435,23 4443,91 4502,64 4562,84 4591,27 4621,4 4696,96
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0887765523093223
gamma0.518290651633152


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1320421916.84015491453125.159845085471
142061.412073.58958995384-12.1795899538370
152065.812076.94791128253-11.1379112825284
162091.482098.11370925227-6.63370925227082
172120.882122.76687474917-1.8868747491656
182174.562173.872281180960.687718819038764
192196.722228.46166782001-31.7416678200075
202197.822201.51041865307-3.69041865306599
212214.952216.08779600847-1.13779600846965
222304.982232.9726197349472.0073802650613
232350.442345.940186695704.49981330430319
242407.62383.6313312735623.9686687264434
252408.642449.6908537132-41.0508537132
262440.252439.493167117850.756832882145773
272448.052456.19993946514-8.14993946514005
282452.622481.03099927123-28.4109992712279
292472.812482.6508520416-9.8408520415992
302497.842523.84013179223-26.0001317922256
312555.282547.410263065467.86973693454229
322604.422559.2555778447545.1644221552451
332638.532626.2101195307412.3198804692597
342641.652661.269669377-19.6196693769971
352645.642679.19290277226-33.5529027722582
362659.812672.03585841083-12.2258584108349
372720.252691.8921555187628.3578444812356
382735.72747.2563338494-11.5563338493994
392745.882746.70998570625-0.829985706248408
402756.762774.57088577011-17.8108857701141
412767.632783.4417800712-15.8117800712025
422794.832814.78098141727-19.9509814172734
432799.432841.05813540519-41.6281354051944
442803.472795.669199731527.80080026847736
452811.72814.20672788461-2.50672788461179
462833.182822.0700225587711.1099774412291
472845.262861.08132805224-15.8213280522368
482848.962863.58843176147-14.6284317614727
492849.272872.76143669066-23.4914366906628
502863.362863.39261459914-0.0326145991393787
512882.62862.5093025208120.0906974791924
522892.632901.28746870983-8.65746870983185
532897.062910.12097181938-13.0609718193814
542915.022935.26438043811-20.2443804381132
552921.442952.27548747251-30.8354874725128
562962.342909.6646858725952.6753141274071
572981.852969.0460186526412.8039813473647
582987.12989.54854530582-2.44854530581961
592995.553011.12617189540-15.5761718953950
603012.613010.025039723012.58496027698720
613013.243034.08619025093-20.8461902509262
623030.293025.272204018335.01779598166922
633032.63027.797249979114.80275002089047
643032.933048.2882049009-15.3582049009001
653045.783046.82683975347-1.04683975347189
663047.033081.45682159600-34.4268215960042
673061.263080.49886040108-19.2388604010766
683080.583046.7275673709833.8524326290240
693097.313082.8578696270614.4521303729357
703106.223100.726713268435.49328673156879
713110.523126.66938832531-16.1493883253056
723119.313121.36736797455-2.05736797454892
733142.953136.74638860566.20361139439774
743161.693153.343790503738.3462094962697
753257.163157.8543215409999.3056784590049
763277.013279.89492063266-2.88492063265585
773295.323299.06089065854-3.74089065853696
783363.993338.9117039499725.0782960500283
793494.173410.6564019444283.513598055581
803504.373501.957117917412.41288208259266
813570.123526.1763252698343.9436747301711
823667.033595.6833265415171.3466734584918
833674.43715.47223822989-41.0722382298923
843701.613711.02765319088-9.4176531908829
853720.983744.17325307642-23.1932530764170
863801.063753.8909026981247.1690973018781
873801.063823.18799586546-22.1279958654600
883813.063838.97813201634-25.9181320163420
893844.493848.24929294697-3.75929294696743
903857.623901.21847254668-43.5984725466801
913862.273911.32628380137-49.056283801367
923895.513865.3279027230430.1820972769592
933917.963915.052365260752.90763473924517
943970.13937.6163283816132.4836716183877
954105.184009.1851167542495.9948832457599
964116.684144.6188781948-27.9388781948019
974138.524160.41022757995-21.8902275799446
984199.754172.713555312827.0364446872036
994202.524221.37334099216-18.8533409921629
1004290.894240.224189712750.6658102873016
1014296.494332.6642090033-36.1742090032985
1024356.984356.925704112130.0542958878668287
1034435.234418.2688576472016.9611423528031
1044443.914451.73127605517-7.82127605517326
1054502.644473.5219301323429.1180698676644
1064562.844534.6927653184228.147234681579
1074591.274613.93657977049-22.6665797704927
1084621.44632.18598563249-10.7859856324922
1094696.964668.1301096814528.8298903185523


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
1104738.656194614054675.74028158354801.5721076446
1114765.381972561444672.37202726424858.39191785867
1124809.862333842154690.951829201734928.77283848258
1134853.914778456214710.780640808814997.0489161036
1144919.840139736924753.238025880225086.44225359363
1154986.613834350984796.854113290685176.37355541127
1165007.094195631694794.239225699595219.9491655638
1175041.379556912414805.341173415315277.41794040952
1185075.520751526464816.114145610325334.92735744261
1195126.206946140524843.182849939365409.23104234167
1205168.724807421234861.789849042075475.6597658004
1215218.014335368624886.844483471115549.18418726612
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/1muqk1243928504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/1muqk1243928504.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/27fxv1243928504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/27fxv1243928504.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/3drwi1243928504.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439286024q0yhdl9etcouyt/3drwi1243928504.ps (open in new window)


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