Contents:


  1. In-Class Exercise: Data Scavenger Hunt

    Pandas Filtering

    Before we do our scavenger hunt, here's a piece of useful information you should know: you can filter rows of a Pandas dataframe using something that returns a boolean.

    For example, suppose you have a DataFrame called copdf with police officer names in a column called "name" and …

    read more
  2. Week 5 Recap

    In week 5, we began by continuing our probability lecture from last week, and then, as an exercise, tried to prove the correct answer to the Monty Hall problem using Bayes Rule.

    Monty Redux

    Here's that solution again. Remember our formula for Bayes Rule:

    $$P(B|A) = \frac{P(A …
    read more

links