Home » date » 2010 » Dec » 26 »

Retail sale of wines and spirits in specialised stores

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 26 Dec 2010 15:20:25 +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/26/t1293376700c2p3fpmuxqii2wa.htm/, Retrieved Sun, 26 Dec 2010 16:18:24 +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/26/t1293376700c2p3fpmuxqii2wa.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:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
57,7 63,6 78 77,4 74,1 85,9 82 78,4 68,1 70,9 85,2 149,6 57,9 63,7 85 66,1 80,2 83,4 85,7 81,8 69,4 76,4 90,3 157,3 65,3 68,4 72,7 86,6 82,6 84,8 93,4 82,2 75,2 83,9 85,4 166,3 70,4 73,9 82,4 92,3 82,7 95,8 105,8 84,2 82,7 88,4 90,2 176,6 69,5 77,3 98,6 86,4 90,8 101,5 112,2 93,6 93,8 90,8 98,1 187,6 75 83,7 99,7 104,9 98,9 117,3 115,7 102,2 101,9 96,6 110 203,7 82,3 93,3 121,9 100,9 107,7 130 123,2 116,1 105,3 107,7 123,9 205,2 90,3 106,9 122,4 111,3 122,6 124,8 139,5 118,8 111 121,2 120,6 219,1 101,3 105 113,4 133,6 123,9 136,2 151,7 121,9 120,2 132,2 125,2 233,8
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time4 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0374406816921577
beta0.180510709878271
gamma0.605025766097544


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1357.957.948705144157-0.0487051441569477
1463.763.63035858937030.0696414106296857
158584.85454622467340.145453775326558
1666.165.87799202774220.222007972257813
1780.279.65254663323780.547453366762184
1883.482.467837729390.932162270610036
1985.783.14176378679532.55823621320472
2081.879.73737576605082.06262423394917
2169.469.2323724826590.167627517340946
2276.472.40890700882843.99109299117163
2390.387.65674245811752.64325754188252
24157.3154.2368409172383.06315908276193
2565.359.84899636614935.45100363385067
2668.466.13631542386242.26368457613756
2772.788.5151219120917-15.8151219120917
2886.668.376134609278418.2238653907216
2982.683.8688571282422-1.26885712824222
3084.887.190333725817-2.39033372581697
3193.488.94854535915284.45145464084719
3282.285.3169164453911-3.11691644539114
3375.273.04061818279832.15938181720171
3483.978.96147748902164.9385225109784
3585.494.4595676702692-9.05956767026915
36166.3164.6365292903571.66347070964289
3770.466.53912216577773.86087783422234
3873.971.1991063515612.70089364843899
3982.483.7262544660784-1.32625446607841
4092.384.020531337288.27946866272
4182.788.061233125874-5.36123312587405
4295.890.77593658858155.02406341141847
43105.897.24904676918758.55095323081251
4484.288.948820865085-4.74882086508491
4582.779.18654302833253.51345697166754
4688.487.37221850137521.02778149862480
4790.295.1061723789435-4.90617237894347
48176.6177.141954535683-0.541954535683431
4969.573.6173444021006-4.11734440210057
5077.377.5777153804241-0.277715380424141
5198.688.300642428607210.2993575713928
5286.495.1056862137858-8.70568621378584
5390.890.26175618176420.538243818235756
54101.599.83498200188061.66501799811938
55112.2108.7353048449723.46469515502804
5693.691.43773087152872.16226912847132
5793.886.43531032505087.36468967494922
5890.893.7751873908708-2.97518739087077
5998.198.1667570034802-0.0667570034802196
60187.6188.596943934841-0.996943934841454
617575.9700538521501-0.970053852150102
6283.782.76591055886780.934089441132244
6399.7100.909547260828-1.20954726082755
64104.995.87528606258069.0247139374194
6598.997.24059022093961.65940977906040
66117.3108.3845290690198.91547093098099
67115.7119.549984834011-3.84998483401083
68102.299.92702014977962.27297985022045
69101.997.8857087147224.01429128527796
7096.699.2304817071666-2.63048170716661
71110105.8954487119704.10455128803022
72203.7203.4050704277540.294929572246417
7382.381.68264457506360.617355424936434
7493.390.4197220085172.88027799148301
75121.9108.98052903639812.9194709636017
76100.9110.739123801432-9.83912380143195
77107.7106.9180783113870.781921688613053
78130123.6913345704346.30866542956579
79123.2127.698680615347-4.49868061534676
80116.1110.2724367249775.82756327502264
81105.3109.358056609725-4.05805660972473
82107.7106.3208319230021.37916807699769
83123.9118.0747124014935.82528759850682
84205.2222.200796333604-17.0007963336039
8590.389.29116709515081.00883290484919
86106.9100.2544171006266.64558289937432
87122.4126.991486755384-4.591486755384
88111.3113.733232389089-2.43323238908924
89122.6116.5799589354046.02004106459587
90124.8138.512650576417-13.7126505764169
91139.5135.1402820541594.35971794584052
92118.8123.056360645890-4.25636064588959
93111115.337491648461-4.33749164846083
94121.2115.3577288166685.84227118333246
95120.6130.879044028428-10.2790440284283
96219.1227.273459470361-8.17345947036134
97101.396.24954326399825.05045673600178
98105111.551212903444-6.5512129034437
99113.4132.327383735175-18.9273837351754
100133.6118.77593944507414.8240605549257
101123.9127.485700584144-3.58570058414379
102136.2137.851549927542-1.65154992754162
103151.7145.6988033434746.00119665652565
104121.9127.467128760491-5.56712876049113
105120.2119.0462329785341.15376702146578
106132.2125.4047308301196.79526916988065
107125.2131.746027470783-6.54602747078293
108233.8234.800218574158-1.00021857415777


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
109104.72088676716797.1658108821946112.275962652140
110113.405032371249105.827662374376120.982402368121
111127.840307448734120.223906734607135.456708162860
112135.06758713278127.40340878845142.731765477110
113132.294141308603124.589058638876139.999223978329
114144.532266559535136.733869779740152.330663339330
115157.557334633567149.629342512148165.485326754985
116130.924831635917123.045170184615138.80449308722
117126.364465653528118.433023114808134.295908192247
118136.453592955893128.364269614092144.542916297694
119134.595071071724126.417053045136142.773089098312
120246.821782631884223.808026154102269.835539109665
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/117u21293376821.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/117u21293376821.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/217u21293376821.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/217u21293376821.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/3byb51293376821.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/26/t1293376700c2p3fpmuxqii2wa/3byb51293376821.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