Exercise 4. Distribution of female heights - 4
Repeat the previous exercise, but convert everything to centimeters. That is, multiply every height, including the standard deviation, by 2.54. What is the answer now?
This exercise is part of the course
HarvardX Data Science - Probability (PH125.3x)
Exercise instructions
- Convert the average height and standard deviation to centimeters by multiplying each value by 2.54.
- Repeat the previous calculation using
pnorm
to define the probability that a randomly chosen woman will have a height between 61 and 67 inches, converted to centimeters by multiplying each value by 2.54.
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. Convert this value to centimeters.
female_avg <- 64*2.54
# Assign a variable 'female_sd' as the standard deviation for female heights. Convert this value to centimeters.
female_sd <- 3*2.54
# Using variables 'female_avg' and 'female_sd', calculate the probability that a randomly selected female is between the desired height range. Print this value to the console.