Scatter plot inspection
To get vital health data for tracking youth body mass index, health officials sent out a youth survey to a nationally representative sample of youths who were 14 to 20 years of age as of December 31, 1999. Dataset, youth_survey
, tracks the age Age
, height in inchesHeight_in
, weight in pounds Weight_lbs
, gender Gender
, and the self reported multiple choice answer to the question, 'How would you describe your weight?' describe_weight
, of a surveyed, nationally representative sample of youths.
In this exercise, you will visualize the data.
pandas has been loaded for you as pd
, as well as matplotlib.pyplot
as plt
.
Cet exercice fait partie du cours
Analyzing Survey Data in Python
Instructions
- Create a scatter plot to determine if a linear regression model accurately relates
Age
andHeight_in
.
Exercice interactif pratique
Essayez cet exercice en complétant cet exemple de code.
# Create a scatter plot between `Age` and `Height_in`
____(____,____)
plt.show()