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/t1291715832kj14sro727vjbq6.htm/, Retrieved Tue, 07 Dec 2010 10:57:13 +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/t1291715832kj14sro727vjbq6.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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0052078015322195
beta0.748150948749452
gamma0.25528536166977


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
134446.6829275162342-2.68292751623424
143637.4190430644953-1.41904306449529
157273.8530991176902-1.85309911769019
164546.4992868689191-1.49928686891911
175658.5280218489155-2.52802184891554
185456.6166500130302-2.61665001303023
195339.825039805973913.1749601940261
203526.74601746280038.25398253719967
216158.31243667050482.68756332949519
225270.6780753105334-18.6780753105334
234749.8765178806111-2.8765178806111
245160.2589543160451-9.2589543160451
255243.88207271917888.11792728082122
266335.418266243847427.5817337561526
277470.70268774381393.2973122561861
284544.63472079251720.365279207482814
295156.2770561007029-5.27705610070291
306454.60763547858419.39236452141591
313642.3875265574203-6.38752655742034
323028.33724819233721.66275180766281
335558.0193961688328-3.01939616883282
346464.9214476290073-0.921447629007304
353948.5935132205767-9.5935132205767
364057.3421270504528-17.3421270504528
376345.535706491793817.4642935082062
384542.16704545379122.83295454620884
395970.871765996104-11.8717659961041
405544.209867064611110.7901329353889
414054.3550646421634-14.3550646421634
426456.28766261938567.71233738061445
432740.2125612602168-13.2125612602168
442828.295078420808-0.295078420808014
454556.1952612606278-11.1952612606278
465763.2805438281635-6.28054382816352
474544.99887790736510.00112209263485852
486951.546725302810717.4532746971893
496048.834228794391811.1657712056082
505641.873031577775114.1269684222249
515866.3961330276469-8.3961330276469
525045.99095018140544.00904981859455
535149.64827465318911.35172534681087
545357.2022581602745-4.20225816027445
553736.17564932645230.824350673547698
562227.8097452358259-5.80974523582585
575552.58509862837722.41490137162282
587061.01439609709288.98560390290722
596244.709966828124317.2900331718757
605855.98672915131622.01327084868375
613951.7821660569171-12.7821660569171
624945.52007181477993.47992818522015
635864.3110080261975-6.31100802619751
644747.0876940994298-0.0876940994297968
654250.0740054724618-8.07400547246176
666256.15509613229575.84490386770427
673936.44605171361482.55394828638519
684026.398537237622313.6014627623777
697253.714171540275218.2858284597248
707064.29639572690395.70360427309613
715450.06746924521993.9325307547801
726557.70447279388587.29552720611421


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7349.760097916772944.9339930730154.5862027605359
7447.845822211215843.016990788617152.6746536338144
7564.89066218895760.04902146626469.73230291165
7648.942461021049644.09882489178953.7860971503103
7750.155622280434945.296804001159955.0144405597099
7860.550248970572955.647712920462865.452785020683
7939.124302006699634.250606090119843.9979979232794
8031.598956329719826.727908195786336.4700044636533
8161.754062659104556.688978963750866.8191463544582
8269.518974377173764.290732528406474.747216225941
8354.002255584012848.856273588146859.1482375798789
8462.969937369239238.867976012579487.071898725899
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715832kj14sro727vjbq6/1tjuo1291715903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715832kj14sro727vjbq6/1tjuo1291715903.ps (open in new window)


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


http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715832kj14sro727vjbq6/3mtts1291715903.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/07/t1291715832kj14sro727vjbq6/3mtts1291715903.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=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