UNIHIVE

Study Hub UNIPORT MTH 264

MTH 264 · Statistics for Biological and Agricultural Sciences

The laws of probability

Events, addition and multiplication rules, conditional probability, and genetics examples.

Our notes

2 min read

Basics

Probability runs from 0 (impossible) to 1 (certain).

P(A) = favourable outcomes ÷ total equally likely outcomes.

Or long-run frequency: if 90 of 100 tested seeds germinate, P(germinate) ≈ 0.9.

Sum to 1

P(not A) = 1 − P(A). If P(germinate) = 0.9, P(not) = 0.1.

Addition law

P(A or B) = P(A) + P(B) − P(A and B).

If A and B are mutually exclusive (cannot both happen), P(A and B) = 0.

Example. In a herd, 30% of cattle have ticks, 20% have worms, and 10% have both.
P(ticks or worms) = 0.3 + 0.2 − 0.1 = 0.4.

Multiplication law

P(A and B) = P(A) × P(B|A).

If independent, P(A and B) = P(A) × P(B).

Example. Two seeds, each germinating with P = 0.9, independently:

  • Both: 0.9 × 0.9 = 0.81
  • Neither: 0.1 × 0.1 = 0.01
  • Exactly one: 2 × 0.9 × 0.1 = 0.18

Check: 0.81 + 0.01 + 0.18 = 1. Correct.

Conditional probability

P(B|A) = P(A and B) ÷ P(A).

With the herd example, P(worms | ticks) = 0.1/0.3 = 0.33.

P(worms) is only 0.2, so the two are not independent: ticks and worms go together in this herd.

Genetics: a Mendelian cross

Crossing two carriers, Aa × Aa:

Aa
AAAAa
aAaaa
  • P(aa) = (1/2)(1/2) = 1/4
  • P(shows dominant) = 3/4

For two independent genes, the chance of showing both recessive forms is (1/4)(1/4) = 1/16. That is the 9:3:3:1 ratio.

Bayes' theorem

Used to turn test results into real probabilities.

P(A|B) = P(B|A)P(A) ÷ P(B).

Example. A disease affects 2% of a flock. A test finds it 95% of the time, and gives a false positive in 10% of healthy birds. A bird tests positive. How likely is it to be sick?

  • P(positive and sick) = 0.02 × 0.95 = 0.019
  • P(positive and healthy) = 0.98 × 0.10 = 0.098
  • P(sick | positive) = 0.019/(0.019 + 0.098) = 0.162

Out of 1,000 birds: 20 are sick, with 19 positive; 980 are healthy, with 98 positive. Among the 117 positives, 19 are truly sick: 19/117 = 0.162. Correct.

This surprises many students. With a rare disease, even a good test gives many false alarms.

Counting

  • Permutations: ⁿPᵣ = n!/(n − r)!
  • Combinations: ⁿCᵣ = n!/[r!(n − r)!]

Choosing 3 goats from 10: ¹⁰C₃ = 120.

Exams usually ask: apply the addition and multiplication laws; use a tree diagram; solve a Mendelian problem; apply Bayes' theorem.

Common mistake: adding probabilities for "and", or multiplying events that are not independent. Decide first whether the word is "and" or "or", then whether the events are independent.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 264 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.