Sunday, June 13, 2021

Published June 13, 2021 by with 0 comment

Wheel Options Strategy Simulations

The 'Wheel' is an options strategy that combines cash-secured puts with covered calls. I sometimes have trouble really grasping options strategies in my head, so simulating some scenarios gives me a better feel.
Read More
      edit

Friday, May 21, 2021

Published May 21, 2021 by with 0 comment

Negative values with a log axis in Plotly

Although log10(<any number less than or equal to 0>) is not defined, there are situations where you want to visualize data as if it were. How can you get plotly to do that? Another way of asking is 'how can you mimic symlog functionality in plotly?'
Read More
      edit

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 9 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