Home » date » 2010 » Jul » 30 »

Exponential smoothing omzet product x

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Fri, 30 Jul 2010 13:35:48 +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/Jul/30/t1280497021uo7er8nrfl7omei.htm/, Retrieved Fri, 30 Jul 2010 15:37:05 +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/Jul/30/t1280497021uo7er8nrfl7omei.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:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
56 55 54 52 72 71 56 46 47 47 48 50 44 38 33 33 52 54 39 22 31 31 38 42 41 31 36 34 51 47 31 19 30 33 36 40 32 25 28 29 55 55 40 38 44 41 49 59 61 47 43 39 66 68 63 68 67 59 68 78 82 70 62 68 94 102 100 104 103 93 110 114 120 102 95 103 122 139 135 135 137 130 148 148 145 128 131 133 146 163 151 157 152 149 172 167 160 150 160 165 171 179 171 176 170 169 194 196 188 174 186 191 197 206 197 204 201 190 213 213
 
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.653714754766023
beta0.0529159338485531
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
134453.1428952991453-9.14289529914532
143841.0687479080939-3.06874790809392
153333.8175397197737-0.817539719773748
163332.67636593279890.323634067201063
175251.04238941405820.95761058594183
185452.52264496167441.47735503832563
193938.06043635041200.93956364958796
202228.0708335569269-6.07083355692687
213124.66342884324786.33657115675216
223128.66945519769192.33054480230812
233831.09563438460456.90436561539552
244237.6672896987644.332710301236
254131.4166430463079.5833569536930
263134.4910323904657-3.49103239046567
273628.53224486816847.46775513183162
283434.2779806135972-0.277980613597194
295153.5249638002933-2.52496380029329
304753.8428273489417-6.84282734894171
313134.4017908131469-3.40179081314695
321919.6428349077232-0.642834907723216
333024.76431058724255.23568941275745
343327.30938126657805.69061873342196
353634.2781032352321.72189676476797
364037.15427053574692.84572946425313
373232.2812411328842-0.281241132884190
382524.56975068266200.430249317337953
392825.29509562943472.70490437056531
402925.40616170530323.59383829469679
415546.7011567421888.29884325781202
425553.26895039610121.73104960389878
434041.5904110003053-1.59041100030529
443829.99967273478898.00032726521112
454444.1346471304973-0.134647130497271
464144.4685044366325-3.46850443663246
474944.90055042242674.09944957757329
485950.62745772582728.3725422741728
496149.383078694256411.6169213057436
504751.2060666636596-4.20606666365965
514351.03797926002-8.03797926002
523945.4121877876488-6.41218778764881
536662.42734130231453.57265869768548
546864.09971207637423.90028792362581
556353.2325848468589.767415153142
566853.324167232086314.6758327679137
576770.1733260239246-3.17332602392462
585968.4285043070775-9.42850430707755
596868.4411291716005-0.441129171600537
607873.37848265719874.62151734280127
618271.374709244887610.6252907551124
627067.60510938522062.39489061477937
636271.1884931498553-9.1884931498553
646866.09704567160281.90295432839717
659493.01663637679620.983363623203758
6610294.03133230509897.96866769490114
6710088.917730028486111.0822699715139
6810492.676313844761811.3236861552382
69103102.1450162347870.854983765213376
7093101.998622743614-8.99862274361436
71110106.5504719888253.44952801117455
72114117.06491965552-3.06491965552
73120113.1301328340696.8698671659308
74102104.940289415024-2.94028941502401
7595101.725076612879-6.72507661287882
76103102.8702640319260.129735968074158
77122129.036354549051-7.03635454905111
78139127.67405211962511.3259478803749
79135126.3961847612478.60381523875284
80135129.0952672847795.90473271522131
81137131.6860129136695.31398708633077
82130131.486272887244-1.48627288724373
83148145.9634294176102.03657058239031
84148153.953234341842-5.95323434184226
85145152.125556798794-7.12555679879358
86128131.460430191638-3.46043019163804
87131126.6474294889254.35257051107536
88133137.844007656779-4.84400765677859
89146158.541174712991-12.5411747129909
90163160.0124597293542.98754027064592
91151152.126151540346-1.12615154034631
92157146.97851409009510.0214859099047
93152151.6468372806060.35316271939422
94149145.2686607556363.73133924436351
95172163.9764005709188.02359942908225
96167172.920210430047-5.92021043004689
97160170.516252894801-10.5162528948008
98150148.5945565347511.40544346524877
99160149.52709509370810.4729049062915
100165161.6108199855283.38918001447223
101171185.380362895994-14.3803628959942
102179191.318722250232-12.3187222502323
103171171.764514435572-0.764514435571698
104176170.4885973912045.51140260879649
105170168.4796529708611.52034702913903
106169163.6937079465395.30629205346131
107194184.6312578834629.36874211653821
108196189.3862966869546.61370331304585
109188193.778398973095-5.77839897309511
110174179.440103835476-5.44010383547618
111186179.1586232179246.84137678207557
112191186.4108416161744.58915838382612
113197204.848473566369-7.8484735663692
114206216.033667724240-10.0336677242397
115197202.316256529717-5.31625652971738
116204200.4225735367973.57742646320298
117201195.8849342989695.11506570103097
118190195.001892640157-5.00189264015745
119213210.4929825240962.50701747590352
120213209.4564069829773.54359301702263


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
121207.092155244158194.83616965225219.348140836066
122196.390141896129181.511526378341211.268757413917
123203.847727131254186.530975858222221.164478404285
124205.540964359967185.892588125736225.189340594198
125216.206117278357194.290389530211238.121845026503
126231.571257682240207.426886537931255.715628826548
127226.199640682604199.848686708472252.550594656737
128231.197991442581202.651100964909259.744881920253
129225.067414671224194.327104315254255.807725027195
130217.373502862963184.436328866192250.310676859733
131238.943930823285203.801980289545274.085881357025
132236.750011493138199.391961074474274.108061911802
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/18ehp1280496945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/18ehp1280496945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/28ehp1280496945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/28ehp1280496945.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/3j5ha1280496945.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Jul/30/t1280497021uo7er8nrfl7omei/3j5ha1280496945.ps (open in new window)


 
Parameters (Session):
par1 = 60 ; par2 = 1 ; par3 = 0 ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
Parameters (R input):
par1 = 12 ; par2 = Triple ; par3 = additive ; par4 = 0 ; par5 = 12 ; par6 = White Noise ; par7 = 0.95 ;
 
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