Tuesday, December 31, 2019

Published December 31, 2019 by with 0 comment

How Much Spread Should You Expect in Stock Market Returns?

You'll often hear something like 'invest in an index fund and get 8% returns'. How reliable is that 8% (or whatever number you hear)? Is that between 7% and 9% most of the time? 5 and 11%?
Read More
      edit

Wednesday, December 25, 2019

Published December 25, 2019 by with 0 comment

Do Recruiting Rankings Predict College Football Performance?

If you know nothing but the quality of a team's recruits, can you predict their performance?
Read More
      edit

Thursday, December 12, 2019

Published December 12, 2019 by with 1 comment

How to Progressively Zoom Plotly Plots?

How do you set plotly's zoom level programmatically?
Read More
      edit

Tuesday, December 10, 2019

Published December 10, 2019 by with 0 comment

Metallica Song Tempos Over Time

Metallica has changed styles several times through their career. Does this show up in the song tempos over time/by album?
Read More

      edit

Wednesday, December 4, 2019

Published December 04, 2019 by with 0 comment

Comparing Actual Ping Times with Ideal Ones

I was curious how close ping times got to the physical ideal time.
Read More

      edit

Monday, November 25, 2019

Published November 25, 2019 by with 0 comment

Older Americans Are Steadily Increasing Their Share of Total Wealth

Here are a few plots showing how wealth distribution has shifted in the US over time.
Read More

      edit

Monday, November 18, 2019

Published November 18, 2019 by with 1 comment

How to Render Plotly Plots in Order

Ever wanted to put up a bunch of plots on your page, and have them render in a specific order instead of all at once? Here's a quick tutorial.
Read More
      edit

Thursday, November 7, 2019

Published November 07, 2019 by with 1 comment

Easy Way to Add Busy GIF to Plotly

Quick guide for adding a busy gif over a plotly plot while it renders.
Read More
      edit

Monday, October 28, 2019

Published October 28, 2019 by with 1 comment

Understanding async/await in JavaScript

Async/await can be confusing, so I figured it was worth writing a full async/await example in JavaScript. This is a simple page that shows usage of it in both client-side JavaScript and Node.js.
Read More
      edit

Thursday, October 24, 2019

Published October 24, 2019 by with 4 comments

Compound Interest is Amazing

If it takes 40 years for a $100,000 investment to grow to $1,000,000, how long does it take it to grow an additional $1,000,000?
Read More
      edit

Saturday, October 19, 2019

Published October 19, 2019 by with 1 comment

How Does Wind Speed Affect Homerun Chances?

Does wind make much of a difference for baseball flight? Should you expect more homeruns in the summer?
Read More
      edit

Tuesday, October 15, 2019

Published October 15, 2019 by with 1 comment

Can Hints Make a Binary Search Faster?

You need to guess a number between 1 and 100. You are told if your guess is too high or too low. Does it help if you are also told when your guess is within 5 of the answer?
Read More
      edit

Thursday, October 10, 2019

Published October 10, 2019 by with 0 comment

Learn to Eat Vegetables and Improve Your Diet

I grew up eating no vegetables, lots of hot dogs, and lots of sweets. Over the past decade or so, I've achieved what I think is a healthy diet. This is hard for people, so I thought it might help someone if I explained how I personally did it.
Read More

      edit

Friday, September 27, 2019

Published September 27, 2019 by with 1 comment

How Long Do Jobs Take If Randomly Assigned to Threads?

A seemingly simple probability problem came up at work today and I ended up simulating it because it got hard...
Read More
      edit

Tuesday, September 24, 2019

Published September 24, 2019 by with 0 comment

Is Jim Harbaugh Doing Worse Than Average at Michigan?

I've heard a lot over the past couple of years about Harbaugh underperforming at Michigan...
Read More
      edit

Saturday, September 14, 2019

Published September 14, 2019 by with 0 comment

Which Baseball Player Had the Most Impressive Single-Season Batting Average?

Was Ted Williams' 1941 batting average really that remarkable?
Read More
      edit

Friday, August 30, 2019

Published August 30, 2019 by with 184 comments

Which NFL Franchise is Best?

I was curious how NFL franchises have performed over time and if they have streaks of good then bad or if it's all kind of random.
Read More
      edit

Tuesday, August 20, 2019

Published August 20, 2019 by with 15 comments

What Are the Most Common Scores in Baseball?

Is a 5-4 win or a 1-0 win more common? What margin of victories happen most often in baseball? Does baseball have a home field advantage?
Read More
      edit

Friday, August 16, 2019

Published August 16, 2019 by with 0 comment

Do Cities With Many Immigrants Have More Crime?

I played with stats from large cities in the US to see if anything correlates well with crime rates.
crime rates vs immigrant population
Read More

      edit

Saturday, July 27, 2019

Published July 27, 2019 by with 53 comments

Why Does It Seem like Stocks Are at an All-Time High?

It often feels like stocks are at an all-time high, but there's an obvious reason for this...stocks are often near their all-time high.

Read More
      edit

Tuesday, July 23, 2019

Published July 23, 2019 by with 0 comment

Where Do the Best Students Go to School?

It seems like most of the top schools are in the northeast, so I tried visualizing it to see the distribution.
Read More

      edit

Saturday, June 29, 2019

Published June 29, 2019 by with 1 comment

Why Do We Let Amazon Pay No Federal Taxes?

I see people mention Amazon or Netflix or whoever paying no federal tax often as if it's a terrible thing for society. Is it though?



Read More
      edit

Saturday, June 1, 2019

Published June 01, 2019 by with 1 comment

SI Notation and Custom Tick Marks in Matplotlib

How do you get SI notation and other custom tick marks in matplotlib?
Read More
      edit

Saturday, May 25, 2019

Published May 25, 2019 by with 1 comment

Understanding Confidence Intervals

Confidence intervals are confusing. I tried putting together a visualization that explains a valid interpretation of them.
Read More
      edit

Thursday, May 23, 2019

Published May 23, 2019 by with 11 comments

How Do You Know If You Have a Biased Coin?

Fun probability problems involving biased coins...

Read More
      edit

Friday, May 17, 2019

Published May 17, 2019 by with 2 comments

Plotly Hover Works but the Point Is Not Rendered

Sometimes when using plotly, you'll plot something, it won't show up, and hovering over the point that didn't show up will work. What's going on?

Read More
      edit

Friday, May 10, 2019

Published May 10, 2019 by with 1 comment

How to Make Plotly Faster with Many Traces?

Plotly slows down with a lot of traces. I found a workaround to speed it up in certain situations.
Read More
      edit

Thursday, May 2, 2019

Published May 02, 2019 by with 0 comment

Do Stocks Perform Better After a Gain or a Loss?

Simple question...do stocks do better the day after stocks go up or the day after stocks go down?
Read More
      edit

Sunday, April 21, 2019

Published April 21, 2019 by with 0 comment

How to Make Amazing Shrimp and Grits

I often order shrimp and grits when we get seafood, and the one at Salt Traders in Round Rock, TX inspired me to figure out how to make it well. Here is my Salt Traders shrimp and grits recipe attempt.



Read More

      edit

Friday, April 19, 2019

Published April 19, 2019 by with 2 comments

Real Life Examples of Various Distributions

You might have heard of 'normal', 'poisson', and other 'distributions' What real-life situations result in those?
Read More
      edit

Tuesday, April 16, 2019

Published April 16, 2019 by with 0 comment

Real S&P 500 Returns


I took a crack at visualizing actual returns for long-term, steady investments in the S&P 500.

Read More
      edit

Thursday, April 4, 2019

Published April 04, 2019 by with 0 comment

Which Planet is Closest to Earth on Average?

I realized I didn't actually know which planet is closet to Earth. I'd guess Mercury since its orbital period is so small, but I looked at the data and summarized some results here.
Read More
      edit

Sunday, March 31, 2019

Published March 31, 2019 by with 0 comment

What Was the (Statistically) Worst NFL MVP Season of All Time?

In analyzing MVP winners, I found a few that seem off based on their stats that year.
Read More
      edit

Saturday, March 16, 2019

Published March 16, 2019 by with 3 comments

Simple Algorithm for Classifying Curves

I needed to classify curves recently and the tutorials I found for classification algorithms all used single points instead of curves. I settled on something crude but effective for my use case.
Read More
      edit

Saturday, March 9, 2019

Published March 09, 2019 by with 1 comment

Which Current Quarterbacks Will Make the Hall of Fame?

I took a stab at predicting which current and recent quarterbacks will make the Pro Football Hall of Fame.
Read More
      edit

Wednesday, February 27, 2019

Published February 27, 2019 by with 0 comment

Steve Young Might Have Been the Best Quarterback of All Time

Who was the best quarterback of all time? Here is my attempt at answering that question.
Read More
      edit

Friday, February 22, 2019

Published February 22, 2019 by with 2 comments

Tutorial: Writing a Vue App from Start to Deployment

I didn't see any nice tutorials from start to finish on writing and deploying a Vue app, so I wrote down all the steps with a sample project. The sample project uses Vuetify as the Vue framework and plotly as the plotting framework. To get started, here is the finished product.


Read More
      edit

Thursday, February 14, 2019

Published February 14, 2019 by with 1 comment

What Does R^2 Mean in Linear Regression?

You see r^2 constantly when you see linear fits or linear regression. You'll often hear that it represents '% of variance explained by the model'. What does that mean?


Read More
      edit

Friday, February 8, 2019

Published February 08, 2019 by with 1 comment

Find All Ints Less Than N with M Digits Equal to 1 in Their Binary Representation

We stumbled on a fun algorithm problem in the wild at work this week.
Read More
      edit

Sunday, February 3, 2019

Published February 03, 2019 by with 0 comment

Antonio Brown Is on Track to Be One of the Best Wide Receivers in History

Who were the best wide receivers ever? Here is my attempt at answering that question...
Read More
      edit

Thursday, January 31, 2019

Published January 31, 2019 by with 0 comment

China and India Have Huge Populations

I had an idea for visualizing just how many people live in India and China.
Read More

      edit

Saturday, January 26, 2019

Published January 26, 2019 by with 1 comment

Should Football Teams Go for Two When Losing by 14 Points?

If your team is down by 14 and scores a touchdown, should they kick an extra point or go for two?
Read More
      edit

Tuesday, January 22, 2019

Published January 22, 2019 by with 83 comments

How Do Marginal Tax Rates Work?

If you get a raise and move up a tax bracket, do you actually lose money? Does a 70% tax rate on the highest earners mean that you'll lose 70% of your income to taxes?
progressive taxes
Read More
      edit

Friday, January 18, 2019

Published January 18, 2019 by with 2 comments

Handling Outliers in Linear Regression

What are some of the techniques for handling outliers in linear regression, and how do they compare? I evaluate several in Python.
Read More
      edit

Sunday, January 13, 2019

Published January 13, 2019 by with 2 comments

Who Was the Best Running Back in Modern NFL History?

Here is my attempt at answering this question...
Read More
      edit

Friday, January 4, 2019

Published January 04, 2019 by with 0 comment

Historic S&P 500 Variability

The news often covers 'major' swings in stock prices. How rare are these large swings?
Read More
      edit