xskillscore.Contingency.odds_ratio¶
- Contingency.odds_ratio(yes_category=2)¶
Returns the odds ratio(s) for dichotomous contingency data
\[OR = \frac{hits * \mathrm{correct~negatives}} {misses * \mathrm{false~alarms}}\]- Parameters
yes_category (value, optional) – The category coordinate value of the category corresponding to ‘yes’
- Returns
An array containing the equitable odds ratio(s)
- Return type
References
https://www.cawcr.gov.au/projects/verification/#Contingency_table