【发布时间】:2015-01-31 07:29:07
【问题描述】:
我想这是一个简单的问题,但我无法解决。我有一个向量,它的第一个元素看起来像:
V = [31 52 38 29 29 34 29 24 25 25 32 28 24 28 29 ...];
我想在 Matlab 中执行 chi2gof 测试以测试 V 是否呈指数分布。我做到了:
[h,p] = chi2gof(V,'cdf',@expcdf);
但我收到一条警告消息:
Warning: After pooling, some bins still have low expected counts.
The chi-square approximation may not be accurate
我是否错误地定义了chi2gof 调用?
【问题讨论】:
-
只是猜测:可能数据向量太小
-
抱歉忘了说这是一个示例。原来是36个元素。应该没问题...谢谢!
标签: matlab statistics goodness-of-fit exponential-distribution