Home » date » 2010 » Dec » 18 »

Exponential smoothing triple multiplicative

*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, 18 Dec 2010 13:02:21 +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/18/t1292677201bm7q0w831oeztug.htm/, Retrieved Sat, 18 Dec 2010 14:00:01 +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/18/t1292677201bm7q0w831oeztug.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 «
37 30 47 35 30 43 82 40 47 19 52 136 80 42 54 66 81 63 137 72 107 58 36 52 79 77 54 84 48 96 83 66 61 53 30 74 69 59 42 65 70 100 63 105 82 81 75 102 121 98 76 77 63 37 35 23 40 29 37 51 20 28 13 22 25 13 16 13 16 17 9 17 25 14 8 7 10 7 10 3
 
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'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.445417135362361
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
138047.87532.125
144262.1840254735159-20.1840254735159
155453.19371466702150.806285332978497
166653.552847970321512.4471520296785
178159.097022770800721.9029772291993
186368.8529841441377-5.85298414413768
1913766.245964713334570.7540352866655
207297.7610244260485-25.7610244260485
2110786.286622722198220.7133772778018
225895.5127158929565-37.5127158929565
233678.8039094402537-42.8039094402537
245259.738314715066-7.73831471506595
257956.291536742148922.7084632578511
267766.406275394942410.5937246050576
275471.1249018613449-17.1249018613449
288463.497177130903120.5028228690969
294872.6294857600981-24.6294857600981
309661.659090767387234.3409092326128
318376.95512018351646.04487981648356
326679.6476132349843-13.6476132349843
336173.5687324433242-12.5687324433242
345367.9704036432827-14.9704036432827
353061.3023293372735-31.3023293372735
367447.359735473695926.6402645263041
376959.22576578429789.77423421570218
385963.5793771890167-4.57937718901666
394261.5396441197411-19.5396441197411
406552.83635180992612.1636481900740
417058.254249142304311.7457508576957
4210063.486007842019136.5139921579809
436379.7499656296707-16.7499656296707
4410572.289243921484832.7107560785152
458286.859175189514-4.85917518951398
468184.6948152963768-3.6948152963768
477583.0490812513716-8.04908125137162
4810279.463882538086822.5361174619132
4912189.501855420161931.4981445798381
5098103.531668748143-5.53166874814286
5176101.067768700572-25.0677687005716
527789.9021549760367-12.9021549760367
536384.1553140666092-21.1553140666092
543774.732374677369-37.7323746773691
553557.925728438156-22.9257284381560
562347.7142161511371-24.7142161511371
574036.70608079037143.29391920962857
582938.1732488488392-9.17324884883924
593734.08732662462322.91267337537681
605135.384681255729715.6153187442703
612042.3400117985728-22.3400117985728
622832.3893877392911-4.38938773929114
631330.4342792264614-17.4342792264614
642222.6687525163034-0.668752516303439
652522.37087868622522.62912131377481
661323.5419343703269-10.5419343703269
671618.8463761619179-2.84637616191787
681317.5785514457127-4.5785514457127
691615.53918617665410.46081382334585
701715.74444054978421.25555945021576
71916.3036882433765-7.30368824337648
721713.05050034843203.94949965156803
732514.809675169348010.1903248306520
741419.3486204638290-5.34862046382898
75816.9662532586898-8.96625325868977
76712.9725304172707-5.97253041727074
771010.3122630279454-0.312263027945436
78710.1731757245584-3.1731757245584
79108.759788883324211.24021111667579
8039.3122001661585-6.3122001661585


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
816.50063805031436NANA
826.50063805031436NANA
836.50063805031436NANA
846.50063805031436NANA
856.50063805031436NANA
866.50063805031436NANA
876.50063805031436NANA
886.50063805031436NANA
896.50063805031436NANA
906.50063805031436NANA
916.50063805031436NANA
926.50063805031436NANA
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677201bm7q0w831oeztug/1lxzs1292677337.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677201bm7q0w831oeztug/1lxzs1292677337.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677201bm7q0w831oeztug/2e7zd1292677337.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/18/t1292677201bm7q0w831oeztug/2e7zd1292677337.ps (open in new window)


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