Home » date » 2010 » Dec » 28 »

Exponential smoothing 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: Tue, 28 Dec 2010 11:59:51 +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/t1293537462ypx8bhbmhfvwhta.htm/, Retrieved Tue, 28 Dec 2010 12:57:46 +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/t1293537462ypx8bhbmhfvwhta.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'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.121313434871579
beta0
gamma0.727613202056801


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13614647.620192307693-33.6201923076928
14647666.82278845398-19.8227884539805
15580581.282528387406-1.28252838740593
16614613.0331176195860.966882380413608
17636637.014923931782-1.01492393178171
18388383.9646438463284.03535615367218
19356400.360363918437-44.3603639184371
20639357.218366288849281.781633711151
21753673.47510798091779.5248920190827
22611712.653722945721-101.653722945721
23639650.144604470535-11.1446044705352
24630565.86545804477364.1345419552268
25586669.890483722475-83.8904837224753
26695691.8159047593823.18409524061758
27552620.920291796552-68.920291796552
28619645.90365877734-26.9036587773400
29681665.23733814358315.7626618564166
30421417.4512706134373.54872938656263
31307402.846445716454-95.8464457164538
32754561.975406134494192.024593865506
33690738.031789830672-48.0317898306716
34644645.900615091595-1.90061509159455
35643653.359345657001-10.3593456570012
36608617.304728146627-9.3047281466271
37651617.78167980020433.2183201997957
38691709.584576940514-18.5845769405137
39627589.94862830408837.0513716959123
40634654.650861703136-20.6508617031362
41731702.02154312360928.9784568763912
42475448.02982530951126.9701746904890
43337372.718633002093-35.7186330020926
44803723.19051108350179.809488916499
45722732.155099517306-10.1550995173059
46590674.11256343875-84.1125634387495
47724666.18984199112257.8101580088784
48627639.079364443766-12.0793644437661
49696666.4065689317929.5934310682096
50825724.649849687071100.350150312929
51677655.01278823862421.9872117613761
52656680.995963101049-24.9959631010490
53785759.56972968714625.4302703128540
54412503.863586117536-91.8635861175355
55352374.056552474132-22.0565524741315
56839800.04802972748738.9519702725128
57729746.537737331535-17.5377373315350
58696640.31533133655555.6846686634447
59641740.089324952775-99.089324952775
60695649.26138918073845.7386108192617
61638710.245940337771-72.2459403377711
62762801.372617178017-39.3726171780174
63635664.684436579969-29.6844365799691
64721654.36073791936966.639262080631
65854776.290795442877.7092045571995
66418451.935672033139-33.9356720331388
67367373.786776918547-6.78677691854745
68824840.636112721433-16.6361127214334
69687744.265886513551-57.2658865135514
70601680.038224210279-79.038224210279
71676664.51470523431711.4852947656833
72740679.69582022992260.3041797700785
73691667.01466217107823.9853378289220
74683790.832846030486-107.832846030486
75594652.033599524172-58.0335995241725
76729699.85474005452829.1452599454718
77731824.313772088603-93.313772088603
78386407.831788073037-21.8317880730366
79331348.508738408874-17.5087384088740
80706807.760243024426-101.760243024426
81715675.08691630786439.9130836921358
82657608.72835639702548.2716436029752
83653666.524898539208-13.5248985392084
84642709.883999619971-67.883999619971
85643658.431661515548-15.4316615155482
86718693.19087606681124.8091239331891
87654602.32172927711551.678270722885
88632719.189669589688-87.1896695896876
89731751.242271053243-20.2422710532435
90392389.3264154948362.67358450516389
91344335.7401123787728.25988762122779
92792744.2520081751847.7479918248206
93852720.294022610471131.705977389529
94649670.41516860093-21.4151686009303
95629680.24851913296-51.2485191329597
96685684.2770760780830.7229239219173
97617674.682764306154-57.6827643061538
98715730.044054979828-15.0440549798276
99715651.51880847986663.4811915201341
100629681.034224826663-52.0342248266631
101916760.154067953868155.845932046132
102531434.25119065547196.7488093445294
103357395.649045274614-38.6490452746141
104917823.71673762752693.283262372474
105828858.960821867563-30.9608218675631
106708691.45122212070716.5487778792930
107858686.816337372139171.183662627861
108775751.05653375607123.9434662439289
109785706.93786259559978.0621374044014
1101006806.02763420346199.972365796539
111789803.791409161267-14.7914091612669
112734749.957225437861-15.9572254378614
113906966.360612916558-60.360612916558
114532576.445589425618-44.445589425618
115387434.148867993739-47.1488679937387
116991945.53553973479445.4644602652058
117841895.543857846838-54.5438578468385
118892755.54829394039136.451706059609
119782864.324122550107-82.324122550107
120813803.6732906908389.32670930916152
121793792.381855271750.618144728250172
122978960.01919650535717.9808034946434
123775798.397030742782-23.3970307427824
124797742.77351192839554.2264880716049
125946939.3020898315466.6979101684542
126594567.69734002102526.3026599789748
127438432.2550069506965.74499304930379
12810221009.2701853309912.7298146690063
129868891.36763848615-23.3676384861495
130795877.266026191264-82.2660261912636


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
131819.635454044015689.008340930445950.262567157586
132827.568048691115695.983230021659959.15286736057
133809.577390092995677.041786091045942.112994094944
134988.240452822233854.7608358312881121.72006981318
135797.982306238411663.565305915024932.399306561798
136794.825288352778659.477396607744930.17318009781
137954.388356217866818.1159319211171090.66078051461
138594.505238007991457.314511471533731.695964544449
139442.728619029250304.625696281435580.831541777066
1401023.51255598068884.5034228441261162.52168911724
141880.987023479102741.0775494637061020.8964974945
142832.063892109122691.259834130835972.86795008741
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/13pct1293537588.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/13pct1293537588.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/23pct1293537588.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/23pct1293537588.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/3wzbe1293537588.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/28/t1293537462ypx8bhbmhfvwhta/3wzbe1293537588.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Triple ; par3 = multiplicative ;
 
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