LoslegenKostenlos loslegen

Adults' heights example

The heights of adults aged between 18 and 35 years are normally distributed. For males, the mean height is 70 inches with a standard deviation of 4. Adult females have a mean height of 65 inches with a standard deviation of 3.5. You can see how the heights are distributed in this plot:

Adults heights distribution for male and female

Using the previous information, complete the following exercises.

For your convenience, norm has been imported from the library scipy.stats.

Diese Übung ist Teil des Kurses

Foundations of Probability in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Values one standard deviation from mean height for females
interval = norm.interval(____, loc=____, scale=____)
print(interval)
Code bearbeiten und ausführen