MATLAB Answers

MJ
0

AIC test for Multiple Distributions/ Models

Asked by MJ
on 14 Feb 2019
i have a set of data, say data = [1000 random data points] and i want to fit more than once distribution to it (normal, lognormal, weibull, burr, gamma), now I want to use the AIC test to see which model fits the data the best (of course given that all models are significant).
what i do is, i use the "Distribution Fitter" Tool from APPS and plot the data along with the distributions as seen in thie pic. now I want to know which one fits the best using AIC.
NBL3- no stop.jpg
what I do, I save each distribution to the work space. say the names are of the models are: a,b,c,d and e.
at this point i am stuck on how to code the AIC test, i tried typing
value = aic (a,b,c,d,e);
but it is not working. it also does not make sense because the original data is not included in this code so that it is the reference to the test.
any help please?
Thanks in advance,

  0 Comments

Sign in to comment.

0 Answers