Home » date » 2011 » May » 20 »

Exponential Smoothing Goudkoers Brussel

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 20 May 2011 06:19:33 +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/May/20/t13058721655llv3399k11piof.htm/, Retrieved Fri, 20 May 2011 08:16:09 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KEYWORD: KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
32819 32700 32242 32810 33865 32226 31077 31293 30236 30160 32436 30695 27525 26434 25739 25204 24977 24320 22680 22052 21467 21383 21777 21928 21814 22937 23595 20830 19650 19195 19644 18483 18079 19178 18391 18441 18584 20108 20148 19394 17745 17696 17032 16438 15683 15594 15713 15937 16171 15928 16348 15579 15305 15648 14954 15137 15839 16050 15168 17064 16005 14886 14931 14544 13812 13031 12574 11964 11451 11346 11353 10702 10646 10556 10463 10407 10625 10872 10805 10653 10574 10431 10383 10296 10872 10635 10297 10570 10662 10709 10413 10846 10371 9924 9828
 
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'Herman Ole Andreas Wold' @ www.yougetit.org


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.7808136475473
beta0.040561130325825
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132752531358.874732906-3833.874732906
142643427197.8825910096-763.882591009551
152573925821.2895271255-82.2895271254602
162520425114.954130642589.0458693575347
172497724931.969893641845.0301063582083
182432024285.627015791734.3729842083449
192268022733.0931941151-53.0931941150629
202205222554.7914222584-502.791422258426
212146720786.8103882778680.189611722151
222138321000.8924940857382.107505914311
232177723445.7046297082-1668.70462970819
242192820231.86564406671696.13435593329
252181417409.26524382284404.73475617721
262293720488.93636303642448.06363696365
272359522006.33933664331588.6606633567
282083022931.8478594936-2101.84785949362
291965021248.7379665465-1598.73796654655
301919519484.725111246-289.725111246014
311964417817.83773550821826.16226449177
321848319225.7119192389-742.711919238936
331807917739.4878990857339.512100914253
341917817821.2362500451356.76374995496
351839120807.438705644-2416.43870564398
361844117953.4797374407487.520262559286
371858414948.78177009323635.21822990683
382010817142.27373282372965.72626717628
392014819035.44553430741112.55446569259
401939418925.156313981468.843686019038
411774519585.8294210866-1840.8294210866
421769618138.3159405732-442.315940573171
431703217029.83447631942.16552368057819
441643816606.4550023145-168.455002314546
451568315980.0245178406-297.024517840551
461559415941.761680242-347.761680241987
471571316870.0670596217-1157.06705962173
481593715775.8901210466161.109878953383
491617113335.86055457912835.13944542092
501592814862.15918652441065.84081347562
511634814909.77646184311438.2235381569
521557914967.0875748674611.912425132628
531530515292.15906196712.8409380329704
541564815716.1959526223-68.1959526222818
551495415126.7495756887-172.749575688729
561513714653.3494573534483.650542646583
571583914652.51697077351186.48302922649
581605015953.06564940696.9343505939833
591516817256.8803628696-2088.88036286957
601706415900.21940874511163.78059125491
611600515037.1170064064967.882993593596
621488614866.410315447919.5896845520765
631493114294.3662643574636.633735642563
641454413634.9267262377909.073273762297
651381214160.3861779665-348.3861779665
661303114372.8385288407-1341.83852884072
671257412813.8894900441-239.889490044112
681196412477.7047619744-513.704761974364
691145111866.353210407-415.353210407
701134611640.7991209495-294.799120949516
711135312110.6828020543-757.682802054263
721070212499.5784613486-1797.57846134858
73106469180.680648500361465.31935149964
74105569105.69248581391450.3075141861
75104639746.49827189377716.50172810623
76104079172.143450018421234.85654998158
77106259649.68642771466975.313572285339
781087210693.1983367089178.801663291084
791080510626.5257435152178.474256484846
801065310633.646073911719.3539260883153
811057410553.611178337320.3888216627056
821043110802.0543132899-371.0543132899
831038311215.8641475573-832.864147557331
841029611420.6702388144-1124.67023881438
85108729466.226472512881405.77352748712
86106359463.423323756891171.57667624311
87102979838.89405343477458.105946565227
88105709281.355009887711288.64499011229
89106629850.67040216997811.329597830034
901070910693.025306295115.9746937049349
911041310595.4550488185-182.455048818514
921084610370.7605878589475.239412141114
931037110746.2330825674-375.233082567447
94992410686.7595721945-762.759572194485
95982810767.8819375799-939.881937579938


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9610896.16159465478345.2587971590213447.0643921503
9710481.12794446667194.3901247352913767.8657641979
989391.436582611475462.1117614434813320.7614037795
998720.728268780654200.6615747670513240.7949627943
1007998.015206200992919.6367964937513076.3936159082
1017426.184247677181811.0778119921413041.2906833622
1027404.681889529171267.7009032233113541.662875835
1037194.61025294456546.12719505226813843.0933108368
1047205.7802815433353.029203059548314358.5313600271
1056957.95968357163-694.10881831501414610.0281854583
1067052.60894591557-1095.5376988007115200.7555906319
1077660.71488590755-981.58375633650116303.0135281516
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/1d97i1305872371.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/1d97i1305872371.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/2ylea1305872371.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/2ylea1305872371.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/36kun1305872371.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/20/t13058721655llv3399k11piof/36kun1305872371.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=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