bundles / scipy latest / scipy / stats / _odds_ratio / OddsRatioResult
class
scipy.stats._odds_ratio:OddsRatioResult
source: build-install/usr/lib/python3.14/site-packages/scipy/stats/_odds_ratio.py:174
Signature
class OddsRatioResult(_table, _kind, statistic)Members
Summary
Result of scipy.stats.contingency.odds_ratio. See the docstring for odds_ratio for more details.
Attributes
statistic: floatThe computed odds ratio.
If
kindis'sample', this is sample (or unconditional) estimate, given bytable[0, 0]*table[1, 1]/(table[0, 1]*table[1, 0]).If
kindis'conditional', this is the conditional maximum likelihood estimate for the odds ratio. It is the noncentrality parameter of Fisher's noncentral hypergeometric distribution with the same hypergeometric parameters astableand whose mean istable[0, 0].
Methods
confidence_intervalConfidence interval for the odds ratio.
Aliases
scipy.stats._odds_ratio.OddsRatioResult