Home » date » 2008 » May » 28 »

Tinneke Hermans - opgave 10 oef 2 - prijzen broodjes - double smoothing additiefmodel

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 02:30:14 -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/t1211963523zgmkt5wovcnt22x.htm/, Retrieved Wed, 28 May 2008 10:32:03 +0200
 
User-defined keywords:
 
Dataseries X:
» Textbox « » Textfile « » CSV «
4,07 4,08 4,09 4,08 4,09 4,12 4,14 4,14 4,14 4,14 4,14 4,23 4,29 4,32 4,33 4,35 4,35 4,35 4,35 4,36 4,36 4,38 4,4 4,4 4,4 4,43 4,44 4,46 4,47 4,49 4,49 4,57 4,62 4,64 4,66 4,67 4,68 4,72 4,74 4,75 4,76 4,77 4,76 4,77 4,77 4,78 4,81 4,81 4,85 4,92 4,96 4,95 4,96 4,97 5 5 5,01 5,01 5,02 5,04 5,04 5,19 5,22 5,22 5,22 5,24 5,28 5,34 5,36 5,38 5,39 5,41 5,44 5,51 5,55 5,56 5,57 5,58 5,58 5,59 5,61 5,63 5,64 5,64
 
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 time3 seconds
R Server'Sir Ronald Aylmer Fisher' @ 193.190.124.24


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.0348836110569791
gamma0


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
34.094.090
44.084.1-0.0199999999999996
54.094.089302327778860.000697672221139811
64.124.099326665105270.0206733348947328
74.144.130047825678990.00995217432101292
84.144.15039499345717-0.0103949934571714
94.144.15003237854847-0.0100323785484715
104.144.14968241295721-0.0096824129572104
114.144.14934465542952-0.00934465542951823
124.234.149018680104050.0809813198959475
134.294.241843600970180.0481563990298151
144.324.303523470063840.0164765299361553
154.334.33409823092571-0.00409823092570694
164.354.343955269832070.00604473016792717
174.354.36416613184819-0.0141661318481949
184.354.36367196601462-0.0136719660146207
194.354.36319503846978-0.0131950384697825
204.364.36273474787992-0.00273474787992001
214.364.37263934999854-0.0126393499985387
224.384.372198443829180.0078015561708229
234.44.392470590280280.00752940971972205
244.44.41273324328043-0.0127332432804304
254.44.41228906177434-0.0122890617743421
264.434.411860374923150.0181396250768486
274.444.44249315054905-0.00249315054904997
284.464.452406180454990.0075938195450087
294.474.47267108030244-0.00267108030243612
304.494.482577903376060.00742209662393645
314.494.50283681290792-0.0128368129079206
324.574.502389018519230.0676109814807706
334.624.584747533700390.0352524662996148
344.644.635977267023580.00402273297641909
354.664.656117594476120.00388240552388464
364.674.67625302680038-0.00625302680037709
374.684.68603489864554-0.00603489864554341
384.724.695824379588420.0241756204115759
394.744.736667712527920.00333228747207759
404.754.75678395474803-0.00678395474802862
414.764.76654730590917-0.0065473059091703
424.774.77631891223636-0.00631891223636405
434.764.78609848575961-0.0260984857596069
444.774.77518807633319-0.00518807633319263
454.774.78500709749625-0.0150070974962517
464.784.7844835957441-0.00448359574409807
474.814.794327191734030.0156728082659745
484.814.82487391588174-0.0148739158817452
494.854.824355059985230.025644940014768
504.924.865249648098290.0547503519017134
514.964.937159538079260.0228404619207412
524.954.97795629586926-0.0279562958692638
534.964.96698107931757-0.0069810793175673
544.974.97673755406189-0.00673755406189525
5554.986502523846520.0134974761534759
5655.01697336455491-0.0169733645549135
575.015.01638127230745-0.00638127230745145
585.015.02615867048623-0.0161586704862291
595.025.02559499770979-0.00559499770978977
605.045.035399823985820.00460017601418361
615.045.05556029473669-0.0155602947366891
625.195.055017495467160.134982504532838
635.225.209726172654780.0102738273452161
645.225.24008456085196-0.0200845608519602
655.225.23938393884295-0.0193839388429504
665.245.23870775705960.00129224294039965
675.285.258752835159720.0212471648402754
685.345.299494012994080.0405059870059237
695.365.36090700809027-0.000907008090269557
705.385.38087536837282-0.000875368372823537
715.395.40084483236297-0.0108448323629746
725.415.41046652544885-0.000466525448845623
735.445.430450251356540.00954974864345992
745.515.460783381073910.0492166189260885
755.555.532500234466070.0174997655339322
765.565.57311068948054-0.0131106894805422
775.575.58265334128801-0.0126533412880132
785.585.59221194705195-0.0122119470519522
795.585.60178595024074-0.0217859502407425
805.595.60102597762604-0.0110259776260380
815.615.61064135171101-0.000641351711007765
825.635.63061897904737-0.000618979047371404
835.645.65059738682303-0.0105973868230302
845.645.66022771170287-0.0202277117028746


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
855.659522096075265.610191816076745.70885237607378
865.679044192150525.608053409915795.75003497438525
875.698566288225785.61010970936395.78702286708766
885.718088384301045.614194089458015.82198267914406
895.73761048037635.619483480649345.85573748010325
905.757132576451565.625563661179435.88870149172368
915.776654672526815.632193185837965.92111615921567
925.796176768602075.639217743671525.95313579353263
935.815698864677335.646532245601575.98486548375309
945.835220960752595.654061715681526.01638020582366
955.854743056827855.661750727617626.04773538603808
965.874265152903115.669557144709546.07897316109669
 
Charts produced by software:
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211963523zgmkt5wovcnt22x/14p6v1211963407.png (open in new window)
http://127.0.0.1/wessadotnet/public_html/freestatisticsdotorg/blog/date/2008/May/28/t1211963523zgmkt5wovcnt22x/14p6v1211963407.ps (open in new window)


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


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