Home » date » 2008 » May » 27 »

Exponential smoothing - prijzen jeans dames - Kim Liekens

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 27 May 2008 12:40: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/27/t1211913763f0as1va93eeyt1w.htm/, Retrieved Tue, 27 May 2008 20:42:46 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
44,13 44,13 44,14 44,14 44,14 44,14 44,15 44,17 44,19 44,26 44,27 44,29 44,29 44,29 44,29 44,32 44,33 44,34 44,34 44,34 44,37 44,47 44,51 44,51 44,51 44,52 44,7 44,84 44,9 44,91 44,94 44,94 44,95 45,28 45,34 45,34 45,34 45,36 45,44 45,62 45,75 45,77 45,77 45,77 46,09 46,25 46,28 46,29 46,29 46,29 46,3 46,34 46,34 46,35 46,42 46,52 46,59 46,66 46,67 46,72 46,72 46,72 46,76 46,89 47,02 47,02 47,04 47,18 47,22 47,8 47,88 47,91
 
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 time10 seconds
R Server'George Udny Yule' @ 72.249.76.132


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0554345114806499
gamma0.226961583618481


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
1344.2944.13608214556460.153917854435385
1444.2944.3119882486531-0.0219882486530594
1544.2944.3111790454529-0.0211790454528895
1644.3244.3383445236373-0.0183445236372748
1744.3344.34482465423-0.0148246542299972
1844.3444.3535834613256-0.0135834613256378
1944.3444.3536578284509-0.0136578284509383
2044.3444.3524791104286-0.0124791104285720
2144.3744.373880698356-0.00388069835599936
2244.4744.46158458198080.00841541801923285
2344.5144.49538470239590.0146152976041023
2444.5144.49412828605120.0158717139488331
2544.5144.6017747283616-0.0917747283616066
2644.5244.5223338901019-0.00233389010188034
2744.744.53261581332030.167384186679712
2844.8444.75043780609780.0895621939021751
2944.944.87266821862450.0273317813754801
3044.9144.9337466748532-0.0237466748532142
3144.9444.93313591473890.00686408526105708
3244.9444.9630723152294-0.0230723152294203
3344.9544.9841863840214-0.0341863840214316
3445.2845.0509771468290.229022853170967
3545.3445.32610470743840.0138952925615925
3645.3445.3440000690773-0.00400006907727857
3745.3445.4525612249642-0.112561224964246
3845.3645.370575491329-0.0105754913289928
3945.4445.39039920554030.0496007944597423
4045.6245.50220174937420.117798250625754
4145.7545.66561116381390.0843888361860508
4245.7745.7998275020901-0.0298275020901144
4345.7745.8086933990125-0.0386933990124589
4445.7745.8061034374659-0.0361034374659184
4546.0945.82690961489470.263090385105308
4646.2546.22173049187890.0282695081211273
4746.2846.314035460906-0.0340354609060398
4846.2946.2983734682822-0.0083734682821941
4946.2946.4189795289091-0.128979528909142
5046.2946.3344920667427-0.0444920667426629
5146.346.3324471881525-0.0324471881525383
5246.3446.3702769810044-0.0302769810043699
5346.3446.3850689182122-0.0450689182122161
5446.3546.3821305842786-0.0321305842786401
5546.4246.38075427433670.0392457256632852
5646.5246.45245135038180.0675486496182529
5746.5946.57933503994310.0106649600569284
5846.6646.7107800096162-0.050780009616247
5946.6746.7079647570146-0.0379647570145636
6046.7246.67173644392850.0482635560714684
6146.7246.836453112982-0.116453112982015
6246.7246.7519460283806-0.031946028380581
6346.7646.75060457823660.00939542176342911
6446.8946.82103533354810.0689646664518975
6547.0246.93107810058290.0889218994171372
6647.0247.06553479511-0.0455347951100009
6747.0447.0532779655913-0.0132779655912998
6847.1847.07207840945030.107921590549658
6947.2247.2415122454647-0.0215122454646774
7047.847.34199343860110.458006561398875
7147.8847.87637051143350.0036294885664816
7247.9147.9112640024059-0.00126400240590385


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
7348.056147148656447.873995977882548.2382983194303
7448.122193898812147.857404257119048.3869835405052
7548.188649129091947.855477196040148.5218210621437
7648.285930480504447.890704042676348.6811569183325
7748.358706256116747.905209266227748.8122032460058
7848.431002688486147.921415665529148.9405897114432
7948.493247931209647.929025586500649.0574702759186
8048.55498604492447.936975747877549.1729963419704
8148.640895355441347.969282536184549.3125081746982
8248.790370412535448.064490215829549.5162506092412
8348.866751242560848.087666863255949.6458356218657
8448.896893152813446.540607025665451.2531792799615
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/1gxf21211913641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/1gxf21211913641.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/2lapz1211913641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/2lapz1211913641.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/3wq541211913641.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/27/t1211913763f0as1va93eeyt1w/3wq541211913641.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=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