Lesson 46 of 46 · Mathematics

Probability and statistics

Count outcomes, combine probabilities with the addition, multiplication and complement rules, and find means, medians and weighted means by hand.

About 22 minutes

In this lesson

  • Find probabilities by counting equally likely outcomes, and combine them with the addition, multiplication and complement rules.
  • Handle draws without replacement and conditional probability, using combinations where they save work.
  • Compute and compare the mean, median, mode, range and weighted mean of a data set.

The idea

Probability as counting

When all outcomes are equally likely,

P(event)=number of favourable outcomesnumber of possible outcomes.P(\text{event}) = \frac{\text{number of favourable outcomes}}{\text{number of possible outcomes}}.

The work is in counting both correctly. With two dice there are 6×6=366 \times 6 = 36 ordered outcomes, and (2,6)(2, 6) and (6,2)(6, 2) are different outcomes. Listing a small sample space in a grid is often faster and safer than any formula. Every probability lies between 0 and 1; an answer outside that range means a mistake.

Counting tools

  • Multiplication principle: if one choice can be made in mm ways and a second in nn ways, the pair can be made in mnmn ways.
  • Arrangements: nn different objects can be put in order in n!=n(n−1)⋯1n! = n(n - 1) \cdots 1 ways.
  • Combinations: the number of ways to choose kk objects from nn when order does not matter is (nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n - k)!}. For example (102)=10⋅92=45\binom{10}{2} = \frac{10 \cdot 9}{2} = 45.

Ask whether order matters. Choosing a committee of two does not depend on order; choosing a president and a secretary does.

The three rules

Complement. P(not A)=1−P(A)P(\text{not } A) = 1 - P(A). Any question with "at least one" is usually fastest through its complement, "none": P(at least one)=1−P(none)P(\text{at least one}) = 1 - P(\text{none}).

Addition. P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B). The subtraction removes the overlap counted twice. When AA and BB cannot happen together (mutually exclusive), the overlap is zero and the probabilities simply add.

Multiplication. P(A and B)=P(A)⋅P(B∣A)P(A \text{ and } B) = P(A) \cdot P(B \mid A), where P(B∣A)P(B \mid A) is the probability of BB once AA is known to have happened. If AA and BB are independent, P(B∣A)=P(B)P(B \mid A) = P(B) and the probabilities just multiply. Two separate dice rolls are independent; two cards drawn without replacement are not.

Without replacement

When objects are drawn one after another without being put back, both the total and the count of the kind just drawn fall by one at each draw. For two red balls from a bag of 4 red and 6 blue: 410⋅39\frac{4}{10} \cdot \frac{3}{9}. The same answer comes from combinations: (42)(102)=645\frac{\binom{4}{2}}{\binom{10}{2}} = \frac{6}{45}. Using two routes is a good check.

Conditional probability

P(A∣B)=P(A and B)P(B).P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}.

In counting terms: restrict attention to the outcomes in BB, and ask what fraction of them are also in AA. With a two-way table or a Venn diagram, P(A∣B)P(A \mid B) is the overlap divided by the whole of BB, not by the whole population. Note that P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) have the same numerator but different denominators, so they are usually different.

Averages

  • Mean: sum of the values divided by how many there are. So sum=mean×count\text{sum} = \text{mean} \times \text{count}, which is the key to most "a value was added or removed" questions.
  • Median: the middle value once the data are sorted. With an even number of values, it is the mean of the two middle ones.
  • Mode: the most frequent value. Range: largest minus smallest.

A weighted mean combines groups of different sizes: if n1n_1 values have mean xˉ1\bar{x}_1 and n2n_2 values have mean xˉ2\bar{x}_2, the overall mean is

n1xˉ1+n2xˉ2n1+n2.\frac{n_1\bar{x}_1 + n_2\bar{x}_2}{n_1 + n_2}.

It lies between the two group means, closer to the mean of the larger group. Averaging the two means directly is right only when the groups are the same size.

How changes affect the statistics

Adding the same constant to every value adds it to the mean, median and mode, and leaves the range and standard deviation unchanged. Multiplying every value by a constant multiplies the mean, median and mode by it, and the range and standard deviation by its size (a factor of −2-2 doubles the spread). The standard deviation measures how spread out the values are around the mean: data that are all equal have standard deviation 0. An extreme value moves the mean much more than the median, which is why the median describes skewed data better.

Before you choose

Check that a probability lies between 0 and 1, that a mean lies between the smallest and largest values, and that a median comes from sorted data. Each of these checks takes seconds and can remove a distractor.

Worked examples

Example 1: A sum with two dice

Two fair six-sided dice are rolled. What is the probability that the sum of the scores is 8?

  1. The sample space has 6×6=366 \times 6 = 36 equally likely ordered outcomes.

  2. List the favourable ones: (2,6),(3,5),(4,4),(5,3),(6,2)(2, 6), (3, 5), (4, 4), (5, 3), (6, 2), which is 5 outcomes.

  3. Second route: for a sum of 8 the first die must show 2 to 6 (a first score of 1 would need a 7), and each of those five values has exactly one partner. Again 5.

Answer

P=536P = \frac{5}{36}. Counting unordered pairs ({2,6},{3,5},{4,4}\{2, 6\}, \{3, 5\}, \{4, 4\}) and dividing by 36 gives 336\frac{3}{36}, which mixes unordered favourable outcomes with an ordered sample space.

Example 2: Two balls of the same colour

A bag holds 4 red and 6 blue balls. Two are drawn without replacement. What is the probability that they are the same colour?

  1. "Same colour" means both red or both blue; these cannot happen together, so add their probabilities.

  2. Both red: 410⋅39=1290\frac{4}{10} \cdot \frac{3}{9} = \frac{12}{90}. Both blue: 610⋅59=3090\frac{6}{10} \cdot \frac{5}{9} = \frac{30}{90}.

  3. Add: 4290=715\frac{42}{90} = \frac{7}{15}.

  4. Second route with combinations: (42)+(62)(102)=6+1545=2145=715\frac{\binom{4}{2} + \binom{6}{2}}{\binom{10}{2}} = \frac{6 + 15}{45} = \frac{21}{45} = \frac{7}{15}.

Answer

715\frac{7}{15}. Treating the draws as if the ball were replaced gives (410)2+(610)2=52100\left(\frac{4}{10}\right)^2 + \left(\frac{6}{10}\right)^2 = \frac{52}{100}, which is wrong here.

Example 3: Combining two groups

In one class 20 students have a mean mark of 15; in another, 30 students have a mean mark of 20. What is the mean mark of all 50 students?

  1. Turn each mean into a total: 20⋅15=30020 \cdot 15 = 300 and 30⋅20=60030 \cdot 20 = 600.

  2. Overall mean: 300+60050=90050=18\frac{300 + 600}{50} = \frac{900}{50} = 18.

  3. Second route: measure from 15. The first class adds nothing; the second adds 30⋅5=15030 \cdot 5 = 150 above 15. Spread over 50 students that is 33, so the mean is 15+3=1815 + 3 = 18.

Answer

The mean is 18. Averaging the two means, 15+202=17.5\frac{15 + 20}{2} = 17.5, ignores that the second class is larger.

Common traps

  • Adding probabilities for "at least one"

    The chance of at least one six in three rolls is not 3⋅16=123 \cdot \frac{1}{6} = \frac{1}{2}: that counts the outcomes with two or three sixes more than once, and with six rolls the same method would give 1, a certainty. Use 1−P(none)1 - P(\text{none}).

  • Using the wrong denominator in a conditional probability

    P(A∣B)P(A \mid B) divides the overlap by the size of BB, the condition, not by the whole group and not by the size of AA. Read the "given that" clause and make it the denominator.

  • Taking the median of unsorted data

    The median is the middle of the sorted list. With an even number of values, average the two middle values; picking one of them, or the wrong pair, gives a distractor.

  • Averaging averages

    The mean of two group means equals the overall mean only when the groups are the same size. Otherwise convert each mean into a total, add, and divide by the total count.

Check yourself

Choose an answer to each question: you will see at once whether it is right, and why.

Question 1: At least one six

Probability and statistics

A fair six-sided die is rolled three times. What is the probability of getting at least one six?

Show the answer

Answer: C. 91216\frac{91}{216}

Working

P(no six)=(56)3=125216P(\text{no six}) = \left(\frac{5}{6}\right)^3 = \frac{125}{216}, so P(at least one)=1−125216=91216P(\text{at least one}) = 1 - \frac{125}{216} = \frac{91}{216}. Second route: exactly one six 75216\frac{75}{216}, exactly two 3⋅136⋅56=152163 \cdot \frac{1}{36} \cdot \frac{5}{6} = \frac{15}{216}, exactly three 1216\frac{1}{216}; total 91216\frac{91}{216}.

Why the other options are wrong

  • A. This is the probability that all three rolls are sixes, not that at least one is.
  • B. This is the probability of exactly one six, 3⋅16⋅25363 \cdot \frac{1}{6} \cdot \frac{25}{36}; it leaves out two and three sixes.
  • D. This adds 16\frac{1}{6} three times, counting the outcomes with more than one six several times.
  • E. This is the probability of no six; the complement was computed but not subtracted from 1.

What carries over

For "at least one", subtract the probability of "none" from 1.

Question 2: A missing value, then the median

Probability and statistics

The six values 2,4,4,5,9,x2, 4, 4, 5, 9, x have a mean of 5. What is their median?

Show the answer

Answer: B. 4.54.5

Working

The sum must be 6⋅5=306 \cdot 5 = 30; the known values add to 24, so x=6x = 6. Sorted: 2,4,4,5,6,92, 4, 4, 5, 6, 9. The middle pair is 4 and 5, so the median is 4.54.5. Check the mean: 306=5\frac{30}{6} = 5.

Why the other options are wrong

  • A. 4 is the mode; the median of six values is the mean of the third and fourth sorted values, 4 and 5.
  • C. 5 is the mean given in the question, not the median.
  • D. This averages the fourth and fifth sorted values, 5 and 6; with six values the middle pair is the third and fourth.
  • E. 7 is the range, 9−29 - 2, not a measure of the centre.

What carries over

Use sum = mean × count to find a missing value, then sort before taking the median.

Question 3: Given that a student studies chemistry

Probability and statistics

In a group of 40 students, 25 study biology, 18 study chemistry and 8 study both. A student chosen at random studies chemistry. What is the probability that this student also studies biology?

Show the answer

Answer: C. 49\frac{4}{9}

Working

Restrict to the 18 chemistry students; 8 of them study biology. P=818=49P = \frac{8}{18} = \frac{4}{9}. With the formula: P(both)P(chemistry)=8/4018/40=818=49\frac{P(\text{both})}{P(\text{chemistry})} = \frac{8/40}{18/40} = \frac{8}{18} = \frac{4}{9}.

Why the other options are wrong

  • A. This is 840\frac{8}{40}, the probability of studying both, divided by the whole group instead of by the chemistry students.
  • B. This is the probability of chemistry given biology; the condition here is chemistry, so divide by 18.
  • D. This is 2540\frac{25}{40}, the probability of biology for any student; the information that the student studies chemistry is ignored.
  • E. This is 3540\frac{35}{40}, the probability of studying biology or chemistry, not a conditional probability.

What carries over

In a conditional probability the "given" group is the denominator.

Flashcards

Recall the answer before you flip each card, then say whether you knew it. Cards you miss come back at the end.

Probability with equally likely outcomes
Favourable outcomes divided by possible outcomes; the answer always lies between 0 and 1.
Probability of "at least one"
1−P(none)1 - P(\text{none}).
Addition rule for "A or B"
P(A or B)=P(A)+P(B)−P(A and B)P(A \text{ or } B) = P(A) + P(B) - P(A \text{ and } B); the last term is zero for mutually exclusive events.
Conditional probability
P(A∣B)=P(A and B)P(B)P(A \mid B) = \frac{P(A \text{ and } B)}{P(B)}: the overlap as a fraction of BB.
Number of ways to choose k objects from n, order not mattering
(nk)=n!k!(n−k)!\binom{n}{k} = \frac{n!}{k!(n - k)!}; for example (102)=45\binom{10}{2} = 45.
Weighted mean of two groups
n1xˉ1+n2xˉ2n1+n2\frac{n_1\bar{x}_1 + n_2\bar{x}_2}{n_1 + n_2}: convert each mean into a total, add, divide by the total count.

Key points

  • Count equally likely outcomes carefully; with two dice there are 36 ordered outcomes.

  • For "at least one", use 1 minus the probability of none.

  • Without replacement, both the total and the count of the kind drawn fall after each draw.

  • P(A∣B)P(A \mid B) is the overlap divided by the size of BB.

  • Turn means into totals to combine groups or find a missing value; sort the data before finding the median.

All questions here are original and written for UniExamer; none comes from the test maker.

Written and reviewed by the UniExamer education and assessment team. Every worked example and check question was checked before publication. If you find a mistake, write to support@uniexamer.com.

Practise this topic

Fresh questions on this skill, with worked explanations. Practice needs a Single Exam Pass or Plus.