Introduction to Random Variables and Probability Distributions
Turn random outcomes into numbers. Build a table showing how likely each value is, check that the probabilities make sense, and read the difference between “exactly” and “at most.”
By the end of this lesson, you should be able to:
- Define a discrete random variable for a random process.
- Group outcomes to construct a probability distribution.
- Check that every probability is valid and the total is .
- Read and represent a distribution as a table, graph or function.
- Construct cumulative probabilities and distinguish exact models from simulation estimates.
Before you start: Be comfortable with intersections, unions, complements and independence. Review Topic 2.7: Independent Events and Unions of Events if needed.
First time learning this? Follow the example. Keep the ordered outcome and the number of heads separate.
Here to revise? Use the distribution checklist, then try the practice before opening the solutions.
The concept in 60 seconds
A random variable assigns a numerical value to the outcome of a random process. You choose a clear rule for recording the number; chance determines which value you observe.
Toss a fair coin , with independent tosses. Let be the number of heads in those tosses. An ordered outcome such as is not the same thing as the value of : gives , and also gives .
Outcome → recorded value → probability
First identify the possible outcomes. Then group the outcomes that give the same numerical value. Add their probabilities to find the probability of that value.
Number of heads:
Number of heads:
Number of heads:
Number of heads:
, . The order describes the toss results; the random variable records only the number of heads. different outcomes can produce the same value.
The ordered outcomes are equally likely, but the values are not. There are ways to get exactly head, so has the probability of .
Quick check: why is not ?
possible numerical values do not imply equally likely values. groups and , each with probability . Therefore .
The model
complete trial consists of independent tosses of a fair coin. means heads and means tails. The order matters when listing the sample space:
Each ordered outcome has probability . Define as the number of heads in the complete trial.
- : .
- : or .
- : .
The possible values of are . cannot equal because the trial contains only tosses. It cannot equal because a count of heads must be a whole number.
The definition of stays the same across trials. Its observed value changes with the coin results. If this trial produces , the observed value is .
Key ideas and notation
Random variable:
A numerical quantity determined by a random outcome.
: number of heads in tosses.
Observed value:
A particular number the variable can take.
After , the observed value is .
Discrete variable
Its possible values form a finite or countable list.
is a finite list. Some discrete counts can continue as , … without a fixed upper limit.
Probability distribution
It pairs each possible value with its probability.
The heads-count probabilities are .
A discrete variable does not have to be a nonnegative whole-number count. A points score could have values ; a discrete measurement could have values and . What matters is the countable set of possible numerical values.
Point probability: .
Cumulative probability: .
asks about head. asks about head. The symbol includes its boundary value.
Heads and tails are outcome labels. Defining a count, score or numerical indicator turns the information you want into a random variable. This lesson focuses on discrete distributions; distributions for continuous measurements are introduced later.
Build a probability distribution
- Define the trial and variable. tosses form trial; counts heads in that trial.
- List the possible values. can be .
- Group the outcomes for each value. Combine and under .
- Add each group’s outcome probabilities. Use probability rules when outcomes are not equally likely.
- Check the completed distribution. Each probability must be between and , and the total must be .
Outcome:
Probability:
Outcomes: ,
Probability:
Outcome:
Probability:
| Heads count | Ordered outcomes | Exact probability | Decimal probability |
|---|---|---|---|
| , | |||
The groups partition the equally likely outcomes. Their probabilities are .
The events , and cannot occur together in the same trial. They also cover all possible trials. That is why their probabilities add to .
The same distribution as a function
A probability mass function, or PMF, states the probability associated with each value:
The case matters: even though lies between and . A discrete distribution assigns probability to its specified values, not to every point between them.
Check and graph a distribution
Two essential probability checks
A total of does not fix a negative probability. For example, sum to , but the negative entry makes the proposed distribution invalid.
Negative variable values are allowed; negative probabilities are not. Also check that each value appears in the distribution, with all outcomes for that value combined.
Rounding: use exact values when available. probabilities of sum to , even if displayed as each and their rounded total is . Distinguish rounded displays from entries stated to be exact.
Exact fair-coin model. Each separate bar is ; its height shows probability. The chart has a baseline and a probability scale.
Read the horizontal coordinate as the value of and the bar height as . The bar over has height . The have height .
The bars are separate because takes discrete values. Do not read a new probability at or by drawing a sloping line between bars. For this graph, the probability heights add to .
Find an event probability from the distribution
Add the probabilities of every value satisfying the question. For example, “at least head” includes and :
.
The complement gives the same result: .
Read cumulative probabilities
A cumulative distribution gives : add all point probabilities at values less than or equal to the threshold .
| Threshold | Values included | Cumulative probability |
|---|---|---|
| and | ||
Exact fair-coin model. Filled points include each new value [Truncated]