Monday, November 19, 2018

Published November 19, 2018 by with 0 comment

Comparing 2014 And 2018 Exit Polls

I wrote a simple tool that compares CNN's 2014 and 2018 midterm exit poll data.
Read More
      edit

Sunday, November 11, 2018

Published November 11, 2018 by with 0 comment

Who Were The House Midterm Voters In Each Party?

I made a simple tool that converts CNN's exit poll numbers into voter demographics for each party.
Read More
      edit

Saturday, November 3, 2018

Published November 03, 2018 by with 1 comment

How Do You Make A Biased Coin Fair?

Imagine you have a coin that is biased towards heads, and you want to make a fair (50/50) decision with it. What can you do?
Read More
      edit

Tuesday, October 23, 2018

Published October 23, 2018 by with 0 comment

How To Customize Plotly's Modebar

There's a little bar with buttons that appears when you hover at the top of a plotly graph. It is called the 'modebar'. There is essentially no documentation on customizing it, so I've typed up what I've done to help the next person who needs this.

add button to plotly modebar


Read More
      edit

Monday, October 8, 2018

Published October 08, 2018 by with 1 comment

Role Of Luck In Fantasy Football

Luck is a massive factor in fantasy football...
Read More
      edit

Friday, October 5, 2018

Published October 05, 2018 by with 0 comment

Why Does Mars Appear To Move Backwards Sometimes

From Earth, Mars appears to move backwards sometimes. How does this happen if it's in an elliptical orbit around the Sun?
Read More
      edit

Wednesday, October 3, 2018

Published October 03, 2018 by with 1 comment

Why Is Overfitting Dangerous

Imagine you have some measurements and you want to approximate an underlying model for them. Shouldn't you pick the one that most closely matches the data?
Read More
      edit

Friday, September 28, 2018

Published September 28, 2018 by with 1 comment

How Do I Convert An Election Poll Into A Win Probability

You normally see polls as something like 51% candidate A, 47% candidate B, and 2% other. How do you estimate a win probability from that?
Read More
      edit

Wednesday, September 19, 2018

Published September 19, 2018 by with 0 comment

Understanding Half-Life

The rate at which radioactive atoms decay can be given as the 'half-life' and I've run into a couple of misconceptions around that so I tried simulating it.
Read More
      edit

Tuesday, September 4, 2018

Published September 04, 2018 by with 1 comment

I Fell Prey To Selection Bias

These things are sneaky and I got caught in one that I feel is worth typing up...
Read More
      edit

Sunday, August 19, 2018

Published August 19, 2018 by with 1 comment

How Do I Make A Div-Specific Modal In Vue

I most recently wrote about making a div-specific modal, and this post just shows how to do it in Vue.


Read More
      edit

Tuesday, August 14, 2018

Published August 14, 2018 by with 1 comment

How Do I Make A Modal Dialog For A Div Instead Of The Whole Page?

In my quick scan for modal libraries for javascript/html/css, everything was for the entire page. I wanted something for a specific div so I put together a quick demo of one way to do this.



Read More
      edit

Saturday, July 28, 2018

Published July 28, 2018 by with 0 comment

How Do I Make Plotly Faster?

Plotly is a really nice plotting library, but it can be quite slow. Is there any way to speed it up?
Read More
      edit