Australian National University · FACULTY OF STATISTICS

STAT1008 Chap.6 Conditional Probability, Bayes and Counting

- one subject, every graph, every model, every mark
7 Chapters4-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 6 of 11 · STAT1008

Conditional Probability, Bayes and Counting

Conditional Probability, Bayes and Counting develops the general multiplication rule, the marginal probability rule written through conditionals, and probability trees that multiply along paths and add across them. Bayes’ theorem then reverses a condition, updating prior probabilities after evidence is observed.

The chapter finishes with the counting rules used for classical probability: the multiplication rule, factorials, permutations when order matters and combinations when it does not. Assessment items in this topic tend to hide the structure in words: shares of a population, then rates within each share, then a question about the reverse condition.

Drawing the tree or a table of joint probabilities first turns the wording into arithmetic that a marker can follow line by line.

In this chapter

What this chapter covers

  • 01

    The general multiplication rule

  • 02

    Probability trees

  • 03

    The marginal probability rule through conditionals

  • 04

    Bayes’ theorem

  • 05

    Factorials and the multiplication rule for counting

  • 06

    Permutations and combinations

  • 07

    Using the complement for at-least questions

Worked example · free

Which supplier made the defective part?

Q [5 marks]. Supplier X provides 60% of a part and supplier Y 40%. Their defect rates are 3% and 8%. A randomly chosen part is defective. Find the probability it came from supplier Y. The marks shown for these steps are a revision aid written by AskSia, not a University marking scheme.
Probability tree for a sensor part: 60% of stock comes from supplier X and 40% from supplier Y, with defect rates of 3% and 8%, so the defective paths carry joiProbability tree for a sensor part: 60% of stock comes from supplier X and 40% from supplier Y, with defect rates of 3% and 8%, so the defective paths carry joint probabilities 0.018 and 0.032.0.6Supplier X0.03Defect: 0.0180.97Sound: 0.5820.4Supplier Y0.08Defect: 0.0320.92Sound: 0.368
Probability tree for a sensor part: 60% of stock comes from supplier X and 40% from supplier Y, with defect rates of 3% and 8%, so the defective paths carry joint probabilities 0.018 and 0.032.
  • 1Priors: P(X) = 0.6 and P(Y) = 0.4. Likelihoods: P(D | X) = 0.03 and P(D | Y) = 0.08.
  • 1Joint probabilities: 0.03 × 0.6 = 0.018 and 0.08 × 0.4 = 0.032.
  • 1Marginal probability rule: P(D) = 0.018 + 0.032 = 0.0500.
  • 2Bayes’ theorem: P(Y | D) = 0.032/0.0500 = 0.6400.
P(Y | defective) = 0.64. Although supplier Y provides only 40% of parts, its higher defect rate makes it the more likely source of a defective one.
Sia tip — Check that the posteriors sum to 1 and that the hypothesis with the higher likelihood gained probability.
Glossary

Key terms

Prior probability
A prior probability is the probability of a hypothesis before new evidence is taken into account.
Permutation
A permutation is an ordered arrangement of x objects chosen from n distinct objects.
Combination
A combination is a selection of x objects from n where the order of selection does not matter.
Probability tree
A probability tree is a branching diagram whose path products give joint probabilities for successive stages.
Factorial
The factorial n! is the product of the whole numbers from n down to 1, with 0! equal to 1.
Posterior probability
A posterior probability is the updated probability of a hypothesis after new evidence has been observed.
FAQ

Conditional Probability, Bayes and Counting FAQ

How do I know whether a question needs Bayes’ theorem?

Look for a reversed condition. If the stem gives probabilities of evidence given each cause, and asks for the probability of a cause given the evidence, Bayes’ theorem is the tool. A probability tree makes the same calculation visible.

When does order matter in a counting problem?

Swap two of the chosen items and ask whether the outcome changes. A password or a finishing order changes, so use permutations. A committee or a hand of cards does not, so use combinations.

Why might nPr overcount an arrangement?

The permutation formula assumes every object is distinct. When some items are identical, such as repeated letters, different orders of identical items look the same, so split the count into cases or divide out the repeated orders.

What is the marginal probability rule?

When events B1 to Bk are mutually exclusive and collectively exhaustive, the probability of A is the sum of P(A given Bi) times P(Bi) over all i. In a tree it is the sum of every path that ends in A, and it supplies the denominator of Bayes’ theorem.

How do I count selections with a condition such as exactly two of one type?

Multiply the ways to choose each type separately. For exactly two of four specialists and one of three others, there are 4C2 times 3C1 selections. Divide by the total number of selections to turn the count into a probability.

Study strategy

Exam move

Solve each Bayes problem three ways, with a tree, a two-way table of joint probabilities and the formula, until you can choose the fastest under time pressure. For counting, write “order matters” or “order does not matter” before every calculation, and practise the nCr key sequence on the exam-style calculator. Use the complement whenever a question says “at least one”.

A short daily drill of three counting questions and one Bayes question keeps both skills fresh until the final exam. Build a habit of checking every Bayes answer for direction: the hypothesis that makes the evidence more likely should gain probability.

For counting, keep a list of solved patterns, such as at least one, exactly k of one type and arrangements with repeats, and match each new question to a pattern before calculating.

Working through Conditional Probability, Bayes and Counting in STAT1008? Sia is AskSia’s AI Statistics tutor — ask any STAT1008 Conditional Probability, Bayes and Counting question and get a clear, step-by-step explanation grounded in how STAT1008 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 46 of your Australian National University subjects - and 1,000+ Bibles across every Australian university.
Sia - your STAT1008 tutor, unlimited, worked the way the exam marks it
The full 4-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works