MATH 314 Quiz 03
2025-02-04. No notes, no electronic devices. Provide code
for full credit, pseudo-code/math/words for partial credit, and a pretty
drawing no more than zero credit.
The Bernoulli density function is
where and .- Write as a Python function with defaulting to .
- What does
f(0)
evaluate to? - What does
f(1, p = 0.25 )
evaluate to? - Let
x = np.array([0, 1, 0])
. What doesf(x, p = 0.75)
evaluate to?