Home » date » 2010 » Dec » 22 »

opdracht 10 oef 2

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Wed, 22 Dec 2010 19:47:55 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald.htm/, Retrieved Wed, 22 Dec 2010 20:48:57 +0100
 
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/2010/Dec/22/t1293047333rlj2jcaytkoyald.htm/},
    year = {2010},
}
@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 = {2010},
    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:
KDGP2W82
 
Dataseries X:
» Textbox « » Textfile « » CSV «
7.08 7.08 7.09 7.07 7.06 6.99 6.99 6.99 6.98 6.96 6.95 6.91 6.91 6.87 6.91 6.89 6.88 6.9 6.91 6.85 6.86 6.82 6.8 6.83 6.84 6.89 7.14 7.21 7.25 7.31 7.3 7.48 7.49 7.4 7.44 7.42 7.14 7.24 7.33 7.61 7.66 7.69 7.7 7.68 7.71 7.71 7.72 7.68 7.72 7.74 7.76 7.9 7.97 7.96 7.95 7.97 7.93 7.99 7.96 7.92 7.97 7.98 8 8.04 8.17 8.29 8.26 8.3 8.32 8.28 8.27 8.32 8.31 8.34 8.32 8.36 8.33 8.35 8.34 8.37 8.31 8.33 8.34 8.25
 
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'Gwilym Jenkins' @ 72.249.127.135


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha0.99993142291123
betaFALSE
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
27.087.080
37.097.080.00999999999999979
47.077.08999931422911-0.0199993142291124
57.067.07000137149475-0.0100013714947478
66.997.06000068586494-0.0700006858649402
76.996.99000480044325-4.80044324824291e-06
86.996.9900000003292-3.29200666726592e-10
96.986.99000000000002-0.010000000000022
106.966.98000068577089-0.0200006857708885
116.956.9600013715888-0.0100013715888032
126.916.95000068586495-0.0400006858649471
136.916.91000274313059-2.74313058579168e-06
146.876.91000000018812-0.0400000001881162
156.916.870002743083560.0399972569164362
166.896.90999725710456-0.0199972571045626
176.886.89000137135368-0.0100013713536757
186.96.880000685864930.0199993141350694
196.916.899998628505260.0100013714947407
206.856.90999931413506-0.0599993141350597
216.866.850004114578290.00999588542170926
226.826.85999931451128-0.0399993145112782
236.86.82000274303654-0.0200027430365424
246.836.800001371729890.029998628270115
256.846.82999794278140.0100020572185935
266.896.839999314088030.0500006859119653
277.146.889996571098520.250003428901477
287.217.139982855492660.0700171445073368
297.257.209995198428070.0400048015719339
307.317.249997256587170.060002743412829
317.37.30999588518654-0.00999588518653827
327.487.30000068548870.179999314511295
337.497.479987656171030.0100123438289694
347.47.48999931338261-0.0899993133826085
357.447.40000617189090.0399938281090968
367.427.4399972573397-0.0199972573397007
377.147.42000137135369-0.280001371353692
387.247.14001920167890.0999807983211012
397.337.239993143607920.0900068563920815
407.617.329993827591820.28000617240818
417.667.609980797991860.0500192020081407
427.697.659996569828740.0300034301712566
437.77.68999794245210.0100020575478936
447.687.69999931408801-0.0199993140880119
457.717.680001371494740.0299986285052629
467.717.709997942781392.05721861057384e-06
477.727.709999999858920.0100000001410780
487.687.7199993142291-0.0399993142291031
497.727.680002743036520.0399972569634777
507.747.719997257104560.0200027428954419
517.767.739998628270130.0200013717298742
527.97.759998628364160.140001371635845
537.977.899990399113510.0700096008864897
547.967.96999519894539-0.00999519894538548
557.957.96000068544164-0.0100006854416446
567.977.95000068581790.0199993141821064
577.937.96999862850526-0.0399986285052565
587.997.93000274298950.0599972570105027
597.967.98999588556278-0.0299958855627809
607.927.9600020570305-0.0400020570305069
617.977.920002743224620.0499972567753835
627.987.969996571333680.0100034286663169
6387.979999313993980.0200006860060151
648.047.999998628411180.0400013715888186
658.178.039997256822390.130002743177611
668.298.169991084790340.120008915209658
678.268.28999177013797-0.0299917701379666
688.38.260002056748280.0399979432517181
698.328.29999725705750.0200027429425038
708.288.31999862827012-0.039998628270121
718.278.28000274298948-0.0100027429894816
728.328.2700006859590.0499993140410062
738.318.3199965711926-0.00999657119260178
748.348.310000685535750.0299993144642485
758.328.33999794273435-0.0199979427343493
768.368.32000137140070.0399986285993066
778.338.3599972570105-0.0299972570104945
788.358.330002057124560.0199979428754435
798.348.3499986285993-0.00999862859929657
808.378.340000685676840.0299993143231578
818.318.36999794273436-0.0599979427343573
828.338.310004114484250.0199958855157547
838.348.329998628740380.0100013712596159
848.258.33999931413508-0.089999314135076


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
858.250006171890958.113628198626118.3863841451558
868.250006171890958.057145205526048.44286713825587
878.250006171890958.013803392265928.48620895151599
888.250006171890957.977264253847588.52274808993433
898.250006171890957.945072483011948.55493986076997
908.250006171890957.915968815643568.58404352813834
918.250006171890957.889205179480838.61080716430108
928.250006171890957.86429415901158.6357181847704
938.250006171890957.840897191746428.65911515203548
948.250006171890957.818767771014738.68124457276718
958.250006171890957.797719803374658.70229254040726
968.250006171890957.777608712222678.72240363155924
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/1pxn11293047272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/1pxn11293047272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/2pxn11293047272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/2pxn11293047272.ps (open in new window)


http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/3pxn11293047272.png (open in new window)
http://www.freestatistics.org/blog/date/2010/Dec/22/t1293047333rlj2jcaytkoyald/3pxn11293047272.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=F, beta=F)
if (par2 == 'Double') fit <- HoltWinters(x, gamma=F)
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