Home » date » 2008 » May » 29 »

Triple exponential smoothing model roomijs - Sophie Volckaerts - 2mar03

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 16:26:58 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz.htm/, Retrieved Thu, 29 May 2008 00:28:34 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
2,6900 2,7200 2,6800 2,7200 2,7000 2,7200 2,7200 2,7100 2,6800 2,6500 2,6600 2,6900 2,6700 2,6700 2,6500 2,6600 2,7600 2,7900 2,7900 2,7800 2,8100 2,8100 2,7900 2,7900 2,7900 2,8000 2,8000 2,8000 2,7700 2,7800 2,7500 2,7400 2,7400 2,7200 2,7100 2,7100 2,7000 2,6900 2,7000 2,7100 2,7600 2,7600 2,7500 2,7400 2,7100 2,7300 2,7300 2,7300 2,7200 2,7200 2,7500 2,8200 2,8500 2,8300 2,8500 2,8500 2,7900 2,8100 2,8000 2,7900 2,7900 2,8000 2,8000 2,8600 2,8600 2,8500 2,8100 2,7900 2,7800 2,7700 2,7800 2,8500 2,8200
 
Text written by user:
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.700557932823512
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132.672.648239734299520.0217602657004825
142.672.657650727723000.0123492722769951
152.652.637968775047920.0120312249520826
162.662.644314011796350.0156859882036500
172.762.743219621933260.0167803780667408
182.792.775391915570360.0146080844296415
192.792.776459058334230.0135409416657670
202.782.765528605769420.0144713942305801
212.812.793999989130.0160000108699974
222.812.793125590336910.0168744096630915
232.792.77869709188810.0113029081118987
242.792.786615433829870.00338456617013350
252.792.773002457453180.0169975425468185
262.82.776258840064610.0237411599353856
272.82.764462327910010.0355376720899852
282.82.788369582536490.0116304174635080
292.772.88476173678217-0.114761736782168
302.782.82413068226428-0.0441306822642762
312.752.78372836862127-0.0337283686212699
322.742.739961642395193.8357604806194e-05
332.742.75877957957929-0.0187795795792862
342.722.73380189457873-0.0138018945787346
352.712.696214525901840.0137854740981571
362.712.703500964459390.00649903554061337
372.72.696146152093390.00385384790661369
382.692.69221393788909-0.00221393788909374
392.72.665766748041390.0342332519586095
402.712.681601343051230.0283986569487689
412.762.751893492545580.0081065074544231
422.762.79848867019142-0.0384886701914184
432.752.76515380316382-0.0151538031638188
442.742.74451081442063-0.00451081442062851
452.712.75450691104412-0.0445069110441221
462.732.712996268181820.0170037318181819
472.732.705250844157450.0247491558425481
482.732.718036110709960.0119638892900444
492.722.713717664536650.00628233546335499
502.722.709669796233140.0103302037668604
512.752.702924326203750.0470756737962525
522.822.726008658517730.0939913414822695
532.852.836175960305170.0138240396948315
542.832.87282404420348-0.042824044203476
552.852.843439437340010.0065605626599945
562.852.841195578381120.0088044216188834
572.792.84854325538758-0.0585432553875784
582.812.81561821419967-0.00561821419966657
592.82.794344112217610.00565588778239379
602.792.789924991721167.50082788414375e-05
612.792.775576399420420.0144236005795833
622.82.778444061029760.0215559389702356
632.82.790566008353850.00943399164615455
642.862.801328686147620.0586713138523782
652.862.8627467998242-0.00274679982420212
662.852.87082323129981-0.0208232312998087
672.812.87163929721046-0.0616392972104638
682.792.82228939116698-0.0322893911669753
692.782.78068174401399-0.00068174401399057
702.772.80414002736271-0.0341400273627124
712.782.766260683313840.0137393166861632
722.852.765833322965130.084166677034867
732.822.81469238843540.00530761156460136


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
742.813309493776272.749945495161412.87667349239112
752.806700436090362.729334539825662.88406633235507
762.82559778174192.736401551500822.91479401198298
772.827522074148632.727890487422342.92715366087491
782.832109954022732.723036865417072.94118304262838
792.835291852657182.717531824454252.95305188086011
802.837912441785252.712063684037182.96376119953332
812.828390042962402.694941942896832.96183814302797
822.842307109958162.701669700299542.98294451961679
832.84268192266212.695205258135582.99015858718862
842.853718289385932.699705782866993.00773079590486
852.822.659717943148262.98028205685174
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/11g1a1212013612.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/11g1a1212013612.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/25mhp1212013612.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/25mhp1212013612.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/3hb2a1212013612.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/29/t12120137137q4vz9scdzik5lz/3hb2a1212013612.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=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