Skip to content
Statistical Thinking in Python (Part 1)
  • AI Chat
  • Code
  • Report
  • Spinner

    Statistical Thinking in Python (Part 1)

    Run the hidden code cell below to import the data used in this course.

    Take Notes

    Add notes about the concepts you've learned and code cells with code you want to keep.

    Add your notes here

    # Add your code snippets here

    Explore Datasets

    Use the DataFrames imported in the first cell to explore the data and practice your skills!

    • Pick five states from all_states and create a bee swarm plot of the votes in those states. Each point should represent the share of the vote Obama got in a single country (dem_share), segmented by state.
    • Compute the variance and standard variance of dem_share for each state in swing_states.
    • Take 10,000 samples out of the normal distribution with the mean and standard deviation of the Belmont winners' times and plot it. This will require you to clean the Time column to be numeric.
    • Check the normality of the Michelson measurements, specifically velocity of light in air, by plotting the theoretical and empirical CDFs on the same plot.