Sunday, May 2, 2021

Published May 02, 2021 by with 0 comment

Simple way to see code coverage in python

Sometimes you want to quickly see unit test coverage of your code. Coverage.py makes that really simple.
Read More
      edit

Tuesday, April 6, 2021

Published April 06, 2021 by with 0 comment

Thinking in terms of probabilities

We suck at probability. A common trap we fall into is failing to realize this and thinking in terms of absolutes.
Read More
      edit

Sunday, February 7, 2021

Published February 07, 2021 by with 0 comment

If the square root of -1 is i, what is the cube root of -1?

You probably learned at some point that the square root of -1 is i. What about the cubed root of it? There's the obvious answer of (-1)^3 = -1, but the answer isn't actually that simple.
Read More
      edit

Sunday, January 24, 2021

Published January 24, 2021 by with 0 comment

Regression Toward the Mean in the NFL

      edit

Friday, January 15, 2021

Published January 15, 2021 by with 0 comment

Fourier Series Animations

It always seemed magical to me that you can get a square wave from adding together sine waves, so I threw together some animations of Fourier series.
Read More
      edit

Saturday, January 2, 2021

Published January 02, 2021 by with 0 comment

How Should You Bet on a Biased Coin Toss?

If you know a coin is biased to come up heads 75% of the time, what betting strategy should you use to bet on the outcome of a flip?
Read More
      edit

Sunday, December 27, 2020

Published December 27, 2020 by with 0 comment

Making a CSS Flashlight Effect Using Conic-gradients

This is just a quick tutorial of conic-gradients showing a flashlight effect with very little code.
Read More
      edit

Friday, December 11, 2020

Published December 11, 2020 by with 0 comment

What Are the Most Impressive NFL Combine Performances Ever?

If you combine the major tests and adjust for weight and height, which NFL player had the most impressive combine performance?
Read More
      edit

Friday, December 4, 2020

Published December 04, 2020 by with 0 comment

Split Violin Plots in plotly.js

Split violins are a cool way to compare distributions, and plotly makes them simple.
Read More
      edit

Tuesday, November 17, 2020

Published November 17, 2020 by with 0 comment

How Long Until My Investments Start Making Money?

Say you invest some fixed amount of money every year. How long does it take for the investments to grow faster than the amount you're putting into them?

Read More
      edit

Sunday, November 1, 2020

Published November 01, 2020 by with 3 comments

How Do American Betting Odds Convert to Percent Chance?

If you've looked at betting odds, you've probably seen something like +140 and -175. What % chance does that imply for each participant?
Read More
      edit

Saturday, October 17, 2020

Published October 17, 2020 by with 0 comment

How Does Deal or No Deal Determine the Offers?

If you've ever watched 'Deal or No Deal', you've likely wondered how the 'banker' determines his offers.
Read More
      edit

Friday, October 9, 2020

Published October 09, 2020 by with 0 comment

What Are the Most Common Scores in the NFL?

My guess going into this is that both teams score around 30, a field goal is the most common separation, and it's some combination of 7 and 3. Taking a guess then, I think 27 - 24 is going to be most common.
Read More
      edit