getting error Error using ==> ProbDistUnivParam.fit at 98 FREQUENCY values must be non-negative integers.
2 次查看(过去 30 天)
显示 更早的评论
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 个评论
dpb
2014-8-19
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?
回答(1 个)
dpb
2014-8-20
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 个评论
dpb
2014-8-21
...this is a very complex data and a very important data set
Which still tells us precisely -- nothing useful.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!