MATH 314 Quiz 10
Given on 2025-10-14
There are exactly 4 things wrong in each code chuck of each of the problems below.
Please cross out the wrong characters and write an ordered, comma
separated list of replacement characters after the comment #.  If
you don't know the correct Python syntax for the replacement
characters you want, make something not unreasonable up.
You should assume the following import statements precede each code chunk in each question. The code chunks are independent across problems; no code in one code chunk informs code in another code chunk.
import matplotlib.pyplot as plt
import numpy as np
import scipy.stats as st
from scipy.optimize import minimize
A mechanical engineer is testing the reliability of a new type of bolt used in aerospace applications. In a sample test of 50 bolts, each bolt has a 98% chance of withstanding a force of 2000N without breaking. What is the probability that at least 48 bolts withstand the force?
B = st.binom(2000, 0.98)        #
x = np.arange(48, 50)           #
fx = B.pdf(x)                   #
np.sum(1 - fx)                  #