Skip to study

CHAPTER 07 · STATISTICS & PROBABILITY

Probability & distributions

Progress stays on this device

papers AI SL chapter & section analysis

Your chapter

Quantify uncertainty, choose a suitable model and interpret the result.

Read all chapter notes

7.1

Theoretical & experimental probability

A probability is between 0 and 1. For equally likely outcomes, divide favourable outcomes by the total number of outcomes. State the sample space before counting; outcomes in a real experiment need not be equally likely.

Relative frequency estimates a probability from observed data. An expected count is the probability multiplied by the number of repetitions; it is a prediction of an average, not a guarantee for one set of trials.

The probabilities of all distinct possible outcomes sum to 1. The complement of an event consists of all outcomes outside it. Larger representative samples can give more stable estimates, while systematic bias is not removed simply by increasing sample size.

P(A)\displaystyle P\left(A\right)=number of favourable equally likely outcomes / total outcomes. P(A′)=1−P(A)\displaystyle P\left(A^{\prime}\right) = 1 - P\left(A\right). Estimated P(A)\displaystyle P\left(A\right)=frequency / trials.

Watch out: A probability of 0.2 does not require the event to occur exactly once in every five trials.

Worked example

A fair spinner has equal sectors labelled 1 to 8. Find the probability of an even number.

  1. The favourable labels are 2,4,6,8: four outcomes.
  2. All eight sectors are equally likely, so P(even)=48=12\displaystyle \frac{4}{8} = \frac{1}{2}.

7.2

Combined probabilities in diagrams

A tree represents successive stages. Branch probabilities leaving the same point sum to 1. Multiply conditional probabilities along one complete path, then add the probabilities of mutually exclusive paths that satisfy the question.

Without replacement, the second selection uses the changed population. For independent trials, the probability on a later branch is unchanged by earlier outcomes. Specify which situation applies before drawing the tree.

In a Venn diagram, fill the overlap first, then the two event-only regions and finally the outside region. These four disjoint regions add to the total. A union includes the overlap once, while an intersection contains only common outcomes.

For a tree path: multiply along branches. For disjoint complete paths: add their probabilities. P(A∪B)=P\displaystyle P\left(A \cup B\right) = P(A only)+P(A∩B)+P\displaystyle +P\left(A \cap B\right) + P(B only).

Watch out: Adding probabilities along a single multi-stage path is not the same as multiplying its branches.

Worked example

A bag has 4 red and 3 blue counters. Two are taken without replacement. Find P(both red).

  1. The first red probability is 47\displaystyle \frac{4}{7} and the second, after a red, is 36\displaystyle \frac{3}{6}.
  2. Multiply along this path: (47)(36)=27\displaystyle \left(\frac{4}{7}\right) \left(\frac{3}{6}\right) = \frac{2}{7}.

7.3

Conditional probability & independence

Conditional probability changes the reference group. P(A|B) counts the outcomes in both A and B as a fraction of the outcomes in B; it is defined only when P(B)>0\displaystyle P\left(B\right) > 0.

Events are independent when P(A∩B)=P(A)P(B)\displaystyle P\left(A \cap B\right) = P\left(A\right) P\left(B\right), equivalently when knowing B does not alter P(A)\displaystyle P\left(A\right), provided the conditional probability is defined. Mutually exclusive events cannot occur together; two non-zero-probability mutually exclusive events are not independent.

The addition rule subtracts the overlap once. Total probability combines all disjoint routes to an event. To reverse a conditional probability, calculate the joint probability and divide by the total probability of the observed condition.

P(A|B)=P(A∩B)P(B)\displaystyle \frac{P\left(A \cap B\right)}{P\left(B\right)}. P(A∪B)=P(A)+P(B)−P(A∩B)\displaystyle P\left(A \cup B\right) = P\left(A\right) + P\left(B\right) - P\left(A \cap B\right). Independent: P(A∩B)=P(A)P(B)\displaystyle P\left(A \cap B\right) = P\left(A\right) P\left(B\right).

Watch out: P(A|B) and P(B|A) generally have different denominators and are not interchangeable.

Worked example

P(A)=0.5\displaystyle P\left(A\right) = 0.5, P(B)=0.4\displaystyle P\left(B\right) = 0.4 and P(A∩B)=0.15\displaystyle P\left(A \cap B\right) = 0.15. Find P(A|B).

  1. Use B as the restricted sample space.
  2. P(A|B)=0.150.4=38\displaystyle \frac{0.15}{0.4} = \frac{3}{8}.

7.4

Choosing complete probability representations

Choose a representation that displays every relevant outcome: a Venn diagram for overlapping membership, a two-way table for two classifications, or a tree for sequential choices. Different representations can encode the same information.

Check completeness and consistency. The four regions for two events must be non-negative and add to the sample total. Row and column totals must agree, and all tree branches leaving a node must sum to 1.

Translate the wording before calculating: “exactly one” excludes the overlap, “at least one” includes it, and “neither” is outside both events. Conditional questions require a restricted denominator even if the diagram contains the whole population.

For two events: total=A only+both+B only+neither. Exactly one=A only+B only. Conditional probability uses the given group as its denominator.

Watch out: A partially labelled diagram must still account for the outside region and the stated total.

Worked example

In a survey of 50 people, 28 use service A, 21 use B and 12 use both. Give A only, B only and neither, in that order.

  1. Subtract the overlap from each event: A only=28−12=16\displaystyle 28 - 12 = 16 and B only=21−12=9\displaystyle 21 - 12 = 9.
  2. The inside regions total 16+12+9=37\displaystyle 16 + 12 + 9 = 37, leaving 50−37=13\displaystyle 50 - 37 = 13 outside.

7.5

Random variables & probability distributions

A discrete random variable attaches a numerical value to each outcome. Its probability distribution lists every possible value and its probability; probabilities must be non-negative and sum to 1.

The expectation E(X) is the probability-weighted mean⁡\displaystyle \operatorname{mean}. It describes a long-run average and need not be one of the possible outcomes. Use the numerical values of X, rather than only their frequencies, when calculating it.

For a game or decision model, define whether X represents a reward or a net gain. A fixed cost is subtracted on every play. Recover an unknown probability by normalization or an expectation condition, then check that the resulting probabilities are valid.

∑P(X=x)=1\displaystyle \sum P\left(X = x\right) = 1. E(X)=∑xP(X=x)\displaystyle E \left(X\right) = \sum xP \left(X = x\right). Expected net gain=expected reward−fixed cost.

Watch out: An expected payout of 2.4 does not mean⁡\displaystyle \operatorname{mean} each individual play pays 2.4.

Worked example

X takes values 0,2,5 with probabilities 0.2,0.5,0.3. Find E(X).

  1. Weight each value by its probability.
  2. E(X)=0×0.2+2×0.5+5×0.3=2.5=52\displaystyle E \left(X\right) = 0 \times 0.2 + 2 \times 0.5 + 5 \times 0.3 = 2.5 = \frac{5}{2}.

7.6

Binomial distributions

A binomial model counts successes in a fixed number n of independent trials, each with the same success probability p and two classified outcomes. Explain whether these assumptions are reasonable in the context.

For X distributed as B(n, p)\displaystyle B \left(n,\,p\right), the probability of exactly k successes is a binomial probability mass. “At most k” means X≤k\displaystyle X \le k; “fewer than k” means X≤k−1\displaystyle X \le k - 1. Use complements for at least one or upper-tail questions.

The mean⁡\displaystyle \operatorname{mean} is np and the variance is np(1−p)\displaystyle np \left(1 - p\right), so the standard deviation is their positive square root. A binomial expectation is not a guaranteed count. Sampling without replacement from a small population usually violates constant probability and independence.

X~B(n, p)\displaystyle B \left(n,\,p\right): P(X=k)=C(n, k)p\displaystyle P\left(X = k\right) = C\left(n,\,k\right) pᵏ(1−p)n−k\displaystyle \left(1 - p\right)^{n - k}. E(X)=np\displaystyle E \left(X\right) = np. Var⁡(X)=np(1−p)\displaystyle \operatorname{Var}\left(X\right) = np \left(1 - p\right).

Watch out: P(X≥k)=1−P(X≤k−1)\displaystyle P\left(X \ge k\right) = 1 - P\left(X \le k - 1\right), not 1−P(X≤k)\displaystyle 1 - P\left(X \le k\right).

Worked example

X~B(5, 0.4)\displaystyle B \left(5,\,0.4\right). Find P(X=2)\displaystyle P\left(X = 2\right), giving four decimal places.

  1. Use the binomial mass C(5, 2)(0.4)2(0.6)3\displaystyle C\left(5,\,2\right)\left(0.4\right)^{2}\left(0.6\right)^{3}.
  2. This is 0.3456.

7.7

Normal distributions

A normal model is continuous, symmetric and specified by its mean⁡μ\displaystyle \operatorname{mean} \mu and positive standard deviation σ\displaystyle \sigma. The notation N(μ, σ2)\displaystyle N \left(\mu,\,\sigma^{2}\right) uses variance as the second parameter; calculator commands commonly ask for σ\displaystyle \sigma instead.

Probabilities are areas under the density curve. A single exact value has probability zero in a continuous model, so strict and non-strict interval endpoints give the same probability. Use sensible bounds for each tail and interpret the result in context.

Inverse normal calculations recover a quantile from a cumulative area. Translate an upper-tail percentage into a left-tail area before using the command. Two quantile conditions can determine an unknown mean⁡\displaystyle \operatorname{mean} and standard deviation.

X~N(μ, σ2)\displaystyle N \left(\mu,\,\sigma^{2}\right). z=x−μσ\displaystyle z = \frac{x - \mu}{\sigma}. P(a<X<b)\displaystyle P\left(a < X < b\right)=Φ(b−μσ)\displaystyle \left(\frac{b - \mu}{\sigma}\right)−Φ(a−μσ)\displaystyle \left(\frac{a - \mu}{\sigma}\right).

Watch out: For the highest 10%, enter a left-tail probability of 0.90, not 0.10, when finding the lower cutoff.

Worked example

Heights are modelled by X~N(170, 62)\displaystyle N \left(170,\,6^{2}\right). Find P(X<176)\displaystyle P\left(X < 176\right), to four decimal places.

  1. The standardized boundary is 176−1706=1\displaystyle \frac{176 - 170}{6} = 1.
  2. The left-tail normal area is Φ(1)≈0.8413\displaystyle \left(1\right) \approx 0.8413.