Skip to content

T.8 · Conditioning, Bayesian inference and sampling error

GRE MathematicsTopic 21

Video lesson for this topic Open the video page
5:04

T.8 · Conditioning, Bayesian inference and sampling error

In 1763, two years after the death of Thomas Bayes, a Presbyterian minister in Kent, his friend Richard Price read Bayes's unpublished essay to the Royal…

English narration · English and 中文 subtitles you can switch

21.1

Conditioning, Bayesian inference and sampling error

In 1763, two years after the death of Thomas Bayes, a Presbyterian minister in Kent, his friend Richard Price read Bayes's unpublished essay to the Royal Society in London. It answered a reversed question: given how often an event has happened, how probable is it that its chance lies in a certain range? Bayes's rule for turning $P(\text{evidence} \mid \text{cause})$ into $P(\text{cause} \mid \text{evidence})$ was little used for almost two centuries. Today it runs spam filters, medical tests and much of machine learning.

GRE Mathematics probability and statistics questions ask you to:

  • Compute conditional probabilities and use the law of total probability.
  • Find a posterior probability 后验概率 with Bayes' rule.
  • Separate independence from mutual exclusion.
  • Use expectation and variance of sums, and the standard error 标准误 of a mean.
Vocabulary Train
English
posterior probability/pɒˈstɪərɪə ˌprɒbəˈbɪlɪti/
standard error/ˈstændəd ˈerə/
21.2

Conditional probability

$$\boxed{P(A \mid B) = \frac{P(A \cap B)}{P(B)}}, \qquad P(B) = \sum_i P(B \mid A_i)P(A_i)$$
  • The second formula, the law of total probability, needs the $A_i$ to split the whole space.
  • $P(A \mid B)$ and $P(B \mid A)$ are usually different.
21.3

Bayes' rule

$$P(A \mid B) = \frac{P(B \mid A)P(A)}{P(B)}$$
  • The prior $P(A)$ is the starting probability; the posterior $P(A \mid B)$ is updated by the evidence.
  • Expected counts make it concrete: imagine 1,000 cases and fill in a table.
  • A rare cause stays fairly unlikely after one positive test unless the test rarely gives false positives.
Table of 1,000 expected items: 80 of 100 defective and 45 of 900 non-defective test positive, 125 positives in all
Given a positive test, divide by all 125 positives: 80/125, not 80/100
21.4

Independent and exclusive

  • Independent: $P(A \cap B) = P(A)P(B)$. Knowing $A$ tells you nothing about $B$.
  • Mutually exclusive: $P(A \cap B) = 0$.
  • Two events with positive probabilities cannot be both: if they are exclusive, knowing $A$ tells you $B$ did not happen.
Left: a unit square with A a column of width 0.4 and B a row of height 0.5, overlapping in 0.2, independent. Right: two disjoint circles, mutually exclusive, so P(A and B) = 0, not the product
Independent is not the same as mutually exclusive.
21.5

Sums and sampling error

  • $E[aX + bY] = aE[X] + bE[Y]$ always. $\operatorname{Var}(X + Y) = \operatorname{Var}X + \operatorname{Var}Y$ when $X$ and $Y$ are independent.
  • The mean of $n$ independent observations with standard deviation $\sigma$ has standard error $\sigma/\sqrt n$.
  • Central limit theorem: for a large random sample of independent, identically distributed observations with finite variance, the sample mean is approximately normal. An approximate 95% confidence interval for the population mean is the sample mean $\pm 1.96$ standard errors.
  • To halve the standard error, quadruple the sample.
21.6

Worked example: a defect test

10% of devices are defective. A test is positive for 80% of defective devices and 5% of good ones.

  • In 1,000 devices: 100 defective, 80 positive; 900 good, 45 positive.
  • $P(\text{defect} \mid +) = \dfrac{80}{80 + 45} = \dfrac{16}{25} = 0.64$.
  • The 0.8 is $P(+ \mid \text{defect})$, the reversed condition. Check: the negatives are $20 + 855 = 875$, and $125 + 875 = 1000$.
21.7

Worked example: sampling error

Test scores have $\sigma = 10$. A sample of 25 has mean 72.

  • Standard error: $10/\sqrt{25} = 2$.
  • An approximate 95% interval is $72 \pm 1.96 \times 2 = 72 \pm 3.9$.
  • With 100 students the standard error would be 1: four times the sample for half the error.
21.8

Common errors

  • Confusing $P(A \mid B)$ with $P(B \mid A)$.
  • Ignoring the prior (base rate) in Bayes' rule.
  • Treating exclusive events as independent.
  • Adding standard deviations instead of variances.
  • Thinking the standard error falls in proportion to $n$.
21.9

Key terms

posterior probability: The probability of a cause after taking account of the observed evidence.

standard error: The standard deviation of a statistic, such as a sample mean, across repeated samples.

21.10

Check yourself

  • $A$ and $B$ are independent with $P(A) = 0.3$, $P(B) = 0.5$. What is $P(A \cup B)$?
  • A family has two children, at least one a girl. What is the probability both are girls?
  • Observations have SD 8. What is the standard error of the mean of 16 of them?

Answers: $0.3 + 0.5 - 0.15 = 0.65$. $\tfrac13$. 2.

Explore

The given group changes the denominator

$P(A\mid B)=n(A\cap B)/n(B),\quad n(B)>0$

Use the lesson’s table to compare a conditional probability, its reverse and a whole-cohort probability. The highlighted group is the denominator.

Explore

Individual spread and sample-mean spread

$\mathrm{SD}(\bar X)=\sigma/\sqrt n$

Changing n changes the standard error, not the population standard deviation. Normal probabilities require an explicit distribution model.

Interactive lessons on this topic

Work through it step by step, with instant-check exercises.

More topics in GRE Mathematics

IGCSE, A-Level & AP