Home » date » 2008 » Mar » 10 » attachments

HPC Retail Sales

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 10 Mar 2008 11:43:04 -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/Mar/10/t1205171047i3xo7gva8f85ux9.htm/, Retrieved Mon, 10 Mar 2008 18:44:12 +0100
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
13328 12873 14000 13477 14237 13674 13529 14058 12975 14326 14008 16193 14483 14011 15057 14884 15414 14440 14900 15074 14442 15307 14938 17193 15528 14765 15838 15723 16150 15486 15986 15983 15692 16490 15686 18897 16316 15636 17163 16534 16518 16375 16290 16352 15943 16362 16393 19051 16747 16320 17910 16961 17480 17049 16879 17473 16998 17307 17418 20169 17871 17226 19062 17804 19100 18522 18060 18869 18127 18871 18890 21263 19547 18450 20254 19240 20216 19420 19415 20018 18652 19978 19509 21971
 
Text written by user:
 
Output produced by software:


Summary of compuational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time2 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.283890683571503
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
21287313328-455
31400013198.8297389750801.170261025034
41347713426.274512034550.7254879654774
51423713440.6750054875796.324994512461
61367413666.74425252487.25574747524479
71352913668.8040916353-139.804091635324
81405813629.1150124949428.884987505124
91297513750.8714647713-775.87146477126
101432613530.6087842737795.391215726278
111400813756.4129402130251.587059786978
121619313827.83616259372365.16383740631
131448314499.2841411536-16.2841411535665
141401114494.6612251901-483.661225190106
151505714357.3543093539699.645690646146
161488414555.9772027292328.022797270754
171541414649.0998188735764.900181126524
181444014866.2478541575-426.247854157451
191490014745.2400594698154.759940530195
201507414789.1749647764284.825035223594
211444214870.0341387243-428.03413872431
221530714748.5192344899558.480765510074
231493814907.066720772130.9332792278838
241719314915.84839055722277.15160944277
251552815562.3105175579-34.3105175578839
261476515552.5700812747-787.570081274684
271583815328.9862725411509.013727458852
281572315473.4905275767249.509472423280
291615015544.3239422605605.676057739471
301548615716.2697323151-230.269732315079
311598615650.8983006023335.101699397677
321598315746.0305511103236.969448889700
331569215813.3039699412-121.303969941160
341649015778.8669029946711.133097005375
351568615980.7509640138-294.750964013800
361889715897.07391135662999.92608864344
371631616748.7249793255-432.724979325532
381563616625.8783891463-989.878389146343
391716316344.8611365989818.138863401073
401653416577.1231377863-43.1231377862714
411651816564.8808807224-46.8808807223795
421637516551.5718354477-176.571835447670
431629016501.4447363830-211.444736382953
441635216441.4175456336-89.4175456335979
451594316416.0327374804-473.032737480389
461636216281.743150285480.2568497146203
471639316304.527322212288.4726777878423
481905116329.64389118672721.35610881325
491674717102.2115371592-355.21153715923
501632017001.3702910626-681.370291062609
511791016807.93561336751102.06438663247
521696117120.8014254284-159.801425428432
531748017075.4352895279404.564710472147
541704917190.2874417327-141.287441732697
551687917150.1772533191-271.177253319132
561747317073.1925575053399.807442494679
571699817186.6941656521-188.694165652108
581730717133.1256499792173.874350020822
591741817182.4869580621235.513041937862
602016917249.34691652792919.65308347212
611787118078.2092261864-207.209226186427
621722618019.3844573220-793.384457322041
631906217794.15000139791267.84999860212
641780418154.0808041672-350.080804167166
651910018054.69612536691045.30387463311
661852218351.4481568764170.551843123576
671806018399.8662362052-339.866236205155
681886918303.381378086565.618621914
691812718463.9552353019-336.955235301935
701887118368.2967832191502.70321678093
711889018511.0095430646378.990456935397
722126318618.60140295112644.39859704893
731954719369.3215283028177.678471697189
741845019419.7627910889-969.762791088866
752025419144.45616942441109.54383057556
761924019459.4453259391-219.445325939076
772021619397.1468423517818.85315764834
781942019629.6116250211-209.611625021127
791941519570.1048375093-155.104837509345
802001819526.0720191636491.92798083643
811865219665.7257899112-1013.72578991117
821997819377.9384824592600.061517540773
831950919548.2903568588-39.2903568588299
842197119537.13619059242433.86380940759


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8520228.087451165118517.586573958721938.5883283714
8620228.087451165118449.994087293722006.1808150364
8720228.087451165118384.878626760422071.2962755697
8820228.087451165118321.986317939722134.1885843904
8920228.087451165118261.103900191022195.0710021392
9020228.087451165118202.050173738422254.1247285917
9120228.087451165118144.669631993422311.5052703368
9220228.087451165118088.827633152822367.3472691773
9320228.087451165118034.406679338522421.7682229916
9420228.087451165117981.303507747022474.8713945832
9520228.087451165117929.426787186822526.7481151434
9620228.087451165117878.695272783422577.4796295467
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/1hxbj1205170981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/1hxbj1205170981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/27rv61205170981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/27rv61205170981.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/34rys1205170981.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171047i3xo7gva8f85ux9/34rys1205170981.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