You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's simplify this section, since the random variable is so simple. I suggest we drop the sentence "The interpretation of $p(x_i)$ is the probability of 'true' for any single experiment that asks 'True-False' question." and also the two plots.
Thank you, John. I agree that given the simplicity of the random variable, removing the specified sentence and the two plots will streamline our content effectively. I'll proceed with making these changes.
I've noticed that the content in the Bernoulli distribution section closely mirrors that of the uniform distribution section.
With this in mind, I'd like to propose the following amendments. Would that be alright with you, John(@jstac)?
Another useful distribution is the Bernoulli distribution on$S = {0, 1}$ , which has PMF:
Here$x_i\in S$ is the outcome of the random variable.
The interpretation of$p(x_i)$ is the probability of 'true' for any single experiment that asks 'True-False' question.
We can import the Bernoulli distribution on$S = {0,1}$ from SciPy like so:
Here's the mean and variance:
The formula for the mean is$p$ , and the formula for the variance is $p(1-p)$ .
Now let's evaluate the PMF:
Here's a plot of the probability mass function:
Here's a plot of the CDF:
The CDF jumps$p(x_i)$ at $x_i$ .
Best,
Longye
The text was updated successfully, but these errors were encountered: