Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2006 Paper 1 7 a i Solution Created 2026-10-18 Updated 2026-10-20
Let denote carrying the gene and a positive result. The law of total probability givesThe last value is to three significant figures. The much larger non-carrier population contributes most of the positive tests in this mathematical model.
Let , , and denote the three disjoint categories, and or the test result. The law of total probability givesTo calculate the requested conditional probability, first combine the two categories with the virus. Their joint negative-test probability is , whereas . Bayes' theorem therefore givesThese numbers use the specified population proportions and test probabilities; the negative result reduces the initial combined proportion to about within this model.
Past exam of the mathematics course of the year 1 of the natural sciences course of the University of Cambridge 2008 Paper 2 11 d iii Solution Created 2026-10-18 Updated 2026-10-20
The events and form a partition. The law of total probability therefore givesAs written, both conditionals require nonzero conditioning probabilities.
The law of total probability weights each jar's red fraction by its selection probability:The large difference in jar sizes does not change their equal selection probabilities; pooling their contents would describe a different experiment.
Write , and . The law of total probability gives , a convex combination of the two fixed conditional values. HenceThese are the closed sharp bounds in the usual mixture-model interpretation, obtained by allowing to range from zero to one. The joint masses realize every such mixture.
There is an endpoint qualification if both conditionals must literally be defined by ratios: then . If , the marginal lies strictly between them, so the stated endpoints are an infimum and supremum rather than achieved extrema. If , every allowed mixture has exactly that common value. This is the second case of sharp bounds from binary conditional probabilities.
The lazy choice weights are and , in ratio three to one. Normalizing gives . Let denote selection of the first question and let . Its conditional expected value, divided by , isso . If the overall lazy fraction is , the law of total probability gives . Bayes' theorem then givesSolving yields . The observed mean is conditioned on the chosen question, so it cannot be equated directly to the unconditional mean over all students.
Condition on whether the first selection was a red apple. Its probability is . If it was, two red apples remain among seventeen fruits; otherwise three remain. The law of total probability givesThe same result follows from exchangeability: before either selection is observed, each ordered draw position has the original red-apple fraction , despite dependence between the draws.
The law of total probability givesFor , Bayes' theorem therefore yieldsAt the allowed endpoint , no bulb is defective: . This conditional probability is then undefined, rather than . The value is its limit as , but does not define conditioning on the impossible event within the stated discrete model.
Let denote the mutually exclusive supplier events and the defective-bulb event. Their probabilities and conditional defect rates areThese supplier events partition the possible bulbs. The following calculations use the law of total probability and Bayes' theorem with that partition.
Let mean control-group membership and the adverse event. Equal allocation gives , so the law of total probability gives . Bayes' theorem then givesThis is defined when . If both are zero, the conditioning event has zero probability and the stated conditional probability is undefined.
Uniform sampling without replacement is equivalent to revealing a uniformly random permutation of seven labelled balls. Each draw position is equally likely to contain any label, so its colour has the original proportions. ThusFor example the law of total probability gives . Equal marginal probabilities express exchangeability, rather than independence between successive draws.
Let denote singing, and denote male and female. Equal population counts give . The law of total probability therefore yields
The good and defective cases are disjoint and exhaustive. The law of total probability therefore gives
Condition on whether replacement occurs. Both alternatives have blue second-draw probability , so the law of total probability gives
Use the law of total probability to average the conditional interval probability over :The integrands are nonnegative, so Tonelli's theorem permits interchanging the integrals. ThusReading off the probability density gives the convolution of probability densities:
There are two equally likely balls bearing label eight, one of each colour. The conditional probability that the removed ball was green is therefore . By the law of total probability,Both possible first colours must be included because the observed label alone does not determine the colour.
For , the conditional transition probabilities are , the entries of ; for the assertion is the definition of . For the induction step, condition on the state at time and use the Markov property and time-homogeneity:The countable sum is justified by the law of total probability; all terms are nonnegative. Thus the formula follows for every by induction. It is the Chapman-Kolmogorov equation for repeated one-step transitions.
For , the event of ever reaching can be conditioned on the first step. Given , its remaining hitting probability is by the Markov property, including if . The law of total probability thus givesFor the definition uses time zero and gives , so the harmonic equation is needed only outside .
For , the transition probabilities are the entries of the identity . Suppose the formula holds for . Conditioning on and using the Markov property givesThe countable sums have nonnegative terms, so they are justified by the law of total probability. Induction proves