Probability Distribution
This chapter discusses the concept of probability distribution.
We'll cover the following
Probability Distribution
When working with random variables, we can ask questions like "what is the probability that X equals 2 heads in three coin flips, or that Y equals a value greater than 2 on a die roll?". We'll work these example scenarios below.
Example 1
If we flip a coin three times, the sample space will look something like below:
Now what is P(X=2)? In other words, what is the probability that X (the number of heads in three coin flips) is exactly equal to two? The outcomes that satisfy exactly two heads include: HHT, HTH and THH. Therefore we can say
Example 2
Now let's try to work out the dice example. If we roll a die, it can come face up with the following values:
We defined the random variable Y as the value that shows face-up on the die. The outcomes satisfying Y > 2 include 3, 4, 5, and 6.
For a fair die, the probability of P(Y= any value in S) is 1⁄6 since any of the six values are equally likely to show face-up. However, if we ask what the probability is of Y > 2 happening, it would be equivalent of asking,
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.