UNIHIVE

Study Hub UNIPORT ENG 301

ENG 301 · Engineering Mathematics IV (Probability and Statistics)

Conditional probability, independence and Bayes' theorem

Conditional probability, the multiplication rule, independence, total probability, Bayes' theorem and Bernoulli trials.

Our notes

2 min read

Conditional probability

The probability of A given that B has happened: P(A | B) = P(A ∩ B)/P(B), P(B) > 0.
Multiplication rule: P(A ∩ B) = P(B) P(A | B) = P(A) P(B | A).
Worked example. Two fuses are drawn without replacement from a box of 10, 2 of them blown. P(both blown) = (2/10)(1/9) = 1/45 ≈ 0.022.

Independence

A and B are independent if P(A ∩ B) = P(A) P(B), i.e. P(A | B) = P(A). For several events, every sub-collection must multiply.

  • Independent is not the same as mutually exclusive: two exclusive events with non-zero probabilities are always dependent (if one happens the other can't).

Total probability

If B₁, …, Bₙ split S into exclusive, exhaustive parts:
P(A) = Σ P(A | Bᵢ) P(Bᵢ).

Bayes' theorem

P(Bₖ | A) = P(A | Bₖ) P(Bₖ) / Σ P(A | Bᵢ) P(Bᵢ): it turns "probability of the effect given the cause" into "probability of the cause given the effect".
Worked example. Machines A, B and C make 50%, 30% and 20% of a factory's output, with defect rates 1%, 2% and 3%.
P(defective) = 0.5(0.01) + 0.3(0.02) + 0.2(0.03) = 0.005 + 0.006 + 0.006 = 0.017.
A defective item is found. P(it came from A) = 0.005/0.017 = 0.294; from C = 0.006/0.017 = 0.353. Machine C makes the fewest items but is the likeliest source of a defect.
Worked example (testing). A fault detector catches 95% of real faults and gives a false alarm 2% of the time; 1% of units are faulty. P(faulty | alarm) = 0.0095/(0.0095 + 0.0198) = 0.0095/0.0293 = 0.32. Most alarms are false when faults are rare: that's why a second test is used.

Bernoulli trials

Repeated independent trials, each with two outcomes (success with probability p, failure q = 1 − p), and p the same each time.

  • P(k successes in n trials) = ⁿCₖ pᵏ qⁿ⁻ᵏ (the binomial law, next topic but one).
  • P(at least one success in n trials) = 1 − qⁿ.

Worked example. Each of 5 independent welds has a 10% chance of a defect. P(at least one defective weld) = 1 − 0.9⁵ = 1 − 0.590 = 0.410.

  • The number of trials until the first success is geometric: P(first success on trial k) = qᵏ⁻¹p, mean 1/p.

Exams usually ask: compute conditional probabilities from tables or trees; test independence; total probability and Bayes problems (machines, tests, channels); Bernoulli trial problems.

Common mistake: mixing up P(A | B) with P(B | A). "95% of faults set off the alarm" is P(alarm | fault), not P(fault | alarm); Bayes' theorem links them.

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 ENG 301 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.