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!