Home » date » 2008 » Jul » 16 »

Single Exponential Smoothing model_Gem consumptieprijs roze zalm_Dominique Van Santfoort

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 16 Jul 2008 05:00:01 -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/Jul/16/t12162061010y14sqahgv4lf86.htm/, Retrieved Wed, 16 Jul 2008 11:01:45 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
11.73 11.74 11.65 11.38 11.53 11.75 11.82 11.83 11.63 11.55 11.4 11.4 11.63 11.46 11.35 11.7 11.52 11.64 11.9 11.73 11.7 11.54 11.97 11.64 11.98 11.79 11.66 11.96 11.83 12.36 12.53 12.55 12.53 12.24 12.34 12.05 12.22 12.23 11.92 12.13 12.1 12.15 12.23 12.08 12.02 11.93 12.16 11.87 11.93 11.79 11.43 11.63 11.93 11.89 11.83 11.59 12.04 11.81 11.9 11.72 11.91 11.94 11.91 11.84 12.01 11.89 11.8 11.7 11.5 11.76 11.61 11.27 11.64 11.39 11.54 11.62 11.59 11.44 11.31 11.56 11.4 11.51 11.5 11.24 11.8 11.87 11.86 12.11 11.92 12.61 13.34 13.31 13.47 13.3 13.18 13.24
 
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 time1 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.779534626319323
beta0
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
211.7411.730.00999999999999979
311.6511.7377953462632-0.087795346263194
411.3811.6693558338213-0.289355833821338
511.5311.44379294203010.0862070579698919
611.7511.51099432875080.239005671249243
711.8211.69730752537620.122692474623765
811.8311.79295055773430.0370494422657348
911.6311.8218318808662-0.191831880866223
1011.5511.6722922872990-0.122292287299038
1111.411.5769612148176-0.176961214817647
1211.411.4390138203518-0.0390138203517605
1311.6311.40860119648260.221398803517438
1411.4611.5811892300501-0.121189230050073
1511.3511.4867180288891-0.136718028889065
1611.711.38014159132790.319858408672086
1711.5211.6294822964072-0.109482296407201
1811.6411.54413705538880.0958629446111683
1911.911.61886554009420.281134459905831
2011.7311.8380195862423-0.108019586242346
2111.711.7538145784458-0.0538145784457527
2211.5411.7118642511465-0.171864251146511
2311.9711.57789011635140.392109883648637
2411.6411.8835533479775-0.243553347977517
2511.9811.69369507987300.286304920126955
2611.7911.9168796787976-0.126879678797595
2711.6611.8179725757986-0.157972575798595
2811.9611.69482748295470.265172517045265
2911.8311.9015386419398-0.071538641939771
3012.3611.84577179342790.514228206572138
3112.5312.24663048628090.283369513719069
3212.5512.46752683426820.0824731657317876
3312.5312.5318175226983-0.00181752269831392
3412.2412.5304007008209-0.290400700820856
3512.3412.30402329902360.0359767009764003
3612.0512.3320683831754-0.282068383175440
3712.2212.11218631150030.107813688499721
3812.2312.19623081487700.0337691851229831
3911.9212.2225550639830-0.30255506398297
4012.1311.9867029152400.143297084760015
4112.112.09840795466100.00159204533896684
4212.1512.09964900912940.050350990870573
4312.2312.13889934998250.0911006500174736
4412.0812.2099154611513-0.129915461151345
4512.0212.1086418606896-0.0886418606896289
4611.9312.0395424609407-0.109542460940689
4712.1611.95415031958520.205849680414810
4811.8712.1146172732853-0.244617273285302
4911.9311.92392963856360.00607036143640727
5011.7911.9286616954975-0.138661695497547
5111.4311.8205701025131-0.390570102513063
5211.6311.51610718359900.113892816400959
5311.9311.60489057767260.325109422327381
5411.8911.85832462971950.0316753702805155
5511.8311.8830166776546-0.0530166776546341
5611.5911.8416883416504-0.251688341650437
5712.0411.64548856429300.394511435706967
5811.8111.9530238889056-0.143023888905562
5911.911.84153181511280.05846818488717
6011.7211.8871097897704-0.167109789770420
6111.9111.75684192224740.153158077752565
6211.9411.87623394715610.063766052843933
6311.9111.9259417933316-0.0159417933316188
6411.8411.913514613424-0.0735146134239955
6512.0111.85620742671950.153792573280489
6611.8911.9760940628624-0.0860940628624043
6711.811.9089807597406-0.108980759740648
6811.711.8240264839202-0.124026483920227
6911.511.7273435451238-0.227343545123773
7011.7611.55012137962960.209878620370397
7111.6111.7137290315325-0.103729031532456
7211.2711.6328686596983-0.362868659698339
7311.6411.34999997465740.2900000253426
7411.3911.5760650360454-0.186065036045438
7511.5411.43102089770070.108979102299333
7611.6211.51597388148820.104026118511808
7711.5911.5970658429097-0.00706584290974277
7811.4411.5915577736975-0.151557773697464
7911.3111.4734132412124-0.163413241212423
8011.5611.34602696128830.213973038711734
8111.411.5128263540628-0.112826354062827
8211.5111.42487430430950.0851256956905093
8311.511.49123273168980.00876726831023689
8411.2411.4980671209158-0.258067120915825
8511.811.29689486424740.503105135752596
8611.8711.68908273824560.180917261754363
8711.8611.83011400828200.0298859917179612
8812.1111.85341117366810.256588826331917
8911.9212.0534310485204-0.133431048520448
9012.6111.94941692597270.660583074027334
9113.3412.46436430573740.875635694262566
9213.3113.14695264945630.163047350543737
9313.4713.27405370493470.195946295065269
9413.313.4268006268371-0.126800626837092
9513.1813.3279551475786-0.147955147578585
9613.2413.21261898689890.0273810131011079


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
9713.233963434714912.798258356799213.6696685126306
9813.233963434714912.681515127576813.786411741853
9913.233963434714912.585457961185213.8824689082446
10013.233963434714912.501898160073213.9660287093566
10113.233963434714912.426944362155714.0409825072742
10213.233963434714912.358383626466314.1095432429635
10313.233963434714912.294814768235114.1731121011947
10413.233963434714912.235284089334714.2326427800951
10513.233963434714912.17910768532214.2888191841078
10613.233963434714912.125775332827214.3421515366026
10713.233963434714912.074894374518914.3930324949110
10813.233963434714912.026154963374414.4417719060555
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/1a0451216205999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/1a0451216205999.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/2yrur1216205999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/2yrur1216205999.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/3svn61216205999.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jul/16/t12162061010y14sqahgv4lf86/3svn61216205999.ps (open in new window)


 
Parameters (Session):
par1 = 12 ; par2 = Single ; par3 = additive ;
 
Parameters (R input):
par1 = 12 ; par2 = Single ; 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