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:56:43 -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/t1205171842e0ry9c7xankjola.htm/, Retrieved Mon, 10 Mar 2008 18:57:26 +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 time3 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.422989536624582
beta0.000514955626444454
gamma0.94620902518207


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
131448313944.8804166667538.119583333326
141401113686.0979965736324.902003426432
151505714851.1975415833205.802458416676
161488414748.4223866353135.577613364725
171541415341.347388649072.6526113509572
181444014402.879931805237.1200681947994
191490014878.598999854521.4010001455226
201507415071.92372817732.07627182270880
211444214462.0747508767-20.0747508767181
221530715336.3100833830-29.3100833829540
231493814974.5075825248-36.5075825247623
241719317225.0276627274-32.027662727367
251552815776.9425577243-248.942557724304
261476515068.9243948347-303.924394834674
271583815902.9691486429-64.9691486428728
281572315647.217895527675.7821044724187
291615016180.3799702807-30.3799702807264
301548615178.7938436343307.206156365735
311598615760.0959782035225.904021796508
321598316029.3387757661-46.3387757660985
331569215386.8725459578305.127454042171
341649016393.649262055896.3507379441799
351568616081.1241999454-395.124199945367
361889718182.3748650146714.625134985403
371631616931.8248968647-615.824896864662
381563616038.6592424093-402.659242409331
391716316961.440147934201.559852066006
401653416895.3692076351-361.369207635129
411651817185.6590761955-667.65907619552
421637516098.6842863866276.315713613410
431629016622.3856142795-332.385614279458
441635216506.5733049799-154.573304979949
451594316009.9249756602-66.9249756602021
461636216744.9690936872-382.969093687232
471639315960.8885818412432.111418158844
481905119017.647702806233.3522971937673
491674716752.0927339026-5.09273390255112
501632016233.331433221686.6685667783695
511791017692.7749344060217.225065593975
521696117325.7848750970-364.784875097022
531748017447.201810491732.7981895083321
541704917171.8476788322-122.847678832197
551687917194.2362119124-315.236211912375
561747317182.6256225956290.374377404431
571699816922.003074083475.9969259165773
581730717544.9453812475-237.945381247519
591741817267.2466428405150.753357159461
602016919987.2481541018181.751845898201
611787117763.4724595371107.527540462852
621722617342.4697830918-116.469783091849
631906218787.2461782215274.753821778475
641780418126.8193160791-322.819316079116
651910018483.0563700456616.94362995437
661852218369.9382247645152.061775235463
671806018403.7585538249-343.758553824875
681886918710.9106552419158.089344758126
691812718277.4405233282-150.440523328172
701887118633.3007632566237.699236743370
711889018769.2196251411120.780374858885
722126321493.6667510483-230.666751048338
731954719055.0275915991491.97240840091
741845018674.5381477947-224.538147794676
752025420287.3700052764-33.370005276367
761924019170.454284776269.5457152238196
772021620205.930640742810.0693592572279
781942019582.3543934525-162.354393452457
791941519212.4632947279202.536705272050
802001820024.794315328-6.79431532801027
811865219353.2019642645-701.201964264452
821997819687.9602181886290.039781811422
831950919782.1462019758-273.146201975789
842197122147.9623367409-176.962336740871


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
8520126.468692712219570.733377025620682.2040083988
8619146.465836360818543.011880655519749.9197920661
8720958.477274194520310.767024918121606.1875234708
8819911.702882515219222.531320789320600.874444241
8920885.111536591320156.796131437121613.4269417456
9020162.957096864919397.459703006320928.4544907235
9120060.815750197619259.824949591320861.8065508039
9220672.997798694219837.986800774621508.0087966138
9319624.964283496418757.232987942920492.6955790499
9420797.479507262719898.185897882821696.7731166425
9520461.399591039619531.583706190021391.2154758892
9622995.228911262222035.831505527323954.6263169972
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/16zpi1205171800.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/16zpi1205171800.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/2mt551205171800.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/2mt551205171800.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/3xxer1205171800.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Mar/10/t1205171842e0ry9c7xankjola/3xxer1205171800.ps (open in new window)


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