Home » date » 2009 » Dec » 04 »

*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: Fri, 04 Dec 2009 05:30:03 -0700
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap.htm/, Retrieved Fri, 04 Dec 2009 13:31:21 +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/2009/Dec/04/t1259929874pfmt8jcn53ng6ap.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
1,4816 1,4562 1,4268 1,4088 1,4016 1,3650 1,3190 1,3050 1,2785 1,3239 1,3449 1,2732 1,3322 1,4369 1,4975 1,5770 1,5553 1,5557 1,5750 1,5527 1,4748 1,4718 1,4570 1,4684 1,4227 1,3896 1,3622 1,3716 1,3419 1,3511 1,3516 1,3242 1,3074 1,2999 1,3213 1,2881 1,2611 1,2727 1,2811 1,2684 1,2650 1,2770 1,2271 1,2020 1,1938 1,2103 1,1856 1,1786 1,2015 1,2256 1,2292 1,2037 1,2165 1,2694 1,2938 1,3201 1,3014 1,3119 1,3408 1,2991
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0339504410338378
gamma0.266247991357555


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131.33221.271386827277230.060813172722769
141.43691.431857634947780.00504236505221511
151.49751.495057001789490.00244299821050853
161.5771.57901700119157-0.00201700119156634
171.55531.56090629104503-0.00560629104503274
181.55571.55901031353179-0.00331031353178934
191.5751.459494759285850.115505240714154
201.55271.58559394354555-0.0328939435455491
211.47481.53646247493622-0.0616624749362209
221.47181.53206827304489-0.0602682730448914
231.4571.49466759529134-0.0376675952913359
241.46841.377096228071950.0913037719280496
251.42271.53175532803572-0.109055328035721
261.38961.52464227472821-0.13504227472821
271.36221.43800281111357-0.0758028111135665
281.37161.42641234790238-0.0548123479023817
291.34191.34679016706208-0.00489016706207801
301.35111.334494969937680.0166050300623219
311.35161.258227608531770.0933723914682347
321.32421.35138650493592-0.0271865049359226
331.30741.301379399461580.00602060053842113
341.29991.35045000608958-0.0505500060895849
351.32131.312477318312480.00882268168751876
361.28811.242754476676770.0453455233232307
371.26111.33654356203417-0.075443562034172
381.27271.34449608090303-0.0717960809030334
391.28111.31129252311742-0.0301925231174185
401.26841.33674834225979-0.068348342259788
411.2651.240319803616130.0246801963838688
421.2771.253840171443580.0231598285564221
431.22711.185568349065260.0415316509347436
441.2021.22196351579028-0.0199635157902824
451.19381.176608441554950.0171915584450475
461.21031.22867594897188-0.0183759489718773
471.18561.21841282635249-0.0328128263524943
481.17861.110607377489610.0679926225103893
491.20151.21910619052557-0.0176061905255722
501.22561.27859172630983-0.0529917263098263
511.22921.26085249615482-0.031652496154819
521.20371.28051206921857-0.0768120692185719
531.21651.174625565554720.0418744344452815
541.26941.203990546612120.0654094533878815
551.29381.178216322663300.115583677336695
561.32011.290503374171450.0295966258285536
571.30141.295929647274580.00547035272541962
581.31191.34278347696348-0.0308834769634840
591.34081.323712903422790.0170870965772083
601.29911.260504112743050.0385958872569487


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
611.347127431127591.237705821673221.45654904058196
621.437823797061151.275249073606531.60039852051578
631.485647093026811.281076823560501.69021736249312
641.555767045155891.309783160076331.80175093023546
651.529525004162831.25794529450921.80110471381646
661.523133455093291.224537513275171.82172939691141
671.419791763323911.113768432793921.72581509385389
681.417913974046601.085702656523501.75012529156970
691.392684978844311.040495077615511.74487488007311
701.437538712375161.049003865457181.82607355929314
711.452080584541131.035156808041091.86900436104118
721.36607635851613-15.321661373699418.0538140907316
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/1a4rf1259929797.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/1a4rf1259929797.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/226hi1259929798.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/226hi1259929798.ps (open in new window)


http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/38rne1259929798.png (open in new window)
http://www.freestatistics.org/blog/date/2009/Dec/04/t1259929874pfmt8jcn53ng6ap/38rne1259929798.ps (open in new window)


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