Home » date » 2009 » Jun » 02 »

Exponential Smoothing - Omzetcijfers Carrefour Burcht - Jeroen Van Eeckhoven

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 02 Jun 2009 09:04:55 -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/02/t12439551843430551rrilgdgp.htm/, Retrieved Tue, 02 Jun 2009 17:06:28 +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/02/t12439551843430551rrilgdgp.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 «
2291180 1971664 2193270 2197733 2345324 2195121 2170583 2241521 2154945 2912568 2392562 3336621 4080642 3735329 4018383 4171360 3855698 4101316 4199346 3959646 3960841 4784025 4105467 5929558 4048642 3828808 4268127 4171816 4004783 4295447 3968177 3918480 4040260 4530715 4103330 6025506 4632308 4133863 4519182 4151573 4486595 4504699 4180443 4222193 4373727 4734738 4403232 5903985 4414074 4061816 4504697 3994176 4114925 4485120 4171230 4476075 4179369 4823185 4585751 6110454 4279575 3782118 4098678 4065616 4413733 4481214 4345018 4294488 4361269 4535031 4318397 6040168
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.538050873276852
beta0.0438182063827687
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1340806423176369.41212607904272.587873931
1437353293335539.4904987399789.509501302
1540183833870350.74007012148032.25992988
1641713604136728.0196793534631.9803206502
1738556983878142.30307426-22444.3030742551
1841013164119535.8192681-18219.8192680990
1941993464058108.47280823141237.527191766
2039596464247154.58338358-287508.583383575
2139608414039735.59209069-78894.5920906914
2247840254778152.071953075872.92804693151
2341054674297801.37769399-192334.377693994
2459295585173145.17927921756412.820720788
2540486426772887.1396508-2724245.13965080
2638288084703358.88601399-874550.886013987
2742681274362841.05907513-94714.0590751283
2841718164367130.14716556-195314.147165559
2940047833873940.90668424130842.093315756
3042954474118861.27412441176585.725875588
3139681774159602.69666782-191425.696667817
3239184803887449.4618603331030.5381396674
3340402603871149.0717204169110.928279602
3445307154711369.80119669-180654.801196693
3541033303963904.7315582139425.268441805
3660255065388655.47043412636850.529565884
3746323085245991.50930802-613683.509308024
3841338635146088.50435656-1012225.50435656
3945191825068064.86997888-548882.869978877
4041515734747133.43335462-595560.433354619
4144865954145440.0667464341154.933253599
4245046994485790.2444390218908.7555609755
4341804434229112.99294911-48669.9929491067
4442221934097320.83443356124872.165566443
4543737274158298.36137719215428.638622811
4647347384825958.63990418-91220.6399041796
4744032324240675.18306797162556.816932035
4859039855874403.1715625129581.8284374904
4944140744779743.55854506-365669.558545060
5040618164587454.74218423-525638.742184228
5145046974955028.43373544-450331.433735436
5239941764637631.68256575-643455.682565747
5341149254413825.54093354-298900.540933545
5444851204216784.21208906268335.787910937
5541712304024826.28750856146403.712491442
5644760754044493.33376011431581.666239887
5741793694285891.75095349-106522.750953489
5848231854604642.06612746218542.933872543
5945857514276535.19204577309215.807954230
6061104545904478.94031623205975.059683773
6142795754703033.98939944-423458.989399437
6237821184385283.58952102-603165.589521022
6340986784723633.92759812-624955.92759812
6440656164196651.60483322-131035.604833215
6544137334393386.3813400920346.6186599061
6644812144623343.19976922-142129.199769218
6743450184137723.12519333207294.874806668
6842944884306841.32790667-12353.3279066654
6943612694035287.77517791325981.224822092
7045350314721592.44561686-186561.445616863
7143183974192535.55285227125861.447147725
7260401685644941.00494496395226.995055038


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
734229826.249010103231984.9678045227667.53021619
744042156.205141792897712.198229645186600.21205395
754694447.95951213409637.268239385979258.65078482
764746097.678950973324917.39274696167277.96515503
775100564.411846893545603.426330626655525.39736315
785261335.700222213574238.727544586948432.67289985
795033772.958434373215521.630048366852024.28682037
805005170.852025193056264.578902386954077.12514799
814912129.791359692832707.659853136991551.92286626
825194158.290474742984084.306874967404232.2740745
834922089.831089142581014.352076437263165.31010186
846440526.640551733967931.756950538913121.52415293
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/17vtl1243955093.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/17vtl1243955093.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/283ep1243955093.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/283ep1243955093.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/36vou1243955093.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Jun/02/t12439551843430551rrilgdgp/36vou1243955093.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