Home » date » 2011 » May » 19 »

opdracht 10 axel vermeyen eigen reeks !!

*Unverified author*
R Software Module: /rwasp_exponentialsmoothing.wasp (opens new window with default values)
Title produced by software: Exponential Smoothing
Date of computation: Thu, 19 May 2011 08:39:13 +0000
 
Cite this page as follows:
Statistical Computations at FreeStatistics.org, Office for Research Development and Education, URL http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr.htm/, Retrieved Thu, 19 May 2011 10:36:43 +0200
 
Original text written by user:
 
IsPrivate?
No (this computation is public)
 
User-defined keywords:
KDGP2W102
 
Dataseries X:
» Textbox « » Textfile « » CSV «
8 8 8.2 8.5 8.7 8.7 8 8 8.3 8.5 8.7 8.6 8.3 7.9 7.9 8.1 8.3 8.1 7.4 7.3 7.7 8 8 7.7 6.9 6.6 6.9 7.5 7.9 7.7 6.5 6.1 6.4 6.8 7.1 7.3 7.2 7 7 7 7.3 7.5 7.2 7.7 8 7.9 8 8 7.9 7.9 8 8.1 8.1 8.2 8 8.3 8.5 8.6 8.7 8.7 8.5 8.4 8.5 8.7 8.7 8.6 7.9 8.1 8.2 8.5 8.6 8.5
 
Output produced by software:


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


Estimated Parameters of Exponential Smoothing
ParameterValue
alpha1
beta0.947401841274992
gammaFALSE


Interpolation Forecasts of Exponential Smoothing
tObservedFittedResiduals
38.280.199999999999999
48.58.3894803682550.110519631745003
58.78.79418687086725-0.094186870867249
68.78.90495405598369-0.204954055983686
788.71078020596796-0.710780205967962
887.33738573009210.662614269907903
98.37.965147709457930.334852290542072
108.58.58238738607264-0.0823873860726376
118.78.70433342480959-0.00433342480958743
128.68.90022793016596-0.300227930165956
138.38.51579143632455-0.215791436324549
147.98.0113502322193-0.111350232219298
157.97.505856817188340.394143182811663
168.17.87926879431010.220731205689907
178.38.288389945007560.0116100549924418
188.18.4993893324847-0.399389332484704
197.47.9210071435031-0.521007143503104
207.36.727404016430840.57259598356916
217.77.169882505570930.530117494429073
2288.07211679588512-0.0721167958851172
2388.3037932106767-0.303793210676703
247.78.01597896351475-0.315978963514753
256.97.41661991167671-0.516619911676712
266.66.127173256114870.472826743885128
276.96.27513018387570.6248698161243
287.57.167132998229030.332867001770971
297.98.08249180860653-0.182491808606532
307.78.3095987331151-0.6095987331151
316.57.53206377092295-1.03206377092295
326.15.354284654037340.745715345962664
336.45.660776745869380.73922325413062
346.86.661118217946020.138881782053978
357.17.19269507398351-0.0926950739835126
367.37.40487559021441-0.104875590214411
377.27.50551626294048-0.305516262940476
3877.11606959289121-0.116069592891215
3976.806105046870040.193894953129961
4076.989801482479290.010198517520708
417.36.999463576756690.300536423243313
427.57.5841923375076-0.0841923375076021
437.27.70442836193165-0.504428361931654
447.76.926532003046280.773467996953723
4588.15931700752751-0.159317007527514
467.98.30837978124953-0.408379781249526
4787.821480024554250.178519975445753
4888.09061017799592-0.09061017799592
497.98.00476592852433-0.10476592852433
507.97.80551049493750.094489505062504
5187.895030026014880.104969973985124
528.18.094478772646970.00552122735302873
538.18.19970959360733-0.0997095936073276
548.28.105244541030960.0947554589690363
5588.29501603732908-0.295016037329084
568.37.815517300357860.484482699642142
578.58.5745171020647-0.0745171020647035
588.68.70391946236213-0.103919462362127
598.78.70546597237594-0.00546597237594071
608.78.80028750008261-0.100287500082615
618.58.70527493784748-0.205274937847479
628.48.310797083763170.0892029162368324
638.58.295308090853040.204691909146957
648.78.589233582472960.110766417527037
658.78.89417389038951-0.194173890389512
668.68.71021318910696-0.110213189106959
677.98.50579701081424-0.605797010814237
688.17.231863807329940.868136192670057
698.28.25433763474302-0.0543376347430158
708.58.302858059536950.197141940463046
718.68.78963069692417-0.189630696924169
728.58.70997422549595-0.20997422549595


Extrapolation Forecasts of Exponential Smoothing
tForecast95% Lower Bound95% Upper Bound
738.41104425764087.684502594726119.13758592055548
748.32208851528166.731580463012659.91259656755054
758.233132772922395.5962506942117810.870014851633
768.144177030563194.3041582345271411.9841958265992
778.055221288203982.8730310656371113.2374115107709
787.966265545844781.3157927497363114.6167383419532
797.87730980348558-0.3576407700469616.1122603770181
807.78835406112638-2.139362241275917.7160703635286
817.69939831876717-4.0228794623229519.4216760998573
827.61044257640797-6.002739821715221.2236249745311
837.52148683404877-8.0742803715573423.1172540396549
847.43253109168956-10.23345440093425.0985165843131
 
Charts produced by software:
http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/1mx3u1305794346.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/1mx3u1305794346.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/2ou4r1305794346.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/2ou4r1305794346.ps (open in new window)


http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/3ft761305794346.png (open in new window)
http://www.freestatistics.org/blog/date/2011/May/19/t1305794203cmfmmwmmzvbhqfr/3ft761305794346.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=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