Home » date » 2010 » Dec » 18 »

Exponential smoothing triple additive

*The author of this computation has been verified*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sat, 18 Dec 2010 13:01:41 +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/18/t1292677160i7aaoeaxv4xr6x1.htm/, Retrieved Sat, 18 Dec 2010 13:59:20 +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/18/t1292677160i7aaoeaxv4xr6x1.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
37 30 47 35 30 43 82 40 47 19 52 136 80 42 54 66 81 63 137 72 107 58 36 52 79 77 54 84 48 96 83 66 61 53 30 74 69 59 42 65 70 100 63 105 82 81 75 102 121 98 76 77 63 37 35 23 40 29 37 51 20 28 13 22 25 13 16 13 16 17 9 17 25 14 8 7 10 7 10 3
 
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
alpha0.380859354911949
beta0.0316088853012832
gamma0.733581043314767


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
138065.953525641025614.0464743589744
144232.44671481725949.55328518274057
155447.13530513160886.86469486839122
166660.59089490800945.40910509199063
178179.72389409402421.27610590597584
186369.423164327768-6.42316432776798
19137111.48776994845925.5122300515414
207280.189065931405-8.18906593140491
2110786.456323671552420.5436763284476
225868.1223642893237-10.1223642893237
233697.1537646423697-61.1537646423697
2452157.471510088703-105.471510088703
257965.853803915797913.1461960842021
267728.650494978251348.3495050217487
275456.0480501431283-2.04805014312831
288464.494919076741719.5050809232583
294886.335926809278-38.335926809278
309656.191372995914739.8086270040853
3183129.66480326721-46.6648032672097
326653.997391331061812.0026086689382
336179.6754118037346-18.6754118037346
345330.674606122688322.3253938773117
353047.4750331631063-17.4750331631063
3674103.414328539598-29.4143285395985
376994.669052063968-25.669052063968
385958.23468268166160.765317318338404
394243.6095578051338-1.60955780513378
406561.00818314123113.99181685876892
417049.47880334993920.521196650061
4210076.760334137802423.2396658621976
4363103.965837074185-40.9658370741847
4410556.50154942883848.498450571162
458281.97154136393350.0284586360665458
468158.767430267250622.2325697327494
477557.505438458555717.4945615414443
48102121.8113910067-19.8113910066999
49121119.0110215464271.9889784535731
5098106.036128029636-8.03612802963619
517687.7937238475087-11.7937238475087
5277104.548576897231-27.5485768972311
536388.825394332414-25.825394332414
543799.4433230770021-62.4433230770021
553563.5759025308791-28.5759025308791
562360.3350961492459-37.3350961492459
574028.937578654056711.0624213459433
582917.991147653546811.0088523464532
59378.1378362318411228.8621637681589
605157.8014044626901-6.80140446269012
612067.986280314366-47.986280314366
622828.9516752372214-0.95167523722138
63139.313210565710433.68678943428957
642222.6070517338614-0.607051733861354
652516.05057370461348.94942629538664
661321.8230856739734-8.82308567397342
671620.9469405271601-4.94694052716012
681322.1988348561951-9.19883485619508
691623.3093821664561-7.30938216645614
70174.9308234847158712.0691765152841
7193.192179909831775.80782009016823
721727.2017554894693-10.2017554894693
732516.66938856480168.33061143519844
741420.4077763690549-6.40777636905491
7580.6939026255995497.30609737440045
76713.3553977851453-6.35539778514529
77108.820287664652811.17971233534719
7873.338225050027363.66177494997264
79108.904549139224041.09545086077596
80310.526306643243-7.52630664324296


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8113.1518860780322-37.446598918901763.750371074966
826.4665766273601-47.897222023731660.8303752784518
83-2.75000728511186-60.846725736893155.3467111666694
8411.6688643515531-50.140253426643973.47798212975
8513.4546037022275-52.055546076289278.9647534807443
867.24134529397715-61.965654558540376.4483451464945
87-3.811053389558-76.716447137440269.0943403583242
88-0.232709452868718-76.842660726268576.377241820531
891.05592991449164-79.268509091267881.3803689202511
90-3.78144524583877-87.833400150126380.2705096584488
91-0.852758842782082-88.647824662603186.942306977039
92-3.65473445255916-95.210646124497387.901177219379
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/1oqmu1292677297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/1oqmu1292677297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/2zz3x1292677297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/2zz3x1292677297.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/3zz3x1292677297.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677160i7aaoeaxv4xr6x1/3zz3x1292677297.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