Home » date » 2010 » Dec » 28 »

Exponential smoothing 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: Tue, 28 Dec 2010 11:57:54 +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/28/t1293537374pzq8okgz5ms92gc.htm/, Retrieved Tue, 28 Dec 2010 12:56:15 +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/28/t1293537374pzq8okgz5ms92gc.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 «
621 587 655 517 646 657 382 345 625 654 606 510 614 647 580 614 636 388 356 639 753 611 639 630 586 695 552 619 681 421 307 754 690 644 643 608 651 691 627 634 731 475 337 803 722 590 724 627 696 825 677 656 785 412 352 839 729 696 641 695 638 762 635 721 854 418 367 824 687 601 676 740 691 683 594 729 731 386 331 706 715 657 653 642 643 718 654 632 731 392 344 792 852 649 629 685 617 715 715 629 916 531 357 917 828 708 858 775 785 1006 789 734 906 532 387 991 841 892 782 813 793 978 775 797 946 594 438 1022 868 795
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.100728105613193
beta0
gamma0.706402297696408


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13614651.525172725983-37.5251727259829
14647670.684799400148-23.6847994001478
15580582.366193489376-2.36619348937563
16614614.082108335153-0.0821083351529523
17636638.174882180815-2.17488218081451
18388385.9591403392022.04085966079765
19356394.926976308915-38.9269763089152
20639352.672465590974286.327534409026
21753693.55722789067159.4427721093285
22611732.547969407503-121.547969407503
23639664.801621910674-25.8016219106745
24630570.20434261314959.795657386851
25586684.778644320277-98.7786443202771
26695708.953919341885-13.9539193418846
27552629.015895313806-77.0158953138058
28619656.890366325891-37.8903663258913
29681677.188922344093.81107765590946
30421412.1320310598668.86796894013384
31307394.297058880402-87.2970588804023
32754548.078347243632205.921652756368
33690738.007640476895-48.0076404768953
34644650.364283790538-6.36428379053825
35643655.016731898568-12.0167318985677
36608615.297809380185-7.29780938018473
37651621.4578618054229.5421381945806
38691714.167953646476-23.1679536464757
39627590.36132606245236.6386739375477
40634656.629737764733-22.6297377647328
41731706.92773894495624.0722610550442
42475435.74617298177339.2538270182273
43337354.502513101708-17.5025131017079
44803720.35202868407882.647971315922
45722736.604638027393-14.6046380273928
46590676.10183672607-86.1018367260698
47724669.12301045894454.8769895410561
48627637.505502594523-10.505502594523
49696667.90337510201628.0966248979839
50825729.27138471700995.7286152829913
51677650.18827702758326.8117229724173
52656679.113810957953-23.1138109579528
53785763.60913757326621.3908624267337
54412486.525784079443-74.5257840794429
55352353.932010390557-1.93201039055725
56839799.5809690940139.4190309059899
57729748.091207851041-19.0912078510413
58696638.02523051830157.9747694816986
59641739.369895717159-98.3698957171586
60695648.51820685301446.4817931469859
61638711.124747901819-73.1247479018185
62762806.64707788869-44.64707788869
63635669.168037572516-34.1680375725161
64721660.22943633725360.7705636627469
65854782.13478503173171.8652149682692
66418444.066913202401-26.0669132024013
67367360.6645866861996.33541331380138
68824845.017958361628-21.0179583616283
69687748.612709808728-61.6127098087283
70601682.190300654261-81.1903006542611
71676669.4109014718986.58909852810211
72740680.9801840251959.0198159748098
73691668.26079833037522.7392016696249
74683793.770722055046-110.770722055046
75594654.717447856971-60.7174478569707
76729703.43579835564925.564201644351
77731828.604696928258-97.6046969282577
78386419.108486405942-33.1084864059417
79331356.880824472789-25.8808244727888
80706806.5251716464-100.525171646401
81715680.86911064199534.1308893580053
82657613.04089926046143.9591007395389
83653668.228632670744-15.2286326707435
84642710.107472507583-68.1074725075835
85643662.749894114399-19.7498941143987
86718696.89652408798921.1034759120112
87654604.37511756655849.624882433442
88632718.842688245944-86.8426882459437
89731752.99602607945-21.9960260794497
90392394.765325432344-2.76532543234441
91344340.1000456003033.8999543996967
92792747.6823816677344.3176183322699
93852721.199203322578130.800796677422
94649666.471440466248-17.4714404662477
95629678.199883454367-49.199883454367
96685682.8392993272592.16070067274075
97617672.847062803514-55.8470628035141
98715731.041817232163-16.0418172321632
99715650.77265525823264.2273447417683
100629679.867208951556-50.8672089515558
101916761.290149999896154.709850000104
102531414.330995039189116.669004960811
103357371.603349387028-14.6033493870279
104917836.96237644736180.0376235526387
105828869.245091697302-41.2450916973019
106708693.44129377671714.5587062232828
107858687.486984844789170.513015155211
108775750.86133239960224.1386676003976
109785701.0314027612883.9685972387201
1101006809.343633894797196.656366105203
111789796.57032178313-7.57032178312954
112734737.773987383306-3.77398738330567
113906984.09426384761-78.0942638476107
114532542.458664190362-10.4586641903621
115387392.075888372369-5.07588837236949
116991962.67769769466528.322302305335
117841908.330735465524-67.3307354655235
118892755.047910374334136.952089625666
119782865.880879179644-83.8808791796441
120813807.953883262625.04611673738043
121793792.7234873925030.276512607497125
122978967.74254174116210.2574582588376
123775803.9309183551-28.9309183550996
124797744.6713630173252.3286369826798
125946953.043956280599-7.04395628059876
126594550.64345039587143.3565496041286
127438403.54354264733434.4564573526662
12810221027.68207330509-5.68207330508676
129868903.510592234765-35.5105922347655
130795880.689443126828-85.6894431268275


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
131827.429548585132730.229994148165924.6291030221
132834.599505198186736.481453704931932.71755669144
133815.2589480673716.331868304118914.186027830481
1341001.63937840422900.5279797856761102.75077702276
135806.666389269466706.34963912771906.983139411222
136801.510713192643700.379589898783902.641836486502
137970.7218365002866.577561635451074.86611136495
138591.883665574239491.727316897714692.040014250764
139432.044100698021332.789271702236531.298929693807
1401031.55768421552918.6570270253421144.4583414057
141887.78499969121778.181198893442997.38880048898
142835.49543354432750.709349608741920.2815174799
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537374pzq8okgz5ms92gc/1hqln1293537469.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537374pzq8okgz5ms92gc/1hqln1293537469.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537374pzq8okgz5ms92gc/2sz381293537469.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537374pzq8okgz5ms92gc/2sz381293537469.ps (open in new window)


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