Borrar filtros
Borrar filtros

getting error Error using ==> ProbDistUnivParam.fit at 98 FREQUENCY values must be non-negative integers.

3 visualizaciones (últimos 30 días)
Error using ==> ProbDistUnivParam.fit at 98
FREQUENCY values must be non-negative integers.
Try to test hypothesis Goodness of fit while trying Poisson dist and getting error Error using ==> ProbDistUnivParam.fit at 98 FREQUENCY values must be non-negative integers.
Please guide
  2 comentarios
dpb
dpb el 19 de Ag. de 2014
Well, pretty clear error message. Whatever you used for the frequency counts as the input aren't counts (or integers, anyways).
W/o seeing anything else, what else can be said?
amberly hadden
amberly hadden el 19 de Ag. de 2014
bins = 2:4; obsCounts = [2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9]; n = sum(obsCounts); pd = fitdist(bins','Poisson','Frequency',obsCounts'); expCounts = n*pdf(pd,bins); I cannot see

Iniciar sesión para comentar.

Respuestas (1)

dpb
dpb el 20 de Ag. de 2014
obsCounts = [2.1 2.2 2.3 2.4 2.5 2.6 2.7 2.8 2.9];
...
pd = fitdist(bins','Poisson','Frequency',obsCounts');
...
obsCounts values surely don't look like integers to me...
  7 comentarios
amberly hadden
amberly hadden el 21 de Ag. de 2014
this is a very complex data and a very important data set (though just a tiny part of whole data set) if you see no linear line is going to fit on it unless you use predicted values
dpb
dpb el 21 de Ag. de 2014
...this is a very complex data and a very important data set
Which still tells us precisely -- nothing useful.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by