Home » date » 2010 » Dec » 09 »

*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: Thu, 09 Dec 2010 16:35:12 +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/09/t1291912375fw1f4rorjcoj5tp.htm/, Retrieved Thu, 09 Dec 2010 17:32:56 +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/09/t1291912375fw1f4rorjcoj5tp.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.365156398722376
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
23037-7
34734.443905208943412.5560947910566
43539.0288435648624-4.02884356486239
53037.5576855577014-7.55768555770143
64334.79794831677518.20205168322494
78237.792979971556344.2070200284437
84053.9354562033907-13.9354562033907
94748.8468352016072-1.84683520160717
101948.1724515103546-29.1724515103546
115237.519944174930414.4800558250696
1213642.807429213311893.1925707866882
138076.83729274945893.1627072505411
144277.9921755392796-35.9921755392796
155464.8494023371727-10.8494023371727
166660.88767365144065.11232634855941
178162.754472329974118.2455276700259
186369.4169435067502-6.41694350675019
1913767.073755525020469.9262444749796
207292.6077711336843-20.6077711336843
2110785.082711640813221.9172883591868
225893.0859497278137-35.0859497278137
233680.274090679451-44.2740906794509
245264.1071231702347-12.1071231702347
257959.686129674503619.3138703254964
267766.738713007952810.2612869920472
275470.4856876122255-16.4856876122255
288464.465833293283219.5341667067168
294871.5988592599504-23.5988592599504
309662.981584798630733.0184152013693
318375.03847038508297.96152961491713
326677.9456738675876-11.9456738675876
336173.5836346177873-12.5836346177873
345368.9886399179179-15.9886399179179
353063.1502857450222-33.1502857450222
367451.045246785752222.9547532142478
376959.42732180302789.57267819697222
385962.9228464995624-3.92284649956236
394261.4903939990415-19.4903939990415
406554.373351916671310.6266480833287
417058.253740461269611.7462595387304
4210062.542962292890837.4570377071092
436376.220639288827-13.220639288827
4410571.393038257311433.6069617426886
458283.6648353792722-1.66483537927222
468183.0569100877116-2.05691008771157
477582.3058162075871-7.30581620758709
4810279.63805067149722.361949328503
4912187.803659556705433.1963404432946
509899.9255156837408-1.92551568374081
517699.2224013109826-23.2224013109826
527790.7425928785784-13.7425928785784
536385.724397153929-22.7243971539289
543777.4264381260632-40.4264381260632
553562.664465566777-27.664465566777
562352.5626089478336-29.5626089478336
574041.7676331276048-1.76763312760479
582941.1221705804663-12.1221705804663
593736.69568242660490.304317573395132
605136.806805935773814.1931940642262
612041.9895415666344-21.9895415666344
622833.9599197586062-5.9599197586062
631331.7836169228792-18.7836169228792
642224.92465901234-2.92465901233998
652523.8567010599031.14329894009703
661324.2741839835319-11.2741839835319
671620.1573435615719-4.15734356157191
681318.6392629583767-5.63926295837666
691616.5800500050473-0.580050005047347
701716.36824103412540.631758965874639
71916.5989318629647-7.59893186296472
721713.82413326974783.17586673025219
732514.983821327788910.0161786722111
741418.6412930606934-4.64129306069337
75816.9464952012354-8.94649520123543
76713.6796252323653-6.67962523236528
771011.2405173376997-1.24051733769967
78710.7875344941126-3.78753449411259
79109.404492038205660.59550796179434
8039.62194558094498-6.62194558094498


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
817.20389978007156-36.933000232125451.3407997922685
827.20389978007156-39.783539906719254.1913394668624
837.20389978007156-42.470772176096756.8785717362399
847.20389978007156-45.019912600738659.4277121608818
857.20389978007156-47.4502869325661.8580864927031
867.20389978007156-49.777094163982564.1848937241256
877.20389978007156-52.012544021337666.4203435814808
887.20389978007156-54.166620521768768.5744200819118
897.20389978007156-56.247611689330970.655411249474
907.20389978007156-58.262487422712572.6702869828556
917.20389978007156-60.217175552631274.6249751127743
927.20389978007156-62.116767734394276.5245672945373
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/1e55u1291912508.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/1e55u1291912508.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/206lz1291912508.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/206lz1291912508.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/306lz1291912508.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/09/t1291912375fw1f4rorjcoj5tp/306lz1291912508.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