Session Ready
Exercise

Exploring distributions with summary stats

Let's return to our UN demographic data, countrydata, to examine distributions using summary statistics. For each Country, you have information about the GDP per capita in USD (GDP_per_cap) and the unemployment rate (Unemployment). How close to normality is each?

For a perfect normal distribution, the mean, median, and mode will be identical, and the density plot will show a classic, symmetrical bell curve. pandas, scipy.stats, and plotnine have been loaded into the workspace as pd, stats, and p9.

Instructions 1/2
undefined XP
  • 1

    Create and print a density plot of Unemployment and print its mean(), median(), and mode().

    • 2

      Create and print a density plot of GDP per capita and print its mean(), median(), and mode().