Year 3 · Notes: Making Predictions with Data – Conditional and Binomial Probability
Topic: S.S2 Y3 MAKING PREDICTIONS WITH DATA
Conditional probability from two-way tables and tree diagrams, independence, the binomial distribution and its conditions, and using permutations and combinations to solve real problems in business and daily life.
Year 3 · Notes: Making Predictions with Data – Conditional and Binomial Probability
A doctor knows a test is usually right, so if your result is positive, how worried should you be? A farmer knows 80% of seeds sprout, so out of 6 planted, how likely is it that at least 5 grow? Year 3 probability answers questions like these. The first is about conditional probability (the chance of something given what we already know); the second is about the binomial distribution.
IN THIS NOTE
Conditional probability \(P(A \mid B)\) from two-way tables and tree diagrams.
Independence in terms of conditional probability.
The binomial distribution: its conditions, formula and mean.
"At least" and "at most" binomial questions.
Permutations and combinations in business, games and daily life.
1. Conditional probability
\(P(A \mid B)\), read "the probability of \(A\) given \(B\)", is the probability that \(A\) happens when we already know \(B\) has happened. Knowing \(B\) shrinks the sample space to \(B\) alone, so \[P(A \mid B) = \frac{P(A \cap B)}{P(B)}.\] Rearranged, this gives the general multiplication law \(P(A \cap B) = P(B)\,P(A \mid B)\), which is what you have been using on tree diagrams without replacement.
WORKED EXAMPLE · A two-way table
100 students were asked whether they like Mathematics:
Like maths | Do not | Total | |
|---|---|---|---|
Boys | 30 | 15 | 45 |
Girls | 25 | 30 | 55 |
Total | 55 | 45 | 100 |
\(P(\text{likes maths} \mid \text{girl}) = \tfrac{25}{55} = \tfrac{5}{11}\): look only along the Girls row. \(P(\text{boy} \mid \text{likes maths}) = \tfrac{30}{55} = \tfrac{6}{11}\): look only down the "Like maths" column.
WORKED EXAMPLE · A medical test
2% of a population have a disease. A test is positive for 95% of people who have it, and (wrongly) for 10% of people who do not. A person tests positive. What is the probability they have the disease?
\(P(\text{positive}) = 0.02 \times 0.95 + 0.98 \times 0.10 = 0.019 + 0.098 = 0.117\).
\(P(\text{disease} \mid \text{positive}) = \dfrac{0.019}{0.117} \approx 0.16\). Only about 16%! Because the disease is rare, most positive results come from the large healthy group. This is why doctors repeat tests.
KEY IDEA
\(A\) and \(B\) are independent exactly when \(P(A \mid B) = P(A)\): knowing \(B\) happened does not change the chance of \(A\).
2. The binomial distribution
Many situations repeat the same experiment several times: tossing a coin 10 times, planting 6 seeds, asking 20 customers. If (1) there is a fixed number of trials \(n\), (2) each trial has only two outcomes, "success" or "failure", (3) the probability of success \(p\) is the same each time, and (4) the trials are independent, then the number of successes \(X\) follows a binomial distribution, \(X \sim B(n, p)\), and \[P(X = r) = {^nC_r}\,p^r q^{\,n - r}, \qquad q = 1 - p.\]
The \(^nC_r\) counts the different orders in which the \(r\) successes can happen; \(p^r q^{n-r}\) is the probability of any one such order. The mean (expected number of successes) is \(np\).
WORKED EXAMPLE · Rolling sixes
A fair die is rolled 5 times. \(P(\text{exactly two sixes}) = {^5C_2}\left(\tfrac{1}{6}\right)^2\left(\tfrac{5}{6}\right)^3 = 10 \times \tfrac{1}{36} \times \tfrac{125}{216} \approx 0.161\).
WORKED EXAMPLE · Germinating seeds
80% of a farmer's seeds germinate. She plants 6. Here \(X \sim B(6, 0.8)\).
\(P(X = 5) = 6(0.8)^5(0.2) \approx 0.393\). \(P(X = 6) = 0.8^6 \approx 0.262\).
So \(P(X \ge 5) \approx 0.393 + 0.262 = 0.655\). She can expect \(np = 4.8\) seeds to germinate on average.
WATCH OUT
For "at least one", use the complement: \(P(X \ge 1) = 1 - P(X = 0) = 1 - q^n\). Adding up all the other cases one by one is long and easy to get wrong.
3. Permutations and combinations at work
Counting methods are used to design systems and to judge the chances in games:
Situation | Counting | Result |
|---|---|---|
Number plates: 2 letters then 4 digits | \(26^2 \times 10^4\) | 6 760 000 plates |
A 4-digit PIN with no repeated digit | \(^{10}P_4\) | 5 040 PINs |
Lotto: choose 5 numbers from 90 | \(^{90}C_5\) | 43 949 268 possible tickets |
Choosing 3 products to display from 8 | \(^8C_3\) | 56 displays |
So the probability that one lotto ticket matches all five numbers is \(\dfrac{1}{43\,949\,268}\), about one in 44 million. A business that knows how many arrangements are possible can decide, for example, how long a customer code must be so that it never runs out.
Check yourself
Additional Mathematics
Senior High
More on MAKING PREDICTIONS WITH DATA
Other resources you can find on TudHub.