Topic 2.8 Notes – Introduction to Random Variables and Probability Distributions
What a Random Variable and Its Distribution Are
A random variable is the numerical result of a random process. You’ll usually see the variable written with a capital letter, like , and one possible value written in lowercase, like . So means “the probability that random variable takes value .”
What matters is that you define in context. Example:
- Roll two four-sided dice.
- the sum of the rolls
- the larger roll
- the absolute difference of the rolls
Same process, different variables, different distributions.
A common trap is mixing up an outcome with a random-variable value. If is the absolute difference, then and are different outcomes, but both give . That means their probabilities get combined.
This topic is about discrete random variables. That means the possible values are separate and countable.
- They might be whole numbers, like 0, 1, 2, 3.
- They do not have to be whole numbers. Values like 0, 2.5, and 10 are still discrete if those are the only possible amounts.
A probability distribution lists every possible value and its probability.
It is valid only if:
- each probability is between 0 and 1
- all probabilities add to 1
How to Construct a Discrete Probability Distribution
This is where students often lose points by stopping at sample-space outcomes instead of regrouping by the random variable.
- Define the variable clearly in context.
- List all possible values of the variable.
- Find which outcomes produce each value.
- Use probability rules to get those probabilities.
- Add probabilities of different outcomes that lead to the same value.
- Check that the probabilities sum to 1.
Example with two fair four-sided dice. Let absolute difference.
Possible values are .
- from so
- from so
And so on for 1 and 2.
If one probability is missing, use
So if probabilities are , then
so .
Ways to Represent the Distribution
The same distribution can be shown three ways.
Probability tables
A table pairs each possible value with its probability. It must include every possible value.
Graphs of discrete distributions
The horizontal axis shows variable values. The vertical axis shows probability.
For the absolute difference of two four-sided dice, the graph looks like this.

Probability distribution for absolute difference of two four-sided dice
The bars are separated because the values are discrete. If the axis shows counts instead, that is not a probability distribution unless it is clearly simulated relative frequency.
Probability functions
You may also see
That notation appears in the graph too. Sometimes it’s written piecewise, and impossible values can be given probability 0.
Building a Distribution from Simulation
Simulation is useful when exact calculation is hard.
- simulate one full trial
- record the random-variable value
- repeat many times
- count each value
- divide by total trials
Those results are estimates, not exact probabilities. More repetitions usually make them closer to the true distribution.
Using the Distribution and the Cumulative Distribution
Once you have the distribution, event probabilities come from adding the probabilities of values that fit the condition.
- exactly means
- at most means
- at least means
- fewer than means
- more than means
For discrete variables, endpoints matter.
The cumulative distribution is
You build it by adding from the bottom up. It never goes down and ends at 1. This step graph shows that each jump happens at a possible value of , and each flat stretch means the cumulative probability stays the same between values.

Cumulative distribution function for a discrete random variable
This is the difference students confuse all the time:
- means one exact value
- means that value and everything below it
Useful shortcuts:
Key Takeaways
Random Variable
A variable that assigns a numerical value to each outcome of a random process
Discrete Random Variable
A random variable with a finite or countably infinite set of possible values
Probability Distribution
For a discrete random variable, a list, table, graph, or function giving every possible value and its probability
Valid Discrete Probability Distribution
A distribution with 0 ≤ P(X=x) ≤ 1 for every value x and ΣP(X=x)=1
Probability Function / Probability Mass Function
The function pX(x)=P(X=x) that gives the probability for each possible value of a discrete random variable
Constructing a Discrete Probability Distribution
Define the random variable in context; list all possible values; identify outcomes for each value; use probability rules to find each probability; display the distribution; check probabilities are between 0 and 1 and sum to 1
Simulation-Based Probability Distribution
An estimated discrete probability distribution found by simulating many complete trials, recording the random-variable value each time, and using relative frequencies for each value
Probability Table
A table listing every possible value of a random variable and its probability
Graph of a Discrete Probability Distribution
A graph with possible values on the horizontal axis and probabilities on the vertical axis, with separate bars or vertical segments at each value
Cumulative Probability Distribution / Cumulative Distribution Function
A table or function giving F(x)=P(X≤x), the probability that a discrete random variable is less than or equal to x
Outcome vs. Value of a Random Variable
An outcome is a result in the sample space; a random-variable value is the number assigned to that outcome, and different outcomes can give the same value
Notes
Random Variable
A variable that assigns a numerical value to each outcome of a random process
Discrete Random Variable
A random variable with a finite or countably infinite set of possible values
Probability Distribution
For a discrete random variable, a list, table, graph, or function giving every possible value and its probability
Valid Discrete Probability Distribution
A distribution with 0 ≤ P(X=x) ≤ 1 for every value x and ΣP(X=x)=1
Probability Function / Probability Mass Function
The function pX(x)=P(X=x) that gives the probability for each possible value of a discrete random variable
Constructing a Discrete Probability Distribution
Define the random variable in context; list all possible values; identify outcomes for each value; use probability rules to find each probability; display the distribution; check probabilities are between 0 and 1 and sum to 1
Simulation-Based Probability Distribution
An estimated discrete probability distribution found by simulating many complete trials, recording the random-variable value each time, and using relative frequencies for each value
Probability Table
A table listing every possible value of a random variable and its probability
Graph of a Discrete Probability Distribution
A graph with possible values on the horizontal axis and probabilities on the vertical axis, with separate bars or vertical segments at each value
Cumulative Probability Distribution / Cumulative Distribution Function
A table or function giving F(x)=P(X≤x), the probability that a discrete random variable is less than or equal to x
Outcome vs. Value of a Random Variable
An outcome is a result in the sample space; a random-variable value is the number assigned to that outcome, and different outcomes can give the same value