Home » date » 2010 » Dec » 19 »

*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: Sun, 19 Dec 2010 14:05:44 +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/19/t1292767458lekmrtby0ovqnls.htm/, Retrieved Sun, 19 Dec 2010 15:04:22 +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/19/t1292767458lekmrtby0ovqnls.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 «
41,85 41,75 41,75 41,75 41,58 41,61 41,42 41,37 41,37 41,33 41,37 41,34 41,33 41,29 41,29 41,27 41,04 40,90 40,89 40,72 40,72 40,58 40,24 40,07 40,12 40,10 40,10 40,08 40,06 39,99 40,05 39,66 39,66 39,67 39,56 39,64 39,73 39,70 39,70 39,68 39,76 40,00 39,96 40,01 40,01 40,01 40,00 39,91 39,86 39,79 39,79 39,80 39,64 39,55 39,36 39,28
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0
gamma0.194972412796345


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1341.3341.6101522435898-0.280152243589754
1441.2941.28667686480190.0033231351981442
1541.2941.2916768648019-0.00167686480186546
1641.2741.2758435314685-0.00584353146854255
1741.0441.0658435314685-0.0258435314685244
1840.940.9475101981352-0.0475101981352068
1940.8940.76292686480190.127073135198138
2040.7240.8283435314685-0.108343531468527
2140.7240.70584353146850.0141564685314677
2240.5840.6666768648019-0.0866768648018663
2340.2440.6100101981352-0.370010198135191
2440.0740.2095935314685-0.139593531468542
2540.1240.05917686480190.0608231351981345
2640.140.07667686480190.0233231351981473
2740.140.1016768648019-0.00167686480186546
2840.0840.0858435314685-0.00584353146854966
2940.0639.87584353146850.184156468531484
3039.9939.96751019813520.0224898018647934
3140.0539.85292686480190.197073135198131
3239.6639.9883435314685-0.328343531468526
3339.6639.64584353146850.0141564685314677
3439.6739.60667686480190.0633231351981394
3539.5639.7000101981352-0.140010198135194
3639.6439.52959353146850.110406468531458
3739.7339.62917686480190.100823135198134
3839.739.68667686480190.0133231351981493
3939.739.7016768648019-0.00167686480186546
4039.6839.6858435314685-0.00584353146854966
4139.7639.47584353146850.284156468531478
424039.66751019813520.332489801864796
4339.9639.86292686480190.097073135198137
4440.0139.89834353146850.111656468531471
4540.0139.99584353146850.0141564685314677
4640.0139.95667686480190.0533231351981343
474040.0400101981352-0.0400101981351924
4839.9139.9695935314685-0.0595935314685434
4939.8639.8991768648019-0.0391768648018598
5039.7939.8166768648019-0.0266768648018569
5139.7939.7916768648019-0.00167686480186546
5239.839.77584353146850.0241564685314515
5339.6439.59584353146850.044156468531483
5439.5539.54751019813520.00248980186479031
5539.3639.4129268648019-0.0529268648018615
5639.2839.2983435314685-0.0183435314685241


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
5739.265843531468539.009735031895139.521952031042
5839.212520396270438.850328282734639.5747125098062
5939.242530594405638.798937660894139.6861235279171
6039.212124125874138.699907126727239.7243411250211
6139.20130099067638.628624976014239.7739770053378
6239.157977855477838.53064271273339.7853129982227
6339.159654720279738.482055321758439.837254118801
6439.145498251748338.421114024676639.8698824788199
6538.941341783216838.173016284496339.7096672819372
6638.84885198135238.038965794571539.6587381681324
6738.711778846153837.862363047447739.56119464486
6838.650122377622437.762936510599439.5373082446454
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292767458lekmrtby0ovqnls/123wr1292767542.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292767458lekmrtby0ovqnls/123wr1292767542.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/19/t1292767458lekmrtby0ovqnls/2p9661292767542.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/19/t1292767458lekmrtby0ovqnls/2p9661292767542.ps (open in new window)


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