Recall & Review
beginner
What is a cumulative histogram?
A cumulative histogram shows the total count of data points up to each bin. It adds counts from previous bins to the current one, helping us see how data accumulates.
Click to reveal answer
beginner
How do you create a cumulative histogram in matplotlib?
Use the parameter
cumulative=True in the hist() function to make the histogram cumulative.Click to reveal answer
beginner
What does the
bins parameter control in a histogram?The
bins parameter controls how many intervals the data is split into. More bins mean finer detail, fewer bins mean more general view.Click to reveal answer
intermediate
Why use a cumulative histogram instead of a regular histogram?
A cumulative histogram helps understand the proportion or count of data below a certain value, showing how data builds up across bins.
Click to reveal answer
intermediate
What does the
density=True option do in a histogram?It normalizes the histogram so the area sums to 1, showing probabilities instead of counts. This works with cumulative histograms to show cumulative probabilities.
Click to reveal answer
Which parameter makes a histogram cumulative in matplotlib?
✗ Incorrect
Setting
cumulative=True in hist() makes the histogram cumulative.What does a cumulative histogram show?
✗ Incorrect
A cumulative histogram shows the total counts up to each bin, adding previous bins' counts.
If you want to see the probability distribution in a cumulative histogram, which parameter should you use?
✗ Incorrect
Using
density=True normalizes counts to probabilities, useful in cumulative histograms.What happens if you increase the number of bins in a histogram?
✗ Incorrect
More bins split data into smaller intervals, showing more detail.
Which matplotlib function is used to create histograms?
✗ Incorrect
The
plt.hist() function creates histograms in matplotlib.Explain how to create and interpret a cumulative histogram using matplotlib.
Think about how counts add up across bins and how matplotlib parameters control this.
You got /4 concepts.
Describe the difference between a regular histogram and a cumulative histogram.
Focus on what each histogram tells you about the data.
You got /4 concepts.