Home » date » 2010 » Dec » 25 »

Paper 'Smoothing model - triple additive'

*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: Sat, 25 Dec 2010 09:42:23 +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/25/t12932719159q3ifubpvsxwd9r.htm/, Retrieved Sat, 25 Dec 2010 11:11:59 +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/25/t12932719159q3ifubpvsxwd9r.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 «
9,3 14,2 17,3 23 16,3 18,4 14,2 9,1 5,9 7,2 6,8 8 14,3 14,6 17,5 17,2 17,2 14,1 10,4 6,8 4,1 6,5 6,1 6,3 9,3 16,4 16,1 18 17,6 14 10,5 6,9 2,8 0,7 3,6 6,7 12,5 14,4 16,5 18,7 19,4 15,8 11,3 9,7 2,9 0,1 2,5 6,7 10,3 11,2 17,4 20,5 17 14,2 10,6 6,1
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.157445652416388
beta0.00916996697365402
gamma0.694119859153262


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1314.315.2827457264957-0.982745726495732
1414.615.5184975911223-0.918497591122335
1517.518.2797056114228-0.779705611422848
1617.217.7949734421629-0.594973442162864
1717.217.5926342108219-0.392634210821914
1814.114.3632522043784-0.263252204378409
1910.412.8996940896714-2.49969408967138
206.87.00957560299231-0.209575602992307
214.13.579723736290640.520276263709361
226.55.023868366249181.47613163375082
236.14.89147279857681.20852720142320
246.36.256188913516270.0438110864837329
259.312.1586793020158-2.8586793020158
2616.412.12904188424694.27095811575306
2716.115.78836358786360.311636412136444
281815.58495793908292.41504206091707
2917.615.98067500372641.61932499627360
301413.15244663367630.847553366323726
3110.510.5661496303475-0.0661496303475051
326.96.412350297893320.48764970210668
332.83.53395180909005-0.733951809090051
340.75.35266561425973-4.65266561425973
353.64.10299038614618-0.502990386146184
366.74.518776129281822.18122387071818
3712.59.065110468001513.43488953199849
3814.414.20989865086050.190101349139466
3916.514.91914887517721.58085112482282
4018.716.15553699792772.54446300207229
4119.416.1162744364263.28372556357401
4215.813.11114942019822.68885057980178
4311.310.29545954380981.00454045619018
449.76.65072925254523.04927074745481
452.93.48152454435278-0.58152454435278
460.13.05297293779391-2.95297293779391
472.54.52076233020462-2.02076233020462
486.76.288194592328510.411805407671486
4910.311.3073671284030-1.00736712840301
5011.213.8669057227964-2.66690572279635
5117.414.94739098845652.45260901154354
5220.516.89354596358823.60645403641182
531717.4643278672635-0.464327867263485
5414.213.52626679108850.673733208911457
5510.69.410436345143651.18956365485635
566.16.9931037051144-0.8931037051144


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
571.07652528957599-2.74375536655544.89680594570738
58-0.649783694223311-4.517986888625583.21841950017896
591.82997711226625-2.086420979600635.74637520413314
605.342985219531851.378122130098789.30784830896492
619.471514297931485.4579183156423313.4851102802206
6211.22473221590547.1621375977791315.2873268340317
6315.728653219282311.616796323858519.8405101147061
6417.969400278611913.808019516815622.1307810404082
6515.592361564197811.381197351798419.8035257765972
6612.39438410496568.1331788165719916.6555893933591
678.47458034568724.163078270224312.7860824211501
684.650652573744530.2885998713566719.01270527613238
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/25/t12932719159q3ifubpvsxwd9r/1otbs1293270123.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t12932719159q3ifubpvsxwd9r/1otbs1293270123.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/25/t12932719159q3ifubpvsxwd9r/2h2sv1293270123.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/25/t12932719159q3ifubpvsxwd9r/2h2sv1293270123.ps (open in new window)


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