Here is an original reproducible finite set with 40 points and 512 coordinates. Let be the first four vectors of the standard basis of . With point indices , generateThe four groups have different centers, and the standard normal random variables perturb all 512 coordinates. Generate the coordinates in row order using NumPy's PCG64 pseudorandom number generator with seed 20261013. Then keep this finite set fixed. A second PCG64 stream with seed 424242 generates a matrix of independent random variables with the standard normal distribution; divide it by to obtain the Gaussian Johnson–Lindenstrauss transform.
For all 780 unordered pairs, compute the distance ratio . In this draw, its minimum is approximately and its maximum , giving a maximum relative error in Euclidean distance of about . The squared-distance ratios instead range from approximately to : their maximum relative error is about . Thus this particular draw fails a 20% distance tolerance. The Johnson–Lindenstrauss lemma does not assert that every draw into 32 dimensions must succeed.
The two bands of original Euclidean distances distinguish pairs within a group from pairs between groups. Their spread after the linear map shows why checking an average distance is insufficient: the Johnson–Lindenstrauss lemma controls every pair. The dashed 20% distance band is an illustrative tolerance, not a confidence interval or a squared-distance band. The affine hull of 40 points has dimension at most 39; 512 is the ambient coordinate count, and no full-dimensionality assumption is required. For this draw the bi-Lipschitz distortion is approximately .
Now keep the same points and draw 48 fresh Gaussian Johnson–Lindenstrauss transforms for each target dimension . NumPy's
SeedSequence(314159).spawn(240) supplies distinct PCG64 streams, ordered first by target dimension, then by draw. Each stream generates a new random matrix, normalized by ; no map is a row prefix of another map. Each plotted value isThe observed median maximum relative errors in Euclidean distance are approximately , , , , and , respectively. All pairs fall inside the 20% distance tolerance in , , , , and of the 48 draws, respectively. These are computations on one synthetic finite set, rather than optimal dimension bounds or measured physical data. The displayed quantiles describe the sampled maps; they do not certify a success probability for other sets. Even at 128 dimensions, 13 of the sampled maps fail this tolerance.
The practical benefit is that each point acquires fewer coordinates while its pairwise Euclidean distances can remain useful. The choice of target dimension balances compression, accuracy, and failure probability. For example, a conservative sufficient squared-distance tolerance with and gives by the explicit bound above. Here that exceeds the ambient dimension, so the identity map is better for a certified guarantee. The much smaller dimensions in the plots illustrate observed behavior without claiming that this sufficient bound is sharp.
Fisherian conditional inference 2026-10-14
In a parametric statistical model, the likelihood function compares parameter values, while sampling distributions calibrate tests and confidence intervals. A sufficient statistic retains the parameter information. Conditioning on an observed ancillary statistic restricts that calibration to experiments with the same ancillary configuration, instead of averaging over configurations whose distribution is unrelated to the parameter. Since the ancillary's marginal law is parameter-free, conditional and unconditional likelihoods have the same parameter-dependent factor. With a nuisance parameter, a conditional law or pivotal quantity must remove it before inference for the parameter of interest can use a nuisance-free reference law.
Forest plot 2026-10-07
A forest plot shows each study's effect estimate and confidence interval, together with a pooled estimate when appropriate. A vertical null-effect line allows comparison on a common scale. For an odds ratio the null is one and a logarithmic axis treats reciprocal ratios symmetrically; marker areas commonly encode study weights.
Gaussian regression toward the mean 2026-10-14
Take the original synthetic model and , mutually independent random variables, with the second argument denoting variance. The pair has a multivariate normal distribution with mean zero, unit marginal variances, and Pearson correlation coefficient . Its conditional multivariate normal distribution isFor a first reading , the second reading has conditional expectation and conditional variance , hence standard deviation . There is still conditional probability of , a movement farther from zero, where is the standard normal distribution function. The line describes a conditional mean, not an individual trajectory.
A short derivation isolates . Its covariance with is zero and its variance is . Because has a multivariate normal distribution, zero covariance implies independence: independently of . This also explains why reversing the two measurements gives . The statistical association does not identify a direction of causal effect.
Greenwood formula 2026-10-14
For the Kaplan–Meier estimator, the estimated variance isThe formula follows by summing approximate variances of the logarithms of the conditional survival factors and applying the delta method to their product. Its square root is the estimated standard error. The same expression uses the actual delayed-entry risk sets for the Kaplan–Meier estimator with delayed entry. When and every contributing , an approximate log-scale confidence interval is , with the upper endpoint capped at one. This interval can be inaccurate with very small risk sets.
Grouped Bernoulli failure counts 2026-10-14
With groups of trials and common marginal failure probability , each count has expectation , so the displayed estimate is unbiased without assuming independence within groups. Independent individual trials give variance . If only groups are independent, estimate the variance instead by , retaining within-group dependence. Equal marginal probabilities alone do not justify a binomial confidence interval.
Hoeffding confidence interval 2026-10-14
For a fixed positive sample size of independent and identically distributed Bernoulli random variables, letThe Hoeffding inequality makes a conservative confidence interval for : for every . Indeed, exclusion from the closed interval implies , an event contained in the deviation event bounded by . Clipping to retains coverage because already lies there. For , , and an observed frequency , , giving approximately .
Coverage concerns repeated independent samples: the unknown is fixed and the confidence interval is random. This fixed- guarantee does not justify repeatedly checking the same bound and stopping as soon as it looks favorable. The Hoeffding sample size for Bernoulli frequencies chooses in advance; guarantees across repeated inspection times require separate control of the additional events, for example through a union bound with an allocated failure probability at each time.
Incremental net monetary benefit 2026-10-14
At a specified willingness-to-pay threshold , the incremental net monetary benefit is the value of the effect increment minus the cost increment. It avoids dividing by a potentially near-zero or negative effect estimate. For estimates with variances and covariance , its estimated variance is . A normal approximation therefore gives a confidence interval directly on the net-benefit scale. The economic sign criterion does not require a positive effect increment.
Kaplan–Meier median survival time 2026-10-14
The median survival estimate is the first event time at which the Kaplan–Meier estimator reaches or falls below one half. It is not identified beyond the observed follow-up if the curve never reaches that level. A few reported survival probabilities bound the crossing time but do not determine an exact median. Confidence intervals can be constructed by inverting confidence bands for the survivor function.
For two independent binomial distributions with event and nonevent counts and , the odds ratio is . The delta method applied to , whose derivative is , gives a group variance . Substitution of the fitted proportion gives in the first group and in the second. Their independence gives the displayed sum. A normal approximation then gives a confidence interval on the log odds ratio scale; exponentiation produces an odds-ratio interval. Zero cells require another approximation or model.
For the same normal distribution model, a two-sided test compares the null hypothesis with the alternative hypothesis . Under the null hypothesis, the standardized test statistic has standard normal distribution. Write for the standard normal distribution function. With , , and , the observed test statistic is . Its p-value isThus the p-value is a tail probability computed under the null hypothesis, including departures in both directions. It is not , the posterior probability of the null hypothesis, nor the probability that the observations arose "by chance". The normal distribution test statistic and its calibration appear in NIST's teaching reference for testing a process mean; the tail interpretation is stated in Penn State's hypothesis-testing notes.
Choose the significance level before observing the sample. The rejection region is , whose probability under is exactly 0.05. Here , so reject . This agrees with zero lying outside . More generally, a proposed belongs to the unrounded 95% confidence interval precisely when its two-sided test does not reject under this strict cutoff. The equality boundary has probability zero in this continuous statistical model.
The significance level and statistical power describe different repeated-experiment probabilities. At a specified alternative , put and . ThenThe first is the Type I error probability; the second is the Type II error probability at that alternative. For a planning alternative , keeping , and gives , and statistical power . At , and statistical power rises to . These are model calculations for specified alternatives, not posterior probabilities inferred from a nonsignificant result. They explain why failure to reject cannot establish equality and why choosing sample size before an experiment is useful.
Historically, Ronald Fisher's 1925 book discusses the normal cutoff and tail probability 0.05 as a convenient convention on page 47, rather than a mathematically compulsory threshold: [ref]
https://books.google.com/books/about/Statistical_Methods_for_Research_Workers.html?id=I0NBAAAAIAAJ. Fisher, Statistical Methods for Research Workers, first edition
.Suppose are independent and identically distributed with normal distribution , where the mean is unknown and the standard deviation is known. The sample mean has normal distribution and standard error . With the standard normal quantile at , the displayed confidence interval has exact coverage probability for every and every positive integer . No central limit theorem approximation is needed.
Take , and nominal confidence 95%. The standard error is , and . ThereforeRounded for reporting, this is . If , the realized confidence interval is approximately . Exact 95% calibration refers to the unrounded standard normal quantile; using literally gives coverage probability , almost but not exactly 0.95.
The confidence interval's width scales as : increasing sample size from 16 to 64 halves its half-width to . If is unknown, merely substituting the square root of a sample variance loses the displayed exact calibration; for the same normal distribution model, use a Student t confidence interval.
The figure holds the true mean at and independently generates 40 samples of 16 observations from the same normal distribution. NumPy's PCG64 generator with seed 42 gives 39 covering confidence intervals and one miss, at sample 32: observed coverage is . Every bar uses the unrounded standard normal quantile. This finite collection illustrates the moving endpoints; it does not establish the analytic coverage probability or require exactly two misses.
The beauty of the construction is that a familiar standard normal distribution calibrates every possible unknown mean at once. For a short proof, the pivotal quantityhas a probability distribution independent of . The event has probability ; rearranging it gives . The right panel shows the equivalent event when .
Ordinary kriging Created 2026-10-05 Updated 2026-10-18
Ordinary kriging assumes for an unknown constant . A predictor has zero bias for every precisely when , where is the all-ones vector. Ordinary kriging minimizes the error variance subject to this constraint, giving the best linear unbiased predictor. Its explicit system isThe sign of the last term follows from the displayed convention . To derive the system, differentiate . To prove the minimum, let solve it and let be another feasible choice. Then , soA positive-definite matrix makes equality possible only for . This argument uses second moments, not a normal distribution assumption. Ordinary kriging is the special case of universal kriging with and .
For an original one-dimensional teaching example, observe at , and predict at . Choose unit marginal variance, exact observations without measurement noise, an unknown constant mean, and the exponential covariance functionThe exponential covariance function corresponds to a stationary Ornstein-Uhlenbeck process, so it gives a valid covariance model. Its semivariogram is . The resulting matrix and vector areSolving the displayed system givesThese values can be checked directly: the weights sum to one and . Substitution into gives . Nearest-neighbor interpolation must choose between the two equally close samples at one and three, returning either three or two; their error variances under this model are both . Thus the benefit is quantified under the chosen model, without knowing the unobserved target value.
Ordinary kriging combines three samples and reports uncertainty under a fixed exponential covariance model
. Details. The upper panel applies the same ordinary kriging calculation at each target location. The lower panel shows the square root of its error variance, in the units of the observations. It is zero at the exact observation locations and rises between and beyond them. No confidence interval is inferred from a variance alone; a probability distribution assumption is needed to attach a coverage level.
The weights are not required to be positive. Keep the same observations and target, but replace the covariogram by the smoother Gaussian kernel . ThenThe negative coefficient compensates for dependence between samples; the constraint eliminating bias still holds. Kriging is not generally a convex combination, and its prediction need not stay between the observed values. A smaller model-based error variance does not establish that one covariance function is better supported by these three observations.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 4 a Solution Created 2026-10-03 Updated 2026-10-14
The survival estimates favor the new treatment at the two reported times, with absolute survival differences at two years and at five years. These point differences alone do not establish efficacy. Randomization supports a causal comparison of the treatment assignments, but sampling variance, censoring, follow-up, protocol adherence and the prespecified endpoint still matter. One should not infer a statistically established benefit merely from two larger estimates.
A Kaplan–Meier estimator iswhere is the risk set and the event count. Its uncertainty depends on the actual risk sets, not just the initial group size. The Greenwood formula estimatesWithout the missing survival tables one cannot calculate these standard errors or the uncertainty of the group difference. In particular, replacing the estimator variance by the variance of an uncensored binomial proportion would generally be wrong.
I would advise presenting both curves with numbers at risk and confidence intervals, checking independent censoring, and reporting a prespecified overall comparison plus an effect estimate and interval. For an unadjusted log-rank test, write and . Its hypergeometric null variance isTerms with no possible variation contribute zero. This compares the entire event history rather than selecting two arbitrary times, uses the available risk sets, and avoids choosing favorable time points after examining the curves. It is especially effective under proportional hazards. Crossing curves can make a log-rank comparison insensitive; a prespecified restricted mean survival time difference or another suitable time-varying analysis may then be more informative. An overall comparison does not make a clinically important prespecified time-point contrast invalid.
The Kaplan–Meier median survival time is the first event time at which . Monotonicity of the reported estimates impliesIf the new-treatment curve never reaches one half during observed follow-up, its median is not estimable from that curve. The exact crossing times cannot be reconstructed from two survival probabilities: the standard curve could first cross at three or at four years and still have the same values at two and five years. The point estimates suggest benefit, but the evidence and exact medians require the missing event/censoring tables. Neither a conclusive agreement nor a conclusive rejection of benefit is justified from these numbers alone.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 28 4 b Solution Created 2026-10-03 Updated 2026-10-14
These are separate data, so results from the randomized trial must not be carried over. First inspect the construction of the survival response: a command creating a survival time object must pair follow-up in months with an event indicator, whose death/censoring coding should be checked explicitly. A censoring time is not an observed death time. Stratified product-limit fits would then summarize Kaplan–Meier estimators for the dose groups before adjusted regression.
If the fitted command is a Cox proportional-hazards model with dose, sex and age, its specification isThere is no separate intercept estimate because an intercept is absorbed into the unspecified baseline hazard . With the stated coding, compares high-dose with low-dose death hazards at equal sex and age; compares female with male hazards at equal dose and age; is the hazard multiplier for a one-year age increase. A negative treatment coefficient would correspond to a lower fitted hazard under high dose. A hazard ratio is not a ratio of survival probabilities, nor directly a ratio of survival times. Under this model the survivor function is .
The coefficient standard errors, Wald ratios and exponentiated confidence intervals should be read together. The common large-sample interval for a coefficient's hazard ratio isGlobal likelihood-ratio, score and Wald tests assess the included slopes jointly; for exactly these three one-coefficient terms their reference degrees of freedom are three. They need not coincide in a small sample. The Cox partial likelihood uses the event risk sets; the fitted log-likelihood is not a full likelihood for an estimated baseline survival curve. The method for tied event times should be recorded.
Check the proportional hazards assumption using scaled Schoenfeld residuals and time trends; check the functional form of age, influential subjects and independent censoring. Dose-by-age or dose-by-sex interaction terms are scientifically possible but require enough information and a stated model comparison. Adjustment can alter a crude dose association, and the allocation mechanism here is not specified as randomized. No coefficients, confidence limits, significance results, exact fitted calls or diagnostics for this dataset are recoverable without the output sheet. The displayed model is an interpretation template, not a claim that it was the exact missing command.
Past exam of the mathematics course of the University of Cambridge 2001 iii Paper 29 4 ii Solution Created 2026-10-03 Updated 2026-10-14
The posterior mean is a weighted average of the sample proportion and prior mean:Thus it is pulled from 10% toward the prior's 5%, giving about 7.17%. This is an affine shrinkage estimator for a binomial proportion. The prior carries substantial concentration relative to the 90 observations, so the posterior is also more precise under this model: its standard deviation is about , compared with the binomial plug-in standard error . The posterior 95% credible interval is narrower and shifted down compared with the simple Wald interval based on alone.
The point estimate shrinks toward the historical mean, and the interval is narrower under the informative prior. A credible interval and a frequentist confidence interval have different probability interpretations; the comparison does not make the prior's relevance automatic.






