Home » date » 2008 » Jun » 01 »

Exponentail smoothing - mult+triple - pilsbier - niels baert

R Software Module: rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Sun, 01 Jun 2008 07:40: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/Jun/01/t12123277331za3i6d3wcomwlu.htm/, Retrieved Sun, 01 Jun 2008 13:42:13 +0000
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,43 4,43 4,44 4,44 4,44 4,45 4,47 4,48 4,48 4,5 4,52 4,52 4,53 4,53 4,63 4,66 4,67 4,68 4,69 4,69 4,7 4,71 4,72 4,72 4,72 4,73 4,74 4,76 4,81 4,82 4,83 4,83 4,84 4,89 4,92 4,95 4,95 5,01 5,05 5,08 5,11 5,14 5,17 5,18 5,2 5,22 5,24 5,28 5,29 5,33 5,4 5,43 5,46 5,46 5,46 5,47 5,49 5,5 5,54 5,55 5,55 5,56 5,6 5,61 5,63 5,64 5,66 5,67 5,69 5,77 5,77 5,78 5,8 5,82 5,85 5,87 5,88 5,9 5,91 5,94 5,97 5,98 6 6,01 6,02
 
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 time5 seconds
R Server'Herman Ole Andreas Wold' @ 193.190.124.10:1001


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.686614575696178
beta0.0358454934700404
gamma1


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
134.534.434972534248390.0950274657516115
144.534.499694206569470.0303057934305313
154.634.620436524308310.00956347569169314
164.664.657337255504160.00266274449583559
174.674.67041323329498-0.000413233294983328
184.684.68178288945708-0.00178288945708438
194.694.69258405979525-0.00258405979524579
204.694.69276267518553-0.00276267518552942
214.74.70608656021938-0.00608656021937559
224.714.72115041863392-0.0111504186339193
234.724.73121151664716-0.0112115166471591
244.724.72926397189902-0.00926397189901795
254.724.74322464567819-0.0232246456781917
264.734.704147319425360.0258526805746389
274.744.81776722251646-0.0777672225164565
284.764.78992051151631-0.0299205115163144
294.814.775768189016570.0342318109834272
304.824.807453839073550.0125461609264512
314.834.825163896577690.00483610342231255
324.834.827602469194990.00239753080501082
334.844.84114082662566-0.00114082662566428
344.894.855951983946630.0340480160533714
354.924.896087768633830.0239122313661735
364.954.918343704700680.0316562952993156
374.954.95688087403988-0.00688087403987847
385.014.944512475985750.0654875240142481
395.055.05744208713877-0.00744208713877459
405.085.09855530081831-0.0185553008183108
415.115.11741625263689-0.00741625263689105
425.145.116133061595690.0238669384043142
435.175.142198061315860.0278019386841359
445.185.162580463883810.0174195361161900
455.25.189464159945980.0105358400540219
465.225.22885782567948-0.00885782567948201
475.245.239858762710870.000141237289129847
485.285.250737554447330.0292624455526678
495.295.277772155602070.0122278443979278
505.335.3043651288210.0256348711790002
515.45.371240646638020.028759353361977
525.435.43876597642108-0.00876597642108301
535.465.47268372609452-0.0126837260945214
545.465.48079886887492-0.0207988688749188
555.465.47935076906593-0.0193507690659267
565.475.46416150705810.00583849294190397
575.495.481548567512040.00845143248795921
585.55.51471987397711-0.0147198739771062
595.545.525332661341130.0146673386588736
605.555.55644755958811-0.00644755958811327
615.555.55293705142872-0.00293705142872369
625.565.57329014389258-0.0132901438925819
635.65.61460454049775-0.0146045404977500
645.615.63900210036783-0.0290021003678271
655.635.65575402171078-0.0257540217107826
665.645.6491591406135-0.00915914061350254
675.665.653234409486090.00676559051390768
685.675.661341373915220.00865862608477563
695.695.67931896644120.0106810335587983
705.775.70485066996430.0651493300357009
715.775.7800140278497-0.0100140278497012
725.785.78677245691401-0.00677245691401218
735.85.782833886059580.0171661139404202
745.825.813642192211430.0063578077885742
755.855.86985498492767-0.0198549849276661
765.875.88687706850462-0.0168770685046233
775.885.91443214609609-0.0344321460960897
785.95.90736974328775-0.00736974328775375
795.915.91796678378416-0.00796678378416171
805.945.915988398470110.0240116015298897
815.975.945317794160140.0246822058398593
825.985.99894912596645-0.0189491259664516
8365.991040851651870.0089591483481275
846.016.0108270811518-0.000827081151795639
856.026.01734441496260.00265558503740237


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
866.03361897373875.985560340618366.08167760685904
876.07691925769336.017870418153446.13596809723316
886.108262106846196.039366905232536.17715730845985
896.142155826590636.064054618684996.22025703449627
906.168062908817366.081260950644756.25486486698997
916.184137753673756.089049467229086.27922604011843
926.198346372869766.095222352524336.30147039321519
936.211474249199976.10049819039686.32245030800313
946.234360812343076.115502927462266.35321869722388
956.248196832617486.12169496538096.37469869985406
966.258398659060476.124388197536986.39240912058397
976.266133308532583.931932644232248.60033397283292
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/1kay51212327646.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/1kay51212327646.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/2n0vj1212327646.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/2n0vj1212327646.ps (open in new window)


http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/31yvu1212327646.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/Jun/01/t12123277331za3i6d3wcomwlu/31yvu1212327646.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