MATH 314 Quiz 07
Given on 2026-09-08
-
Write a Python class named
BernoulliDistributionthat has the Bernoulli density function as a method. The constructor should accept as an argument the probability, with a default value of 0.5. The method should accept as an argument the outcomex. The density function of the Bernoulli distribution is