Home » date » 2009 » Aug » 19 »

Double Smoothing - Gem. prijs gebakken tong of forel - Niels Braspennincx

*Unverified author*
R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Tue, 18 Aug 2009 16:37:21 -0600
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui.htm/, Retrieved Wed, 19 Aug 2009 00:38:40 +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/2009/Aug/19/t1250635120lvngcyyyy0quyui.htm/},
    year = {2009},
}
@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 = {2009},
    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 «
15.22 15.27 15.31 15.33 15.42 15.49 15.65 15.67 15.69 15.83 15.92 15.99 15.94 15.96 16.03 16.09 16.04 16.23 16.2 16.2 16.26 16.28 16.27 16.29 16.3 16.37 16.39 16.42 16.43 16.37 16.37 16.39 16.48 16.51 16.5 16.54 16.52 16.56 16.61 16.75 16.75 16.79 16.82 16.84 17.14 17.25 17.28 17.3 17.34 17.44 17.48 17.55 17.59 17.66 17.67 17.64 17.68 17.72 17.78 17.83 17.88 18.11 18.16 18.27 18.29 18.35 18.35 18.38 18.41 18.41 18.42 18.43 18.48 18.54 18.65 18.66 18.69 18.72 18.72 18.73 18.84 18.83 18.91 18.91 18.94 18.97 19 19.08 19.18 19.24 19.23 19.25 19.3 19.33 19.35 19.35 19.31 19.47 19.7 19.76 19.9 19.97 20.1 20.26 20.44 20.43 20.57 20.6 20.69 20.93 20.98 21.11 21.14 21.16 21.32 21.32 21.48 21.58 21.74 21.75 21.81 21.89 22.21 22.37 22.47 22.51 22.55 22.61 22.58 22.85 22.93 22.98
 
Output produced by software:


Summary of computational transaction
Raw Inputview raw input (R code)
Raw Outputview raw output of R engine
Computing time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.980728633093982
beta0.0666957327863417
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
315.3115.32-0.00999999999999801
415.3315.3595386095206-0.0295386095205714
515.4215.37798301253070.042016987469319
615.4915.46935238694800.0206476130520272
715.6515.54111477293830.108885227061711
815.6715.7065365413768-0.0365365413768028
915.6915.7269491473039-0.0369491473039094
1015.8315.74454023973070.0854597602693374
1115.9215.88777121113230.0322287888676556
1215.9915.98090514316290.00909485683710365
1315.9416.0519458640137-0.111945864013743
1415.9615.9969560587501-0.0369560587500857
1516.0316.01309359156460.0169064084353785
1616.0916.08316144338640.00683855661361221
1716.0416.1438027774779-0.103802777477863
1816.2316.08914520448480.140854795515171
1916.216.2836436892374-0.0836436892374302
2016.216.2524989134944-0.0524989134944427
2116.2616.24846473538310.0115352646168887
2216.2816.3079852356862-0.0279852356861880
2316.2716.3269163238720-0.0569163238719632
2416.2916.3137509451312-0.0237509451312476
2516.316.3315582437749-0.0315582437748745
2616.3716.33964446327440.0303555367256330
2716.3916.410436868344-0.0204368683439853
2816.4216.4300789233815-0.0100789233815313
2916.4316.4592200450642-0.0292200450641538
3016.3716.4676776253735-0.0976776253735459
3116.3716.4026077625241-0.0326077625240622
3216.3916.3992208900486-0.0092208900485744
3316.4816.41816705080500.0618329491950327
3416.5116.510842265057-0.00084226505699192
3516.516.5419950092000-0.0419950091999652
3616.5416.53004116785820.00995883214181248
3716.5216.5696913576613-0.0496913576613132
3816.5616.5475905660360.0124094339639989
3916.6116.58720550511910.0227944948809444
4016.7516.63849636816620.111503631833784
4116.7516.7840803206555-0.0340803206554732
4216.7916.78465671450730.00534328549273155
4316.8216.8242464742492-0.00424647424916458
4416.8416.8541535183854-0.0141535183854096
4517.1416.87341865315880.266581346841246
4617.2517.18544570505550.0645542949445179
4717.2817.3035615657101-0.0235615657101143
4817.317.3337185070034-0.0337185070034458
4917.3417.3517087036146-0.0117087036145769
5017.4417.39051867345720.049481326542832
5117.4817.4925760520314-0.0125760520314486
5217.5517.53294937776260.0170506222373561
5317.5917.6034937195266-0.0134937195265827
5417.6617.64319972095150.0168002790484714
5517.6717.7137148274121-0.0437148274120744
5617.6417.7220216312360-0.0820216312359676
5717.6817.6873947867817-0.0073947867817381
5817.7217.7254729294101-0.00547292941011079
5917.7817.76507790600840.0149220939915935
6017.8317.82566092638780.00433907361222197
6117.8817.87614869626150.00385130373848597
6218.1117.92641001162900.183589988371036
6318.1618.1649548987916-0.00495489879162747
6418.2718.21826431450490.0517356854950961
6518.2918.3305558621057-0.0405558621057125
6618.3518.34968167061700.000318329383031113
6718.3518.4089147911328-0.058914791132807
6818.3818.4062026534025-0.0262026534025352
6918.4118.4338583193649-0.0238583193648516
7018.4118.4622525582762-0.0522525582762121
7118.4218.4593818925585-0.0393818925585343
7218.4318.4665578713074-0.0365578713073837
7318.4818.47411218302950.00588781697050322
7418.5418.52367932114770.0163206788522885
7518.6518.58454580801280.0654541919871505
7618.6618.6978803239053-0.0378803239053127
7718.6918.7073939535739-0.0173939535738796
7818.7218.7358614074955-0.0158614074955281
7918.7218.7647943719934-0.0447943719933797
8018.7318.7624219313129-0.0324219313129213
8118.8418.77006276549170.0699372345083269
8218.8318.8826647879735-0.0526647879735016
8318.9118.87158267090290.0384173290971042
8418.9118.9523402874399-0.0423402874398739
8518.9418.9511271013324-0.0111271013323595
8618.9718.9797977522564-0.00979775225636459
871919.0091312588429-0.00913125884289556
8819.0819.03852113517480.0414788648252191
8919.1819.12025895866810.0597410413319146
9019.2419.22381470786110.0161852921388608
9119.2319.2857127733580-0.0557127733579534
9219.2519.2734541517403-0.0234541517402604
9319.319.29129833821190.00870166178807352
9419.3319.3412478310387-0.0112478310386948
9519.3519.3708965597402-0.0208965597401516
9619.3519.3897156512896-0.0397156512896260
9719.3119.3874805036809-0.0774805036808708
9819.4719.3431402521190.126859747881003
9919.719.5075002848940.192499715106017
10019.7619.74882679922520.0111732007747598
10119.919.81305205271060.0869479472894206
10219.9719.95727907107070.0127209289292693
10320.120.02954160841440.0704583915855892
10420.2620.16303764121050.0969623587894723
10520.4420.32886922164720.111130778352791
10620.4320.5158652871499-0.0858652871498506
10720.5720.50404518655360.065954813446389
10820.620.6454335374001-0.0454335374001111
10920.6920.67460831664890.015391683351055
11020.9320.76444290789590.165557092104077
11120.9821.0123781732829-0.0323781732829325
11221.1121.06407478665940.0459252133406345
11321.1421.1955697606224-0.0555697606223831
11421.1621.2238908664094-0.0638908664093876
11521.3221.23987209741520.0801279025848132
11621.3221.4023378582256-0.082337858225582
11721.4821.40008304204750.0799169579524701
11821.5821.56218357132580.0178164286741840
11921.7421.66454571340130.0754542865987027
12021.7521.8283704492821-0.0783704492820938
12121.8121.8362086186070-0.0262086186070505
12221.8921.8934890722139-0.00348907221392025
12322.2121.97282301383850.237176986161511
12422.3722.30369889498310.0663011050168869
12522.4722.4713286895681-0.00132868956812970
12622.5122.5725450980175-0.0625450980174911
12722.5522.6096337210773-0.0596337210773115
12822.6122.6456769484295-0.0356769484294546
12922.5822.7028816246766-0.122881624676566
13022.8522.66652443994110.183475560058941
13122.9322.9426217307278-0.0126217307277905
13222.9823.0255752009248-0.0455752009248016


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
13323.073229166540522.940984793451023.2054735396300
13423.165580036662122.974195108733923.3569649645904
13523.257930906783823.016609415322523.4992523982451
13623.350281776905523.063120081105223.6374434727057
13723.442632647027123.111792545117723.7734727489365
13823.534983517148823.161666342024523.9083006922730
13923.627334387270423.212192109634324.0424766649066
14023.719685257392123.263026724286724.1763437904974
14123.812036127513723.313942683182524.3101295718449
14223.904386997635423.364782557812724.4439914374581
14323.996737867757023.415433917192624.5780418183215
14424.089088737878723.465814541241124.7123629345162
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/1gzvl1250635035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/1gzvl1250635035.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/2f6o31250635035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/2f6o31250635035.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/36q9c1250635035.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2009/Aug/19/t1250635120lvngcyyyy0quyui/36q9c1250635035.ps (open in new window)


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