Home » date » 2009 » Jun » 05 »

Exponential Smoothing - Verkoop vrouwenkleding VS 2000-2008 - Amelie Barratt

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 05 Jun 2009 06:24:42 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9.htm/, Retrieved Fri, 05 Jun 2009 14:26:07 +0200
 
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/2009/Jun/05/t1244204767cfgt3fwjfecjit9.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
461683 731993 522673 572709 382812 942567 802385 272643 992660 672651 122826 493878 801948 742156 612673 662804 572750 202510 652313 492663 292397 382618 872790 913865 221989 842162 142783 112683 862759 392482 602262 542540 982375 112533 622742 883970 562056 322091 832619 82723 872811 562534 112447 342593 422622 682787 602944 84298 942258 722391 662901 3007 452988 12759 942577 52626 882755 22968 433067 904437 812315 32428 53073 403145 243133 313018 32720 922852 192947 693108 33335 944749 962536 292541 953227 193417 73378 433219 962953 632986 333186 733212 463421 495024 752596 22640 123421 243440 623653 413304 852981 613232 493203 253344 803665 574904 132570 132785 393406 333452 583642 893230 272991 373159 133072 653091 373307
 
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.00263339025737825
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
2731993461683270310
3522673462394.83172047260278.1682795281
4572709462553.567661552110155.432338448
5382812462843.649903869-80031.6499038692
6942567462632.895336730479934.10466327
7802385463896.749132134338488.250867866
8272643464788.120794207-192145.120794207
9992660464282.127705104528377.872294896
10672651465673.55284622206977.44715378
11122826466218.605239052-343392.605239052
12493878465314.3184979628563.6815020404
13801948465389.537818542336558.462181458
14742156466275.827593889275880.172406111
15612673467002.327752107145670.672247893
16662804467385.93548119195418.064518810
17572750467900.54750841104849.452491590
18202510468176.657035093-265666.657035093
19652313467477.053048746184835.946951254
20492663467963.79823066124699.2017693392
21292397468028.840867965-175631.840867965
22382618467566.333689338-84948.3336893381
23872790467342.63157502405447.36842498
24913865468410.33272491445454.66727509
25221989469583.388705816-247594.388705816
26842162468931.376054817373230.623945183
27142783469914.237943669-327131.237943669
28112683469052.773728784-356369.773728784
29862759468114.313038623394644.686961377
30392482469153.566512393-76671.5665123927
31602262468951.660356121133310.339643879
32542540469302.71850574773237.281494253
33982375469495.580849311512879.419150689
34112533470846.192514912-358313.192514912
35622742469902.614044653152839.385955347
36883970470305.099794572413664.900205428
37562056471394.44091259290661.559087408
38322091471633.188179012-149542.188179012
39832619471239.385237594361379.614762406
4082723472191.038794324-389468.038794324
41872811471165.417455403401645.582544597
42562534472223.10701939590310.8929806048
43112447472460.930845105-360013.930845105
44342593471512.873667097-128919.873667097
45422622471173.3773278-48551.3773278001
46682787471045.522603763211741.477396237
47602944471603.120547421131340.879452579
4884298471948.992339767-387650.992339767
49942258470928.155993276471329.844006724
50722391472169.351412495250221.648587505
51662901472828.282664071190072.717335929
523007473328.818306096-470321.818306096
53452988472090.277411937-19102.2774119367
5412759472039.973660706-459280.973660706
55942577470830.507619269471746.492380731
5652626472072.800236257-419446.800236257
57882755470968.233119026411786.766880974
5822968472052.628379048-449084.628379048
59433067470870.013293936-37803.0132939362
60904437470770.463207028433666.536792972
61812315471912.47643997340402.52356003
6232428472808.8891291-440380.8891291
6353073471649.194386132-418576.194386132
64403145470546.919913865-67401.9199138649
65243133470369.424354635-227236.424354635
66313018469771.022168618-156753.022168618
6732720469358.230287225-436638.230287225
68922852468208.391425587454643.608574413
69192947469405.645474987-276458.645474987
70693108468677.621971425224430.378028575
7133335469268.634742385-435933.634742385
72944749468120.651355791476628.348644209
73962536469375.799805501493160.200194499
74292541470674.48307202-178133.483072020
75953227470205.388093185483021.611906815
76193417471477.372500084-278060.372500084
7773378470745.131024179-397367.131024179
78433219469698.708292737-36479.7082927374
79962953469602.642984327493350.357015673
80632986470901.827007966162084.172992034
81333186471328.657889999-138142.657889999
82733212470964.874360583262247.125639417
83463421471655.473386267-8234.47338626737
84495024471633.78880427723390.2111957227
85752596471695.384358558280900.615641442
8622640472435.10530308-449795.10530308
87123421471250.619254958-347829.619254958
88243440470334.648124385-226894.648124385
89623653469737.145968563153915.854031437
90413304470142.466479025-56838.4664790252
91852981469992.788615155382988.211384845
92613232471001.346039707142230.653960293
93493203471375.89485814621827.1051418538
94253344471433.374144174-218089.374144174
95803665470859.059711065332805.940288935
96574904471735.467631819103168.532368181
97132570472007.150639825-339437.150639825
98132785471113.280154338-338328.280154338
99393406470222.329757584-76816.3297575843
100333452470020.042383193-136568.042383193
101583642469660.405430912113981.594569088
102893230469960.563451571423269.436548429
103272991471075.197062023-198084.197062023
104373159470553.56406734-97394.5640673396
105133072470297.086171203-337225.086171203
106653091469409.040914736183681.959085264
107373307469892.747196248-96585.7471962476


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
108469638.399230579-117973.0281701121057249.82663127
109469638.399230579-117975.0656340631057251.86409522
110469638.399230579-117977.1030909491057253.90155211
111469638.399230579-117979.1405407711057255.93900193
112469638.399230579-117981.1779835281057257.97644469
113469638.399230579-117983.2154192211057260.01388038
114469638.399230579-117985.2528478491057262.05130901
115469638.399230579-117987.2902694141057264.08873057
116469638.399230579-117989.3276839141057266.12614507
117469638.399230579-117991.3650913501057268.16355251
118469638.399230579-117993.4024917221057270.20095288
119469638.399230579-117995.439885031057272.23834619
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/1i6oz1244204676.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/1i6oz1244204676.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/2hmw41244204676.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/2hmw41244204676.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/3isq21244204676.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/05/t1244204767cfgt3fwjfecjit9/3isq21244204676.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; 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