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?

One thought on “ProbabilityToFriendlyString for Javascript/Python/C#!”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s