Wednesday, April 25, 2018

Published April 25, 2018 by with 0 comment

Playing With Bucket Sorting

Bucket sorts are pretty interesting and seem to be covered less often than quicksort, mergesort, etc...
Read More
      edit

Sunday, April 15, 2018

Published April 15, 2018 by with 1 comment

Sticker Collecting Problem

If you buy a box of cereal and get a sticker, there are 5 unique sticker types, and they occur with equal probability, how many boxes of cereal do you need to buy to get all 5 sticker types?
Read More
      edit

Friday, March 9, 2018

Published March 09, 2018 by with 2 comments

Regression Toward The Mean In The NBA

Regression toward the mean is a fascinating concept, and I went through some NBA data to test it...

Free throw % from one year to the next

Read More
      edit

Thursday, February 15, 2018

Published February 15, 2018 by with 0 comment

Planet Orbiting Binary Stars

I was curious what types of orbits you could get for a planet orbiting a binary star system, so I played with it a bit and collected some of the interesting results.

Read More
      edit

Thursday, February 8, 2018

Published February 08, 2018 by with 22 comments

N-Body Problem And Our Solar System

I was curious how stable our solar system is, so I started playing a bit with the n-body problem and here are some results. I've also included simple source code in MATLAB and Python if you want to play with it yourself.
Read More
      edit

Saturday, February 3, 2018

Published February 03, 2018 by with 0 comment

Visualizing Algorithm Complexity

I like to optimize stuff at work at tend to rant about algorithm complexity to my coworkers, so I figured I'd see if I could visualize it in a way that's meaningful to non-developers.
Read More
      edit

Friday, January 26, 2018

Published January 26, 2018 by with 1 comment

Monte Carlo Simulations And Pi

Monte Carlo approximations for values are a really cool concept so I went ahead and visualized possibly the most well-known one...
Read More
      edit

Thursday, January 25, 2018

Published January 25, 2018 by with 0 comment

I Wrote A Book Of Solved Problems

I was interested in how to write an ebook, so I went ahead and wrote one. It contains a few of the problems that are here and a number of new ones. It's $0.99 on Amazon and called 'Answered with Math', so check it out if you're interested.

Read More
      edit

Saturday, January 6, 2018

Published January 06, 2018 by with 1 comment

What Value Minimizes The Sum Of Squared Errors For A Group Of Numbers?

I noticed this result at work one day and it caught me off guard...
Read More
      edit

Sunday, December 31, 2017

Published December 31, 2017 by with 1 comment

How Much Should You Invest To Create Your Own Pension?

The concept of a pension fascinates me since it would be great to have your investments pay your living expenses while you work wherever you want without worrying about a salary. I've created a calculator here that allows you to figure out the numbers you need to create your own pension plan.

Read More
      edit

Friday, December 29, 2017

Published December 29, 2017 by with 1 comment

Are Annuities A Scam?

In multiple conversations with different people I've realized that they don't quite understand how annuities work and why they seem too good to be true, so I figured I'd explain a tricky one with an example.

Read More
      edit

Friday, December 22, 2017

Published December 22, 2017 by with 3 comments

What Is The Best Time To Post To Reddit?

I was curious if time of day affects the likelihood of your post doing well or being ignored so I ran some data to see if I could spot any trends.
Read More
      edit

Tuesday, December 19, 2017

Published December 19, 2017 by with 1 comment

How Do I Do Fast Bilinear Interpolation In Matlab When Interp2 Is Slow?

In working on CityProjections, I have to do bilinear interpolation constantly. Is there a fast way to do it in MATLAB?


Read More
      edit