Home » date » 2008 » May » 28 »

Shari Van Elsen-Exponential Smoothing-niet werkzoekende werklozen

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 28 May 2008 12:32:54 -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/28/t1211999665cz381a4e8h64249.htm/, Retrieved Wed, 28 May 2008 20:34:29 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
516.922 514.258 509.846 527.070 541.657 564.591 555.362 498.662 511.038 525.919 531.673 548.854 560.576 557.274 565.742 587.625 619.916 625.809 619.567 572.942 572.775 574.205 579.799 590.072 593.408 597.141 595.404 612.117 628.232 628.884 620.735 569.028 567.456 573.100 584.428 589.379 590.865 595.454 594.167 611.324 612.613 610.763 593.530 542.722 536.662 543.599 555.332 560.854 562.325 554.788 547.344 565.464 577.992 579.714 569.323 506.971 500.857 509.127 509.933 517.009 519.164 512.238 509.239 518.585 522.975 525.192 516.847 455.626 454.724 461.251 470.439 474.605 476.049 471.067 470.984 502.831 512.927 509.673 484.015 431.328 436.087 442.867 447.988 460.070 467.037 460.170 464.196 485.025 501.492 520.564 488.180 439.148 441.977 456.608 461.935 480.961 492.865
 
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 time6 seconds
R Server'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.888914021311308
beta0
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
13560.576535.63162394323624.9443760567635
14557.274548.7328212396228.54117876037787
15565.742559.1258197982486.6161802017516
16587.625582.3057434804415.31925651955896
17619.916615.3079385169624.60806148303811
18625.809621.5744423136324.23455768636757
19619.567616.0111833484293.55581665157058
20572.942569.5178736272233.42412637277732
21572.775569.497585904063.27741409594034
22574.205571.5845085809182.62049141908244
23579.799578.1409001460661.65809985393400
24590.072589.4131833549620.65881664503786
25593.408600.145118468587-6.73711846858725
26597.141583.26202583999813.8789741600016
27595.404598.186025223382-2.78202522338177
28612.117612.867682291489-0.750682291488602
29628.232640.395219813697-12.1632198136972
30628.884631.712005475546-2.82800547554643
31620.735619.7953364771950.939663522805176
32569.028570.961862614428-1.93386261442754
33567.456566.1624856776491.29351432235148
34573.1566.4129171304056.68708286959463
35584.428576.4772506459627.9507493540375
36589.379593.232151873451-3.853151873451
37590.865599.131750216861-8.26675021686117
38595.454583.17910530617212.2748946938277
39594.167594.826412538341-0.659412538341257
40611.324611.620543501636-0.296543501635597
41612.613638.28399846179-25.6709984617898
42610.763618.630541707602-7.86754170760219
43593.53602.652693489727-9.12269348972688
44542.722544.555440927838-1.83344092783761
45536.662540.203846561932-3.54184656193149
46543.599536.7552077672446.84379223275607
47555.332547.0992180611468.23278193885358
48560.854562.793574087544-1.93957408754432
49562.325569.9038896642-7.57888966420023
50554.788556.844582372258-2.05658237225805
51547.344554.315618516736-6.97161851673627
52565.464565.539050742508-0.0750507425084379
53577.992589.580647558929-11.5886475589292
54579.714584.422904392901-4.70890439290088
55569.323571.113383408181-1.79038340818056
56506.971520.343657841127-13.3726578411266
57500.857505.544911854185-4.68791185418473
58509.127502.231218401696.89578159830972
59509.933512.775740052483-2.84274005248290
60517.009517.494903162678-0.485903162677914
61519.164525.270958316853-6.10695831685291
62512.238514.13352234812-1.89552234812038
63509.239511.201735405928-1.96273540592773
64518.585527.6437460408-9.05874604079986
65522.975542.420610972802-19.4456109728018
66525.192531.042945865977-5.85094586597734
67516.847517.042454962831-0.195454962831377
68455.626466.403855363012-10.7778553630118
69454.724454.876419189022-0.152419189021543
70461.251456.8811746841454.36982531585477
71470.439464.0985251696856.3404748303152
72474.605477.242588282427-2.63758828242732
73476.049482.481559951146-6.4325599511456
74471.067471.5225236106-0.455523610599926
75470.984469.8633053085531.12069469144740
76502.831488.25795290455514.5730470954454
77512.927522.887615047615-9.96061504761451
78509.673521.451472489106-11.7784724891062
79484.015502.810165800906-18.7951658009059
80431.328434.462466139456-3.13446613945638
81436.087430.9096827930065.17731720699373
82442.867438.1544736571354.71252634286515
83447.988445.8953674206682.09263257933196
84460.07454.2661270685855.80387293141496
85467.037466.5872638287280.44973617127215
86460.17462.409961941763-2.23996194176311
87464.196459.3396271396894.85637286031056
88485.025482.5493391715642.47566082843611
89501.492503.700119170681-2.20811917068079
90520.564508.95334042433211.6106595756676
91488.18510.323504931112-22.1435049311117
92439.148440.739103817559-1.59110381755869
93441.977439.4815594666962.49544053330413
94456.608444.29076080412712.3172391958732
95461.935458.5005569879633.43444301203732
96480.961468.47633751011312.4846624898867
97492.865486.1413522601786.72364773982179


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
98487.242230587701471.034855510506503.449605664895
99486.951332659455465.266324278711508.6363410402
100505.579683037047479.545087398684531.61427867541
101524.009511128592494.254498918324553.764523338859
102532.760633035108499.701272284887565.819993785329
103520.06030504935483.998109958183556.122500140516
104472.442659542139433.609136699453511.276182384826
105473.053427462737431.63358827964514.473266645833
106476.73546083768432.881570935715520.589350739645
107479.009536288885432.849767646552525.169304931219
108486.937744750286438.581929973841535.293559526731
109492.865442.408628704851543.321371295149
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/1ndn01211999567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/1ndn01211999567.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/2fvwe1211999567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/2fvwe1211999567.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/380581211999567.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211999665cz381a4e8h64249/380581211999567.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