Make probabilities more intuitive by converting them to odds (i.e. 72.3% becomes "5 in 7")

odds, probability
Install-Package ProbabilityToFriendlyString -Version 1.0.0



Make probabilities more intuitive by converting them to odds. (i.e. 72.3% becomes "5 in 7") Also includes a qualitiative description like "Still possible", "Flip a coin", "Good chance", etc.

Live demo here

Javascript: on npm: probability-to-friendly-string (ES6, tests use node.js)

Python 3: requires Python 3.5 or above

C#: on NuGet: ProbabilityToFriendlyString (.NET Standard 2.0)

Java: built with JDK 11

Ruby: gem probability_to_friendly_string, requires Ruby 2.5.1 or above

PHP: requires PHP 7.0 or above (tests require PHPUnit 6.5)

Rust: on as friendly_probability_to_string, requires 2018 edition or later

LabVIEW NXG: requires LabVIEW NXG 4.0 or later

This project was inspired by FiveThirtyEight's 2018 house forecast, where they use this friendlier way of showing probabilities. I decided to reverse-engineer the algorithm they used and make it easily available to incorporate in other visualizations, etc. The qualitative descriptions are from the New York Times live election results in 2020.