Exercise 1. Distribution of female heights - 1
Assume the distribution of female heights is approximated by a normal distribution with a mean of 64 inches and a standard deviation of 3 inches. If we pick a female at random, what is the probability that she is 5 feet or shorter?
This exercise is part of the course
HarvardX Data Science - Probability (PH125.3x)
Exercise instructions
- Use
pnorm
to define the probability that a height will take a value less than 5 feet given the stated distribution.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Assign a variable 'female_avg' as the average female height.
female_avg <- 64
# Assign a variable 'female_sd' as the standard deviation for female heights.
female_sd <- 3
# Using variables 'female_avg' and 'female_sd', calculate the probability that a randomly selected female is shorter than 5 feet. Print this value to the console.