Body Mass Index
The Body Mass Index (BMI) is defined as a person's weight in kilograms, divided by the square of their height in meters:
BMI is a universal way to classify people as underweight
, healthy weight
, overweight
, and obese
, based on tissue mass (muscle, fat, and bone) and height. The following plot indicates the relationship between weight and height for the various categories:
According to the preceding plot, we can build the four categories (underweight
, healthy weight
, overweight
, and obese
) based on the BMI values:
""" define function for computing the BMI category, based on BMI value """ def get_bmi_category(bmi): Â Â Â Â if bmi < 18.5: Â Â Â Â Â Â Â Â category = "underweight" Â Â Â ...