Home » date » 2010 » Aug » 17 »

exponential smoothing - verkocht aantal producten - mattias debbaut

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 17 Aug 2010 11:00:50 +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/Aug/17/t1282042824xkhpngemztvwc4l.htm/, Retrieved Tue, 17 Aug 2010 13:00:29 +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/Aug/17/t1282042824xkhpngemztvwc4l.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:
mattias debbaut
 
Dataseries X:
» Textbox « » Textfile « » CSV «
376 375 374 372 370 369 370 372 373 373 374 376 371 374 369 363 357 366 362 366 361 362 358 363 360 360 348 345 332 333 323 327 332 337 336 337 343 337 326 321 309 302 293 287 292 292 289 302 310 295 276 264 257 243 227 226 226 229 224 240 244 226 208 199 193 180 167 164 166 173 169 191 193 166 143 147 139 129 115 108 106 116 108 135
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.208492559269248
beta0.141775183847602
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13371374.507612695369-3.50761269536900
14374376.585977222432-2.58597722243223
15369370.900310874623-1.90031087462319
16363364.512486632936-1.51248663293580
17357358.327983093222-1.32798309322249
18366367.275602408463-1.27560240846304
19362362.259368067115-0.259368067115133
20366363.3488973112182.65110268878215
21361364.141315833245-3.14131583324479
22362362.978837078825-0.978837078824654
23358363.534128010580-5.53412801057959
24363363.689075557080-0.689075557079548
25360355.2076617745654.79233822543478
26360359.2218744258340.778125574165642
27348354.678026407921-6.67802640792121
28345347.420129010354-2.42012901035366
29332340.998648946626-8.99864894662642
30333347.223273111413-14.2232731114133
31323339.459966416589-16.4599664165887
32327337.626876307825-10.6268763078251
33332329.4463950541162.55360494588433
34337329.2461571137177.75384288628317
35336326.6789730670719.32102693292939
36337332.1817431784184.81825682158205
37343328.51235391042314.4876460895769
38337330.6882180385436.31178196145709
39326321.6879742435314.31202575646864
40321320.0706179905640.92938200943621
41309309.799136350361-0.799136350361437
42302313.364980153577-11.3649801535774
43293304.905156915081-11.9051569150807
44287308.456452468431-21.4564524684312
45292308.030175139126-16.0301751391261
46292307.072034845111-15.0720348451113
47289299.842156329827-10.8421563298269
48302295.5471346782716.45286532172884
49310297.42783679095412.5721632090459
50295291.6372504166873.36274958331285
51276279.99921544962-3.99921544962001
52264272.489107781961-8.48910778196102
53257258.300935615494-1.30093561549421
54243251.664688011571-8.66468801157131
55227242.004060005047-15.0040600050474
56226234.842887633332-8.84288763333197
57226237.202346754043-11.2023467540430
58229234.800738038305-5.80073803830547
59224230.587396995002-6.58739699500185
60240235.9784093476714.02159065232914
61244238.3560469615525.64395303844844
62226224.7171770269881.28282297301206
63208208.508337883012-0.508337883012217
64199198.1427493860380.857250613961867
65193190.9880799453072.01192005469309
66180180.152171035643-0.152171035642596
67167168.571679084693-1.57167908469299
68164167.166604134288-3.16660413428838
69166166.528754607842-0.528754607841677
70173168.0271578485564.97284215144413
71169165.1626751688693.83732483113073
72191176.16734159284414.8326584071559
73193180.69238089551812.3076191044825
74166169.159491556411-3.15949155641064
75143154.659252026973-11.6592520269731
76147144.6243330530092.37566694699055
77139139.594335045257-0.594335045256713
78129129.203786698198-0.203786698197518
79115119.18633660126-4.1863366012599
80108115.623060155510-7.6230601555096
81106114.199953626781-8.19995362678145
82116114.7864715222821.21352847771753
83108109.975515644333-1.97551564433303
84135119.30880994794115.6911900520593


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
85119.819716647760104.639012598616135.000420696903
86101.10225256807585.5872789328358116.617226203313
8786.366966031275970.5075809733362102.226351089216
8886.426231519952869.8606126703296102.991850369576
8979.676100465976662.508453302623396.8437476293298
9071.882057790694454.142682754190589.6214328271982
9162.554806860640844.400501771904880.7091119493768
9257.604208695657838.657792952693976.5506244386217
9355.434950134177535.21335206352375.656548204832
9458.374192450921335.522551810247081.2258330915955
9552.319601073566428.431756147734176.2074459993987
9660.709787265677834.594956609599486.8246179217563
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/1j9ga1282042847.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/1j9ga1282042847.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/2j9ga1282042847.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/2j9ga1282042847.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/3j9ga1282042847.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Aug/17/t1282042824xkhpngemztvwc4l/3j9ga1282042847.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