ChaoShenEntropyEstimator#
- class infomeasure.estimators.entropy.ChaoShenEntropyEstimator(*args, **kwargs)[source]
Bases:
DiscreteHEstimatorChao-Shen entropy estimator.
\[\hat{H}_{CS} = - \sum_{i=1}^{K} \frac{\hat{p}_i^{CS} \log \hat{p}_i^{CS}}{1 - (1 - \hat{p}_i^{ML} C)^N}\]where
\[\hat{p}_i^{CS} = C \cdot \hat{p}_i^{ML}\]and \(C = 1 - \frac{f_1}{N}\) is the estimated coverage, \(f_1\) is the number of singletons (species observed exactly once), \(\hat{p}_i^{ML}\) is the maximum likelihood probability estimate, \(N\) is the sample size, and \(K\) is the number of observed species [CS03]. The Chao-Shen estimator provides a bias-corrected estimate of Shannon entropy that accounts for unobserved species through coverage estimation.
- Attributes:
- *dataarray_like
The data used to estimate the entropy.