Past exam of the mathematics course of the University of Cambridge 2024 iii Paper 207 2 b Solution Created 2026-09-24 Updated 2026-10-03
For equal arm size , write at the clinically relevant alternative. A one-sided level- Wald test rejects when , and its approximate statistical power isEquating this to gives the per-arm sample sizerounded up. If the design uses a null-based critical standard error but an alternative standard error , the corresponding more general formula is
At sample size 100, keep essentially the same numerical confidence interval, but treat its calibration as approximate. For independent heights with finite, nonzero variance, the central limit theorem makes the sample mean approximately normally distributed, and the sample variance consistently estimates the population variance. Hence the studentized sample mean is approximately standard normal even without a normal distribution for individual heights.
Using the permitted cutoff 2 givesA Student t-distribution cutoff gives a similar approximation for large sample size, but its justification at fixed sample size is no longer exact. Extreme skewness or influential outliers could make 100 observations insufficient for accurate coverage probability; abandoning normality alone supplies no specific numerical correction. The sampling with replacement assumption still precludes a finite population correction.
The independent uniform choices from the student list describe sampling with replacement. Under the stated independent normal distribution model for the heights, the population variance is unknown and the given cm is the sample standard deviation . The exact pivotal quantity isThus the exact 95% Student t confidence interval isusing . The supplied approximation instead gives a normal approximation for large sample sizeThis latter confidence interval is approximate even under normality because it substitutes the sample standard deviation for the unknown population value. There is no finite population correction under the specified independent selections. Interpreting the finite student list literally as a discrete population makes normality an idealized model; it does not justify changing the stated sampling design.
The joint maximum-likelihood estimators are functions of the observations selecting a maximizing parameter pair:The estimates after observation maximize the same likelihood function with . Maximization may be nonunique, as for an even sample size, or may fail to yield a finite admissible pair, as in the one-observation case below. The definition does not turn a boundary supremum into an attained maximum.
Here , and . The desired approximate power is at least exactly when the argument of the upper tail in part (i) is at most :Rearranging and squaring the positive quantities yieldsThis is a normal approximation to a sample size calculation. It is not a guarantee of the exact finite-sample power for an arbitrary unrandomized binomial cutoff; the discrete test size and power can instead be checked using binomial probabilities.
Right-hemisphere activity after left-hemisphere damage can be compensatory, inefficiently helpful, maladaptive or incidental. Its role depends on the region, task, residual left network and recovery stage; a group activation map cannot decide among those possibilities. Functional compensation means that the recruitment supports performance in the damaged system. It need not restore normal performance or reproduce the computation formerly performed on the left.
Longitudinal evidence immediately challenges a uniform interpretation. Dorothee Saur and colleagues repeatedly imaged auditory comprehension in 14 patients after left middle-cerebral-artery stroke. Initially weak activation was followed by increased bilateral activity with a prominent right inferior-frontal homologue response, and later by a shift towards left language areas alongside further recovery. The trajectory makes time after stroke central to interpretation. Correlation between activation and improvement is compatible with a contribution to recovery, but can also reflect restored capacity to engage with the task.[ref]
Dynamics of language reorganization after stroke by Dorothee Saur and others. Brain 129, 1371–1384; 14 patients, auditory comprehension and fMRI at three recovery stages
A decrease in left dominance is particularly ambiguous. The laterality index can fall because left activity falls, without right activity increasing. Acute ischemia, diaschisis and altered neurovascular coupling also change the fMRI signal. Matching the task instruction is insufficient if one patient comprehends the sentences and another only attempts them. Accuracy, response time and an independent physiological assessment should therefore accompany the activation contrast.
A maladaptive account proposes that increased activity in a right homologue interferes with useful remaining left function or promotes an inefficient strategy. Interhemispheric inhibition is one candidate mechanism, but cannot be assumed from the fact that the two cerebral hemispheres change differently. Greater right activation among more severely impaired patients could mean that right activity causes impairment; equally, larger left lesions may both worsen performance and make right support more necessary. Statistical adjustment must account for lesion location and disconnection, not simply lesion volume.
Perturbation supplies a more direct test. Lutz Winhuisen and colleagues used PET to select inferior-frontal targets and then disrupted their activity during a semantic task in 11 patients examined within two weeks of stroke. Right-sided stimulation impaired performance in a subset of patients with right IFG activation. This supports a necessary contribution to residual performance in those individuals, even though their language remained less effective than in patients relying more on recovered left function. The result is not evidence that every activated right region is beneficial.[ref]
Role of the contralateral inferior frontal gyrus in recovery of language function in poststroke aphasia by Lutz Winhuisen and others. Stroke 36, 1759–1763; 11 patients within two weeks, PET-guided left/right IFG perturbation
Evidence sometimes presented for maladaptation also needs qualification. Margaret A. Naeser's open study applied repeated right inferior-frontal stimulation to four people with chronic aphasia and reported later picture-naming improvement. Suppression-associated improvement is compatible with a counterproductive component of right activity. Without a randomised sham comparator, however, practice, expectancy and nonspecific intervention effects remain possible; the result is preliminary, not a general treatment rule. An anterior target in chronic aphasia also need not have the same function as a different inferior-frontal site early after stroke.[ref]
A proposed mechanistic study would recruit a sufficiently characterised stroke cohort across prespecified stages, quantify left cortical and tract damage, and measure baseline naming, comprehension and connected speech. Use individual structural imaging and independent functional localisation to identify a right language-related target and a control target. Because an activated voxel can contain mixed functions, site selection should use a relevant contrast, not just the maximum response to any difficult task.
Within each participant, counterbalance a transient perturbation condition with credible sham and an active control, use masked assessment, parallel stimulus sets and a prespecified primary language outcome. Include nonlinguistic reaction and motor tasks to detect general distraction or response slowing. Session spacing should address carryover, and the analysis should model repeated measurements and interactions with stage and residual left-network integrity. Safety screening and consent are integral to a clinical stimulation study; a sample size should be justified from variability and the smallest informative effect, not invented from the exam prompt.
If perturbing the right target worsens language selectively relative to both controls, that supports a currently compensatory role. If it improves language selectively and reproducibly, that supports a maladaptive contribution under those conditions. No behavioural change is inconclusive unless the perturbation was effective and the outcome sensitive. The intervention could spread through the network, so neither sign of effect automatically identifies a local code or proves inhibition of the left hemisphere.
Finally, a treatment trial asks a different question from transient necessity. Randomise a longer intervention against sham with matched speech-language therapy, assess untreated items and everyday communication, and follow durability. Repeated imaging can test whether behavioural improvement accompanies a predicted network change, while avoiding circular selection of patients or outcomes on the same data. The evidence favours conditional, stage- and site-specific right-hemisphere contributions; perturbation with appropriate controls, followed by a separate clinical trial, can distinguish useful functional compensation from harmful recruitment more convincingly than activation alone.
Prior probability Created 2026-09-24 Updated 2026-10-14
Prior probability describes uncertainty before the current observations are incorporated. For a statistical parameter , a prior distribution assigns probabilities to its possible ranges, conditional on background information and a statistical model. A continuous prior density specifies these probabilities through integration:Here the probability density function is relative to Lebesgue measure ; a discrete prior distribution instead uses a probability mass function and sums. Density at one point is not the probability of that point. A nonnegative kernel with infinite total mass is an improper prior, whose use requires a separate check of posterior propriety.
For the coin model in Bayesian statistics, the beta distribution has prior density on . Its mean is and its variance is . It favors moderate heads probabilities without ruling out values near zero or one. For example,The prior curve in Bayesian posterior makes this preference visible; moment matching for a beta prior explains how to choose a beta distribution from a desired mean and variance.
A prior distribution lets earlier evidence or elicited knowledge contribute to statistical inference when the current sample size is limited. It also exposes assumptions that can be checked by prior elicitation and a prior predictive check. Before the same eight heads and two tails, a uniform prior would give posterior mean , compared with under : the observations do not uniquely determine a Bayesian posterior. Even a uniform prior makes a choice of parameter coordinates; its child article explains why changing coordinates can destroy uniformity.
Pseudoreplication Created 2026-10-03 Updated 2026-10-18
Pseudoreplication treats dependent measurements from the same experimental unit as if they were independent treatment replicates. It exaggerates the effective sample size and commonly makes standard errors too small. In the pot example of replication in experimental design, counting twelve leaves per group as twelve independent treatment replicates ignores the four containing pots. The variance of nested measurements quantifies the resulting understatement of uncertainty. Nested measurements themselves are useful; pseudoreplication is the error of using them as independent replicates for the wrong level of inference.[ref]
Pseudoreplication and the Design of Ecological Field Experiments by Stuart H. Hurlbert. Pseudoreplication and the Design of Ecological Field Experiments, p. 190, definition, and p. 201, “Multiple samples per experimental unit”
Sample proportion Created 2026-10-07 Updated 2026-11-05
For independent Bernoulli observations with success probability , the sample proportion is the success count divided by the sample size. It is an unbiased estimator with variance . It supplies the arm-specific risks in a risk ratio and the mean difference in a two-proportion comparison.
Sample size Created 2026-09-24 Updated 2026-11-05
The Sample size is the number of observational units included in a study or assigned to a specified study arm.
Sample size for comparing two proportions Created 2026-10-07 Updated 2026-11-05
For equal independent binomial samples, the displayed normal-approximation size per group targets a two-sided significance level and power at specified alternative rates, with . Its first variance term sets the null critical value and its second the alternative distribution. A numerical sample size is not determined by an effect ratio alone; power, sidedness, allocation and baseline rates must also be specified. Rare-event discreteness and clustered designs can materially change the achieved power.
Sampling design 2026-11-05
A sampling design specifies a probability distribution over the possible samples from a defined population:For sampling distinct labelled units, is a subset of the population. The design includes the selection mechanism, not merely the final sample size. A procedure with repeated draws can instead require a distribution over ordered sequences; the resulting inclusion probabilities concern whether a label appears at least once.
The design determines inclusion probabilities and joint inclusion probabilities throughThese connect the physical sampling procedure to the Horvitz-Thompson estimator and its sampling variance.[ref]
A Generalization of Sampling Without Replacement From a Finite Universe by D. G. Horvitz and D. J. Thompson. 1952, general unequal-probability sampling without replacement
An original comparison uses four fixed values and selects two units. Under simple random sampling, every one of the six pairs has probability . Each , so the Horvitz-Thompson estimator is twice the selected sum. It takes values with probabilities . Its expected value is the true finite population total , and its variance isA second design chooses only or , each with probability . It has the same sample size and the same individual inclusion probabilities, but the estimator is now or , giving variance . Pair selection matters even when individual representation agrees.
A third design chooses uniformly among the four pairs containing one label from each of those two groups. Its total estimate is always for this particular population. This illustrates the potential gain from stratified sampling when groups correspond to relevant variation, not a claim that the third design dominates for every possible population. A reproducible design records the eligible labels and actual random selection rule before interpreting the observed sample.
Sampling fraction 2026-10-14
The sampling fraction is the sample size divided by the finite population size. In simple random sampling, it determines how much the finite population correction reduces the variance relative to .
Simple random sampling Created 2026-10-07 Updated 2026-10-14
Here simple random sampling means a random unordered subset of exactly distinct labels from , with every size- subset equally likely. The sample size is fixed in advance, , and sampling without replacement prevents duplicate units. This is SRSWOR; some texts also use "simple random sampling" for independent uniform draws with replacement, which is a different design.[ref]
Chapter 2: Simple Random Sampling. Sampling Theory, Chapter 2, Simple Random Sampling, PDF pp. 1–4: replacement conventions and ordered versus unordered sample probabilities
Every label has inclusion probability , but equal inclusion probabilities alone are insufficient. For example, from six labels choose either or with probability . Each label is included with probability , yet eighteen of the twenty size-three subsets are impossible: this is a two-group cluster sampling design. Unequal probability sampling deliberately changes inclusion probabilities, often to improve precision for a particular estimand, and generally requires an appropriately weighted estimator rather than the plain sample mean.
Consider the original mathematical population with labelled values , and let . The fifteen equiprobable subsets, followed by their sample means, areTheir sample means sum to , giving expected value . Their squared deviations from sum to , giving variance . This is an enumeration over hypothetical selections from six stipulated numbers, not measured survey data.
All fifteen size-two subsets and all thirty-six ordered replacement outcomes from six labelled values
. Details. With independent uniform sampling with replacement, the ordered outcomes each have probability . The two orders and are distinct outcomes, and is now possible. Forgetting order does not make the resulting unordered multisets equiprobable: has probability but has probability . The thirty-six sample means still have expected value , but their squared deviations sum to , giving variance . Avoiding duplicate labels improves precision for this fixed population.
Stan Development Team Created 2026-10-14 Updated 2026-11-05
The Stan Development Team is the collective author credited for Stan's statistical modeling manuals. The Stan Reference Manual by Stan Development Team documents the language and inference methods; the Stan User's Guide by Stan Development Team develops model construction and applied examples.
Its treatment of posterior analysis explains diagnostics such as effective sample size and split R-hat for Markov chain Monte Carlo. These assess features of finite sampled output and do not turn a finite run into a proof of exact convergence.[ref]
Stan Reference Manual by Stan Development Team. Posterior Analysis, effective sample size and potential scale reduction
Statistical inference Created 2026-09-24 Updated 2026-10-13
Statistical inference uses observed data and a statistical model to learn about unknown features of the process that generated them. In a parametric statistical model, write : the probability distribution depends on an unknown statistical parameter . An estimand specifies the target, such as a mean or a difference of means. A statistic is a function of the observations; an estimator is a statistic used to estimate the target. Uppercase denotes the random data before observation, while lowercase denotes their realized values.
Three questions lead to different outputs. Statistical estimation asks which target value the observations suggest. A confidence interval asks for a range produced by a procedure with calibrated coverage probability. A hypothesis test asks whether the observations depart sufficiently from a specified null hypothesis to enter its rejection region. These outputs complement one another: an estimated effect size describes magnitude, while a standard error describes the sampling distribution of an estimator. A p-value describes a tail probability under the null hypothesis.
The appeal of statistical inference is that it turns variable observations into reproducible uncertainty statements. In the normal mean confidence interval with known variance below, a sample mean of has standard error : both the estimated shift and its precision matter. The calibration depends on the statistical model, including independence and the specified probability distribution. Increasing sample size improves precision under those assumptions; it does not repair a systematically misleading sampling procedure. Bayesian inference provides another framework, using a prior distribution and a likelihood function to obtain a posterior distribution.
Stuart's tau-c 2026-10-25
For an contingency table of two ordinal categorical variables, write , for the sample size and for concordant pairs and discordant pairs. The coefficient isIt provides an ordinal association measure whose normalization accounts for the table dimensions. It generally differs from Kendall's tau-b and Goodman and Kruskal's gamma on a table with tied pairs. An association sign presupposes the chosen category ordering and is not a causal direction. The eponym is associated with Alan Stuart.[ref]
Ordinal association measures in the DescTools documentation. StuartTauC, Details: formula, minimum table dimension and ordinal-data requirement
Studentized normal sample mean 2026-10-18
Suppose , , are independent and identically distributed with normal distribution , where the mean and standard deviation are unknown. Define the sample mean and sample variance byUnder these assumptions,Substitution gives the exact ratioThe unknown cancels. The denominator estimates the standard error of the sample mean; its sampling variability is precisely why the Student's t-distribution has wider tails than the standard normal distribution.
The crucial independence has a geometric explanation. Apply an orthogonal transformation to the standardized observations , choosing its first coordinate along . That coordinate is ; the remaining coordinates are independent standard normal random variables whose squared sum is . Their joint probability density factorizes because the transformation preserves the squared length. This also explains the loss of one statistical degree of freedom when estimating the mean. Uncorrelatedness alone would not establish the required independence for arbitrary data.
The result is exact for every under the stated normal distribution model. A small sample size by itself does not justify it: a sample from an arbitrary probability distribution need not have the displayed chi-squared distribution or the necessary independence.
Time-origin alignment of clinical endpoints Created 2026-10-14 Updated 2026-11-05
A clinical trial comparison must define a common time origin and observation window for both assigned treatments. A probability measured from allocation cannot be replaced by one measured from a later treatment-dependent release or discharge. The latter may describe a different time interval and a selected population. A numerical sample size cannot be obtained by silently treating those probabilities as interchangeable.
Two-sample Kolmogorov-Smirnov test 2026-10-14
The two-sample Kolmogorov-Smirnov test compares two empirical distribution functions from independent samples, each internally independent and identically distributed, under the null hypothesis that their underlying probability distributions coincide. Both curves are estimated from data, so calibration depends on both sample sizes; the usual asymptotic scaling is . Tied data can be handled by an appropriate permutation test under the required exchangeability, rather than by assuming the untied continuous-null law.[ref]
