ProbabilityToFriendlyString for Javascript/Python/C#!

The 538 forecast for the House recently came out, and one of the things they’re trying is expressing probabilities in a friendlier way to try to make them more intuitive. So instead of “72.3%” it will say “5 in 7”, etc.

This seemed like a neat idea, so I wrote probabilityToFriendlyString, a library in Javascript/Python/C# to do this! Here’s a live demo.

I went through the effort to publish it on npm and NuGet. It’s pretty cool that I published these this week with no notice or anything, and already they’ve been downloaded a total of almost 50 times. Are these actual people using it already? Or some kind of automated…something?

2 thoughts on “ProbabilityToFriendlyString for Javascript/Python/C#!”

Leave a comment