MATH 314 Quiz 13

Given on 2026-02-24

I tried really hard to make exactly 5 things wrong in each code chuck of each of the problems below, but counting is hard.

Please cross out the wrong character(s) and write an ordered, comma separated list of replacement characters after the comment #. Place a line through nothing to denote that you want to add characters at that point. To delete characters without replacement, use under-scores (e.g. ____) as empty replacements of the characters you cross out.

If you don't know the correct Python syntax for the replacement characters you want, make something not unreasonable up.

You will not receive credit if you cross out an entire line, even if your fix is correct.

You should assume the following import statements precede each code chunk in each question.

import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as spicy

At a rock concert for the band Pearl Jelly, the lead guitarist Eddie Shredder shreds on his guitar so hard that he breaks 3.2 strings per hour. Thankfully, their concerts are only 2 hours long. How many backup strings should their guitar technician Travis bring to be 99% sure Eddie will have enough strings to shred?

X = st.expon(3.2)               #
1 - X.pmf(2)                    #