Home » date » 2010 » Dec » 07 »

*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: Tue, 07 Dec 2010 09:58:27 +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/07/t1291715800elkh2z8z8b5t1y0.htm/, Retrieved Tue, 07 Dec 2010 10:56:40 +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/07/t1291715800elkh2z8z8b5t1y0.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 «
46 62 66 59 58 61 41 27 58 70 49 59 44 36 72 45 56 54 53 35 61 52 47 51 52 63 74 45 51 64 36 30 55 64 39 40 63 45 59 55 40 64 27 28 45 57 45 69 60 56 58 50 51 53 37 22 55 70 62 58 39 49 58 47 42 62 39 40 72 70 54 65
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.00486104141907233
beta0.816160950605529
gamma0.253859759879226


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
134446.6829275162342-2.68292751623424
143637.4196383690258-1.41963836902578
157273.8547395004858-1.85473950048576
164546.5003158720121-1.50031587201206
175658.5293158416863-2.52931584168627
185456.6179340105627-2.61793401056273
195339.825869690735213.1741303092648
203526.7436464175698.25635358243098
216158.30266627102122.69733372897877
225270.667386235984-18.6673862359840
234749.8742525002373-2.87425250023728
245160.2580225998112-9.25802259981117
255243.88711655824388.11288344175625
266335.419364207753827.5806357922462
277470.68919633858383.31080366141622
284544.62910981452910.370890185470877
295156.2747338131084-5.2747338131084
306454.61095231604359.38904768395653
313642.3713431831259-6.37134318312594
323028.3315118057261.66848819427402
335558.0298335364493-3.02983353644935
346464.9666781000709-0.966678100070894
353948.6148066632519-9.61480666325193
364057.3813612933541-17.3813612933541
376345.554295734300817.4457042656992
384542.15560803022532.84439196977471
395970.9117520359552-11.9117520359552
405544.241096990614810.7589030093852
414054.3989780908847-14.3989780908847
426456.319500689847.68049931015996
432740.237866253895-13.2378662538950
442828.3092091538995-0.309209153899509
454556.2456489846546-11.2456489846546
465763.3572291256966-6.35722912569665
474545.0549821644299-0.0549821644299016
486951.623107205678617.3768927943214
496048.83677367443311.1632263255670
505641.871317707152614.1286822928474
515866.4498641015078-8.44986410150784
525046.00471250467523.99528749532485
535149.70609807620211.29390192379785
545357.2169843150172-4.21698431501715
553736.21467178145530.785328218544734
562227.8192640714578-5.81926407145777
575552.63774541666852.36225458333146
587061.07513148409788.92486851590216
596244.745638714964717.2543612850353
605856.00907963593721.99092036406280
613951.7658097966268-12.7658097966268
624945.50490764904423.49509235095576
635864.37374008907-6.37374008907004
644747.0997914298967-0.0997914298967402
654250.1236187423505-8.12361874235045
666256.18280732034175.81719267965832
673936.47831959689372.52168040310625
684026.415682442467813.5843175575322
697253.74313603243318.2568639675670
707064.3185543765825.68144562341796
715450.06643977630463.93356022369539
726557.7210271947887.27897280521199


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7349.767755753690444.972350825860354.5631606815204
7447.830331798597443.032348703388752.6283148938061
7564.954047705819660.143620457396669.7644749542427
7648.958077200170744.145470295495953.7706841048456
7750.214979671072245.387149802398555.0428095397458
7860.576485582196755.70494519010565.4480259742883
7939.158503224865934.315376391998144.0016300577338
8031.607055872534326.766507555788336.4476041892803
8161.790548334183856.754604238701566.8264924296661
8269.581249767776464.379624583401374.7828749521514
8354.038959206827148.919594805601359.1583236080529
8463.024726540055439.485705973781886.5637471063289
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/1ttzl1291715903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/1ttzl1291715903.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/2ttzl1291715903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/2ttzl1291715903.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/3ttzl1291715903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715800elkh2z8z8b5t1y0/3ttzl1291715903.ps (open in new window)


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