Get startedGet started for free

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.

This exercise is part of the course

Performing Experiments in Python

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

# Print density plot, mean, median, and mode of Unemployment
print(p9.ggplot(____)+ p9.aes(x=____)+ ____)
print(countrydata.Unemployment.____)
print(____)
print(____)
Edit and Run Code