Home » date » 2008 » May » 26 »

Exponential Smoothing – Vooruitzichten kledingprijs (additief) - Matthias Spillemaeckers

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Mon, 26 May 2008 15:06:52 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2008/May/26/t1211836379im75deul9yf0ijr.htm/, Retrieved Mon, 26 May 2008 23:13:02 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8 5 2 5 -4 -4 -1 5 16 5 11 16 22 12 8 4 17 5 11 9 4 7 -5 9 11 11 -4 -7 9 -3 14 11 8 -14 -8 -2 15 -8 -4 -17 -13 0 9 -7 -14 -21 -10 -1 7 -14 -12 -16 -15 -15 -24 -14 -8 -14 -13 0 -6 -37 -12 -36 -32 -18 -22 -13 -17 -18 -19 -24 -14 -3 -6 -25 -19 -11 -13 -11 -22 -10 -4 5 -8 -7 5 -13 -15 3 3 7 16 16 18 10
 
Text written by user:
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.0294665928016946
beta0.872429013811499
gamma0.295401379572641


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
132221.14944444444450.850555555555545
141210.28996004105091.71003995894914
1586.499762584788781.50023741521122
1642.825283664836541.17471633516346
171716.33807844695560.661921553044351
1855.2277792693132-0.227779269313201
191111.8770746685325-0.877074668532503
20910.2346901383658-1.23469013836584
2145.59169375574241-1.59169375574241
2279.31392587562775-2.31392587562775
23-5-2.21127566467869-2.78872433532131
24912.0528409420129-3.05284094201288
251118.9745456389925-7.9745456389925
26117.715445291770463.28455470822954
27-43.56598873356366-7.56598873356366
28-7-1.04754191787462-5.95245808212538
29911.3464256781728-2.34642567817278
30-3-0.946727796177753-2.05327220382225
31144.576562604797499.42343739520251
32112.513909383706228.48609061629378
338-2.3163659067508510.3163659067509
34-141.48445564884403-15.4844556488440
35-8-10.96878010594432.96878010594427
36-23.13345990457096-5.13345990457096
37158.273521579416686.72647842058332
38-80.744189547425426-8.74418954742543
39-4-7.111129461610423.11112946161042
40-17-10.9135645365030-6.08643546349696
41-132.54073235050789-15.5407323505079
420-10.365920158982810.3659201589828
439-1.1758287740398810.1758287740399
44-7-3.45519134772467-3.54480865227533
45-14-8.39467179203912-5.60532820796088
46-21-13.1487609903597-7.85123900964026
47-10-20.579092167378410.5790921673784
48-1-8.872353098397787.87235309839778
4970.08863653239000516.91136346761
50-14-11.8284039746170-2.17159602538298
51-12-15.87996647894783.87996647894783
52-16-22.06569380901746.06569380901745
53-15-10.4204656082173-4.5795343917827
54-15-14.7516195454207-0.248380454579340
55-24-5.3765090315148-18.6234909684852
56-14-12.6262275502268-1.37377244977323
57-8-18.224741402525610.2247414025256
58-14-22.88157824951838.88157824951826
59-13-23.830082470379410.8300824703794
600-12.180660064124712.1806600641247
61-6-2.54617498650440-3.45382501349560
62-37-16.8171047952368-20.1828952047632
63-12-19.57186644277207.57186644277202
64-36-24.8346870163289-11.1653129836711
65-32-17.0046403904448-14.9953596095552
66-18-20.92423821523982.9242382152398
67-22-17.1654221152343-4.83457788476569
68-13-19.15060208484846.15060208484844
69-17-21.09592195821254.0959219582125
70-18-26.36977339798838.36977339798826
71-19-26.83922430215677.83922430215669
72-24-15.0321090664354-8.96789093356457
73-14-11.1882180369779-2.81178196302213
74-3-30.904956170665527.9049561706655
75-6-23.717863867189817.7178638671898
76-25-33.22511504023848.22511504023835
77-19-24.59478863745825.59478863745824
78-11-20.9138777646179.913877764617
79-13-17.13754924594454.13754924594448
80-11-13.44230288457032.44230288457030
81-22-13.9146640894396-8.08533591056042
82-10-16.46400546965316.46400546965314
83-4-15.332561960878311.3325619608783
845-6.3420952273741811.3420952273742
85-82.28628118007011-10.2862811800701
86-7-6.61538003449939-0.384619965500612
875-1.680816470596396.68081647059639
88-13-13.01689202846970.0168920284697158
89-15-4.37561188717197-10.6243881128280
9030.6556184965625472.34438150343745
9132.948225216314880.0517747836851212
9276.327401733943790.672598266056214
93163.0295030764864112.9704969235136
94166.058000768309599.94199923169041
95189.563283795050278.43671620494973
961019.2722627961366-9.27226279613664


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9721.36358167352994.7308798794046437.9962834676551
9816.1393984397394-0.5186005996663132.7973974791451
9923.65642251445116.9441901789009640.3686548500013
10010.5867006649311-6.219303035155127.3927043650173
10116.5499678319675-0.39947884513261733.4994145090677
10226.25880232843809.1068253290256543.4107793278504
10328.411210097071510.989179910375345.8332402837676
10432.551683400348714.784864223959450.3185025767381
10533.327278489061815.135133015732451.5194239623911
10635.339423134125716.637132522325154.0417137459262
10738.098709506566718.798707596301857.3987114168316
10842.243610920523422.257040073576062.2301817674707
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/1kukc1211835998.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/1kukc1211835998.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/2jzsf1211835998.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/2jzsf1211835998.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/38jqb1211835999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/26/t1211836379im75deul9yf0ijr/38jqb1211835999.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