Probability Distribution of a Discrete Random Variable
Build a probability distribution for a discrete random variable x, verify the two required conditions, and visualize the distribution with a bar graph. A second visualization builds the classic two-stage tree diagram (two trials).
Core idea
Use the builder below to write the distribution as a table and verify these two conditions.
Distribution builder (table → probabilities)
| Value of x | Probability P(x) | Row |
|---|
1) Probability distribution (output)
| x | P(x) | Notes |
|---|---|---|
| Tip: if you entered frequencies, probabilities are computed as relative frequency = frequency ÷ total. | ||
2) Read probabilities from the table
3) Visualizations
Bar graph of P(x)
Each bar height equals the probability for that value of x.
Tree diagram (two trials)
Build a two-stage probability tree: two selections, each either M (event happens) with probability 0.60 or N (event does not happen) with probability 0.40.
| x = number of M outcomes | P(x) | How it is obtained |
|---|---|---|
| This matches the idea “count successes in 2 trials.” | ||