Fall 2025 Quiz 3

← return to practice.dsc10.com


This quiz was administered in-person. Students were allowed 1 double-sided cheatsheet. Students had 20 minutes to work on the quiz.

This quiz covered Lectures 13-15 of the Fall 2025 offering of DSC 10.


Suppose that at the cat adoption center, all cats stay for just one day before being adopted. The cats DataFrame contains a simple random sample of 500 cats from the adoption center. In addition to each cat’s "name" (str), we have the following information about their single day at the adoption center: number of "treats" consumed (int), "nap_time" in hours (float), and "top_speed" (float) in miles per hour. cats is sorted in descending order of "top_speed" with the first few rows shown.


Problem 1

Lecture 15

A sleepy cat is a cat that naps for at least 5 hours. You want to estimate the proportion of all sleepy cats that consumed at least 10 treats, based on the data in cats.


Problem 1.1

Fill in the blanks below to generate an array of 10000 bootstrapped estimates for this proportion.

estimates = np.array([])
subset = cats[__(a)__]
for i in np.arange(10000):
    resample = __(b)__
    proportion = __(c)__ / __(d)__
    estimates = np.append(estimates, proportion)

(a): cats.get("nap time") >= 5
(b): subset.sample(subset.shape[0], replace=True)
(c): resample[resample.get("treats") >= 10].shape[0]
(d): resample.shape[0]


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 65%.


Problem 1.2

Fill in the blanks below so that treats_interval evaluates to a 90% confidence interval for the true proportion of all sleepy cats that consumed at least 10 treats.

ci_low = np.percentile(estimates, __(a)__)
ci_high = np.percentile(estimates, __(b)__)
treats_interval = [ci_low, ci_high]

(a): 5
(b): 95


Difficulty: ⭐️

The average score on this problem was 93%.


Problem 1.3

Suppose treats_interval evaluates to [0.10, 0.15]. Select all true statements.

Answer: None of the above.


Difficulty: ⭐️⭐️

The average score on this problem was 85%.



Problem 2

Lecture 14

Your friend’s cat, Bugatti, is not represented in cats. If Bugatti’s top speed is 27.2 miles per hour, what percentile is Bugatti’s top speed in, relative to all the cats in the cats DataFrame?

Answer: 99th


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 67%.


Problem 3

Lecture 15

The distribution of the "treats" column is shown below, with the median labeled.


Problem 3.1

Select the answer closest to the mean of "treats".

Answer: 7


Difficulty: ⭐️⭐️

The average score on this problem was 81%.


Problem 3.2

Select the answer closest to the standard deviation of "treats".

Answer: 4


Difficulty: ⭐️⭐️

The average score on this problem was 85%.



Problem 4

Lecture 15

You compute the following statistics about the "top_speed" column:

mean = 14.6
median = 16.3

You also know that no cat ran at a top speed of exactly 14.6 or 16.3 miles per hour. Select all true statements.

Answer: Options 1 and 4.


Difficulty: ⭐️⭐️⭐️

The average score on this problem was 73%.


👋 Feedback: Find an error? Still confused? Have a suggestion? Let us know here.