Home » date » 2010 » May » 27 »

Retail sales and food services - Isabelle Hoes

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 27 May 2010 10:45:09 +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/May/27/t1274957153arol7ybm26vr8tv.htm/, Retrieved Thu, 27 May 2010 12:45:54 +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/2010/May/27/t1274957153arol7ybm26vr8tv.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:
KDGP2W62
 
Dataseries X:
» Textbox « » Textfile « » CSV «
357704 281463 282445 319107 315278 328499 321151 328025 326280 313444 319639 324067 386918 293009 294822 338844 335407 345080 350608 351285 355147 332791 335615 343202 404868 317902 313552 361505 351436 373350 366310 361669 375078 345547 348117 356089 416856 328087 322747 373626 358275 391287 376371 371848 387261 353159 367855 376822 425283 342191 344062 373587 370144 399979 380431 385909 384798 352554 352479 338788 387964 313593 304056 334149 336155 354668 351418 354316 359483 330411 344726 347175
 
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'RServer@AstonUniversity' @ vre.aston.ac.uk


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.609943620608653
beta0.0462444503125317
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13386918376360.29966516910557.7003348314
14293009289731.6965694093277.30343059078
15294822293478.9746162211343.02538377937
16338844338379.351246054464.648753945658
17335407335908.876911778-501.87691177841
18345080345972.14221899-892.142218990135
19350608342181.7906903538426.20930964651
20351285355281.568763131-3996.56876313133
21355147352151.4362632082995.56373679161
22332791340899.140389615-8108.14038961509
23335615342896.785248752-7281.78524875152
24343202343402.26748632-200.267486320168
25404868414078.702641918-9210.70264191797
26317902306803.83004484411098.1699551563
27313552314423.957074853-871.957074853068
28361505360156.3023758391348.69762416102
29351436357366.985262714-5930.98526271351
30373350364109.1441546019240.85584539914
31366310369945.869336141-3635.8693361411
32361669370513.342069944-8844.34206994408
33375078366647.40734398430.59265609964
34345547353091.213458242-7544.21345824172
35348117355653.086272872-7536.08627287159
36356089358710.381447685-2621.38144768518
37416856426514.604984097-9658.60498409742
38328087322716.9421312115370.05786878947
39322747321506.416364541240.58363545983
40373626370113.7060715173512.29392848274
41358275365068.816707848-6793.81670784816
42391287377028.84589875414258.1541012464
43376371380304.41728973-3933.4172897301
44371848378199.162177427-6351.16217742715
45387261382466.892800154794.10719984985
46353159359304.322000702-6145.32200070168
47367855362493.5752682885361.42473171209
48376822375752.0433642051069.95663579466
49425283446851.918075464-21568.9180754641
50342191337711.9497021724479.05029782781
51344062333893.37954970910168.620450291
52373587391451.394660793-17864.3946607932
53370144368582.3290600071561.67093999306
54399979394159.3610882045819.63891179592
55380431384442.248971058-4011.24897105753
56385909380781.0226782375127.97732176317
57384798396551.243097282-11753.2430972824
58352554358227.375240229-5673.37524022942
59352479365613.750351211-13134.7503512112
60338788364578.213513894-25790.2135138935
61387964403581.811297175-15617.8112971753
62313593312959.721236728633.278763271926
63304056307691.410354691-3635.41035469063
64334149339013.438628454-4864.43862845434
65336155330236.9764265155918.0235734848
66354668355689.184978092-1021.18497809226
67351418337962.46738516113455.532614839
68354316346829.1300410567486.86995894386
69359483355431.9955050374051.00449496263
70330411330179.588057195231.411942805222
71344726336851.3993006967874.60069930443
72347175342944.7368183114230.26318168867


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
73405916.737669491389639.951184706422193.524154277
74328618.97028998310301.144704528346936.795875432
75321820.044157382300796.643294615342843.445020149
76357901.479217663332677.759701704383125.198733622
77357418.372030887329592.686698973385244.057362802
78378902.98322812347184.870629806410621.095826434
79367668.330534595334188.979826332401147.681242857
80366597.460273037330674.996465697402519.924080377
81369869.040521126331148.102502673408589.978539579
82340155.506141098301696.013171721378614.999110475
83350250.268980912308275.894278327392224.643683497
84350222.167644986308831.778803132391612.556486839
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/1plyk1274957105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/1plyk1274957105.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/2plyk1274957105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/2plyk1274957105.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/34vwb1274957105.png (open in new window)
http://www.freestatistics.org/blog/date/2010/May/27/t1274957153arol7ybm26vr8tv/34vwb1274957105.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