Probability course
Probability course
Module 4 of 8

Random variables & distributions

Translate random experiments into useful distributions.

18 min2 worked examples3 concept checks

Loading your learning progress…

Learning objectives
  • Distinguish an outcome from the value of a random variable.
  • Recognize the assumptions behind a binomial model.
  • Use area, rather than point height, for continuous probabilities.

Concepts

A random variable summarizes an outcome

A random variable assigns a number to each outcome. The same experiment can support several variables: number of heads, longest run, or total payoff. A probability mass function assigns weights to discrete values; those weights must be nonnegative and sum to one.

Count successes in a fixed window

A Bernoulli variable is 1 for success and 0 for failure. A binomial count X uses n independent Bernoulli trials with the same success chance p. Then P(X=k)=(nk)pk(1−p)n−kP(X=k)=\binom{n}{k}p^k(1-p)^{n-k} for k=0,…,n. The combination counts placements; the product weights each placement. Changing p across trials or drawing without replacement generally breaks this model.

A density is not a point probability

For a continuous variable, probabilities are areas under its density. A single point has probability zero even when the density there is positive. For a uniform variable on [a,b], the density is 1/(b−a), and an interval inside the support has probability equal to its length divided by b−a. A density may exceed one; its total area must equal one.

Examples

Worked example 1

Two wins in three trials

Three independent trials each succeed with probability 1/2. What is the probability of exactly two successes?
  1. Confirm the model

    There is a fixed number of independent trials, and all have the same success probability: X is binomial with n=3 and p=1/2.
  2. Choose the successful positions

    There are (32)=3\binom{3}{2}=3 placements: SSF, SFS, and FSS. Each has probability 1/8.
  3. Add the weights

    The placements are disjoint, so P(X=2)=3/8. A single ordered sequence would give only 1/8.
Worked example 2

Uniform waiting window

A simulated arrival time X is uniform from 2 to 8 minutes. What are P(3≤X≤5) and P(X=4)?
  1. Measure the support

    The full interval has length 8−2=6. Its constant density is 1/6 per minute.
  2. Measure the event

    The interval from 3 to 5 has length 2, so its probability is 2/6=1/3.
  3. Separate a point from a neighborhood

    P(X=4)=0 because one exact point has zero width. This does not say that times near 4 are impossible.
Explore the idea · unscored

See the distribution, then collect its tail

X counts successes in independent trials with one fixed success chance. Each bar is a binomial probability.

binomial probability masses with success chance 0.5Bars at 6 and above are highlighted. Their full tail probability is 37.7%. A numerical table follows the graph.12%25%012345678910Number of successes
P(X ≥ 6)37.7%

Mean np = 5.00. Standard deviation √[np(1−p)] = 1.58.

Read the probability table
Binomial probabilities, rounded to four decimals
SuccessesProbabilityIn selected tail
00.0010No
10.0098No
20.0439No
30.1172No
40.2051No
50.2461No
60.2051Yes
70.1172Yes
80.0439Yes
90.0098Yes
100.0010Yes

Concept checks

Choose an answer, then check it. You can retry; your latest checked answer determines completion.

0 of 3 concept checks passed
Concept check 1Which experiment is directly binomial?
Concept check 2A variable has a continuous density. What is the probability of any one exact value?
Concept check 3A discrete variable only takes 0, 1, or 2. P(X=0)=0.2 and P(X=1)=0.5. What must P(X=2) be?

Key results

  • Identify what is being counted or measured.
  • Check distribution assumptions before using its formula.
  • A PMF gives point probabilities; a PDF gives density.
  • A model must assign total probability one.

Practice problems

Solve related problems or try a timed probability drill.

Next in the course

Add up the average

Use weighted outcomes and indicators to avoid case explosions.

Next module