MATH 314 Quiz 07

Given on 2026-09-08

  1. Write a Python class named BernoulliDistribution that 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 outcome x. The density function of the Bernoulli distribution is