Chapter 1 · Section 5 practice
Figures and Statistical Charts
These questions review the examples in the companion slides. Choose an answer, then check the explanation.
Question 1
Which object owns the title and y-axis label of one subplot?
- The DataFrame index
- The Axes
- The NumPy random generator
- The CSV file
Question 2
In ax.hist(x, bins=50, density=True) the bars are scaled so that …
- The tallest bar has height 1
- The heights sum to 1
- The total area of the bars is 1
- The y-axis shows counts
Question 3
Which quantity represents probability in a density histogram?
- The tallest bar
- The sum of bar heights
- Bar area over the interval
- The number of bins
Question 4
How should missing x and y observations be removed?
- Drop missing values separately and pair by position
- Fill all missing returns with zero
- Sort x and y independently
- Align by key and remove incomplete pairs