Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the statistics course of the University of Oxford 2015 2 b ii Solution by
Codex 0 2026-10-31
For four categories the number of statistical degrees of freedom is . The supplied 5% critical value is therefore , and . HenceThe approximate p-value is . This conclusion assumes the large-sample multinomial approximation is adequate, in particular sufficiently large expected category counts. It means there is insufficient evidence against the uniform null hypothesis, rather than establishing that the probabilities are equal.
Past exam of the statistics course of the University of Oxford 2015 2 b i Solution by
Codex 0 2026-10-31
The count vector has a multinomial distribution, with likelihood functionMaximize its log-likelihood using a Lagrange multiplier for the sum constraint. The equations and give and . Since all counts are positive and the log-likelihood is strictly concave on the interior of the probability simplex, this is the global maximum-likelihood estimate.
Under the uniform null hypothesis, each category has expected countThe common multinomial coefficient cancels from the likelihood ratio:Taking minus twice its logarithm gives exactlyThere are free category probabilities, because their sum is one, and the null fixes all of them. Thus its regular asymptotic chi-squared distribution has statistical degrees of freedom.
Past exam of the statistics course of the University of Oxford 2015 1 b ii Solution by
Codex 0 2026-10-31
First establish the limiting law needed by the delta method. For fixed , put and let count how many of the are at most . Then has a binomial distribution with expectation and variance . The event is exactly . Its standardized threshold tends to , so the central limit theorem for these binomial counts givesHere is the cumulative distribution function of the standard normal distribution. Equivalently,Use the usual local regularity for the delta method: is continuous at the population median and . The inverse function theorem, applied at , givesThereforeThe asymptotic normality gives the requested leading variance approximationHere the variance parameter for the rescaled limiting law is , while the source states the corresponding approximation for the unscaled estimator. Strict increase of alone does not force ; that local condition is needed for this form of the asymptotic distribution of a sample median.
Past exam of the statistics course of the University of Oxford 2015 1 b i Solution by
Codex 0 2026-10-31
Continuity and strict increase make the quantile function well-defined on . The endpoints of the uniform distribution occur with probability zero and do not affect the construction. For every real ,Thus each has cumulative distribution function . Applying a fixed measurable function separately to independent random variables preserves their independence; explicitly, joint lower-tail probabilities factor asConsequentlyThis is inverse transform sampling. Since preserves order, it also sends the central order statistic to the central order statistic, justifying .
Past exam of the statistics course of the University of Oxford 2015 1 a ii Solution by
Codex 0 2026-10-31
For odd sample size, the sample median is the central order statistic, . Since , its index is and . Substitute these into the expectation and variance formulas from part (i):In fact has the symmetric beta distribution , explaining why its expectation is exactly the centre of the interval.
Past exam of the statistics course of the University of Oxford 2015 1 a i Solution by
Codex 0 2026-10-31
The given probability density function is that of a beta distribution with parameters and . We can derive the required moments directly rather than assuming the beta moment formulas. For an integer , the Euler beta function givesHere for positive integers ; this identity also follows by repeated integration by parts. Taking yieldsSubtract the square of the first moment from the second to obtain the variance:These are exact finite-sample identities for each uniform order statistic.
Past exam of the statistics course of the University of Oxford 2014 3 b iv Solution by
Codex 0 2026-10-31
No. A permitted counterexample is with all observed counts zero. Then and the posterior distribution is an exponential distribution with rate , whose density decreases strictly from the left boundary. Its equal-tailed credible interval isHere . This excludes values just above zero whose posterior density is larger than that of retained values near , violating the highest-density criterion. The actual highest posterior density interval starts at the support boundary and solves :Writing zero as the endpoint causes no problem because a single point has zero posterior probability. Thus even within the gamma family the two intervals need not agree. More generally, for an interior unimodal gamma distribution, highest-density endpoints have equal densities, whereas equal-tailed endpoints need not.
Past exam of the statistics course of the University of Oxford 2014 3 b iii Solution by
Codex 0 2026-10-31
Let be the cumulative distribution function of a gamma distribution with shape and rate ; explicitly,The posterior distribution is continuous and has positive density on , so its quantiles give the requested equal-tailed credible interval:Equivalently, , so the endpoints can be written as the corresponding chi-squared distribution quantiles divided by . Either form excludes posterior probability from each tail.
Past exam of the statistics course of the University of Oxford 2014 3 b ii Solution by
Codex 0 2026-10-31
The mean of a shape-rate gamma distribution is shape divided by rate. Hence the posterior mean isBoth weights are positive and sum to one. This is a convex combination of the prior mean and the sample mean, provingFor it lies strictly between them if the two means differ, and equals both if they agree. The rate acts as the prior weight relative to the observed exposure units.
Past exam of the statistics course of the University of Oxford 2014 3 b i Solution by
Codex 0 2026-10-31
Let , and . Conditional independence gives the Poisson distribution's likelihoodMultiply by the prior gamma distribution's density and discard factors independent of :Normalizing with the gamma function identifiesHere is the shape and is the rate, not the scale. This is conjugate prior updating for a Poisson distribution.
Past exam of the statistics course of the University of Oxford 2014 3 a ii Solution by
Codex 0 2026-10-31
An equal-tailed credible interval allocates equal posterior probability to its two excluded tails:For a continuous strictly increasing posterior cumulative distribution function , the endpoints are and .
A highest posterior density interval instead includes the parameter values of greatest posterior density: there is a cutoff such that the retained region is a superlevel set of , of posterior mass . Every interior retained value has density at least as large as every excluded value, apart from possible ties. For a unimodal continuous density this is an interval; when both endpoints lie inside the support they have equal posterior density. For a multimodal posterior distribution, a highest-density region may be a union of intervals, rather than one interval. Equal tail probabilities and highest density are different criteria.
Past exam of the statistics course of the University of Oxford 2014 3 a i Solution by
Codex 0 2026-10-31
Given observed data , a credible interval has posterior probability :For a continuous posterior distribution with probability density function , this is . The probability is conditional on the observed data and concerns the statistical parameter under its posterior distribution; it does not assert frequentist coverage probability.
Past exam of the statistics course of the University of Oxford 2014 2 b ii Solution by
Codex 0 2026-10-31
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.
Past exam of the statistics course of the University of Oxford 2014 2 b i Solution by
Codex 0 2026-10-31
The sample mean has mean and variance . The central limit theorem gives a normal approximation for interior when both expected binomial counts are sufficiently large. Under the null hypothesis, a level- upper-tail cutoff is approximatelyTo obtain the power function, evaluate this same cutoff under the true statistical parameter , standardizing with :Here is the standard normal distribution's cumulative distribution function. The formula treats the binomial threshold as continuous; exact integer cutoffs and boundary randomization are finite-sample refinements.
Past exam of the statistics course of the University of Oxford 2014 2 a iii Solution by
Codex 0 2026-10-31
Put . For interior parameters , the alternative-to-null likelihood ratio isThe second base is greater than one, so this is strictly increasing in . The Neyman-Pearson lemma therefore gives an upper-tail rejection rule. Under the null hypothesis, , and an ordinary conservative threshold can be chosen asThere is an important discrete qualification: an integer cutoff need not have test size exactly . To obtain exact size, choose an integer with , reject certainly when , and at reject with probabilityThis randomized statistical test is a most powerful test at exact size ; when a binomial upper tail equals , no randomization is needed and the stated region is literal. Otherwise the unrandomized upper-tail region has size at most , and the exact-size result includes the boundary randomization. Endpoint parameter cases retain the same upper-tail ordering by taking limits, with ties resolved on the null-supported outcomes.
Past exam of the statistics course of the University of Oxford 2014 2 a ii Solution by
Codex 0 2026-10-31
For a random sample, write , , for its joint probability density functions. Let be any competing statistical test of level at most . Pointwise,Indeed, where , ; where , , so both factors have the same sign. On the equality set the product is zero, regardless of randomization. Integrate over the joint sample space using its ordinary volume measure:Since and ,This proves maximal power. A continuous sample distribution does not itself guarantee that the equality set of the likelihood ratio has zero probability; allowing randomization there makes the proof valid in that case too.
Past exam of the statistics course of the University of Oxford 2014 2 a i Solution by
Codex 0 2026-10-31
For two simple statistical hypotheses with joint probability density functions and , fix a significance level . A randomized statistical test is the conditional probability of rejection given the data. Choose and, if necessary, randomization on the equality set so thatThe Neyman-Pearson lemma says that this is a most powerful test among all tests with test size at most :Thus the optimal ordering rejects where the alternative-to-null likelihood ratio is largest. On null-impossible observations with , the rejection probability is one. Randomization is dispensable whenever an ordinary threshold already attains the required test size.
Past exam of the statistics course of the University of Oxford 2014 1 c iii Solution by
Codex 0 2026-10-31
Prefer Student 2's paired analysis, because the observational units are matched pairs: two shoes exposed to the same child's activity. A paired t-test uses , so shared child-to-child variation is removed before estimating the standard error. The independent units are the ten pairs, giving statistical degrees of freedom under the model of independent normally distributed pair differences.
The role of covariance is explicit:With common marginal variance and within-pair correlation coefficient , the true variance of the average difference is . The independent-groups calculation ignores the covariance term and uses . Positive within-pair association can therefore make the paired standard error much smaller, explaining how the reported p-values can differ without arithmetic mistakes. The preference follows from the paired design, not from selecting the smaller p-value. Marginal normality alone need not imply normally distributed differences; exact paired inference uses the normal-difference assumption, for example justified by a joint multivariate normal distribution.
Past exam of the statistics course of the University of Oxford 2014 1 c ii Solution by
Codex 0 2026-10-31
At the conventional significance level, Student 1's p-value gives no rejection of equal mean wear, while Student 2's p-value gives rejection of equal mean wear. The latter also rejects at the significance level. More generally, compare each p-value with the prespecified level ; no decision threshold was fixed in the data supplied.
Failure to reject does not establish equality, and a p-value is not the posterior probability that the null hypothesis is true. These two-sided p-values alone also do not identify which material has larger mean wear.
Past exam of the statistics course of the University of Oxford 2014 1 c i Solution by
Codex 0 2026-10-31
The equal-variance two-sample Student's t-test pools the within-group sums of squares. If and are the two unbiased sample variances, the required positive square root isFor ten observations in each group, and the usual unpaired reference Student's t-distribution has statistical degrees of freedom, provided the assumed independence between groups is justified.
Pinned article: Introduction to the OurBigBook Project
Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
Intro to OurBigBook
. Source. We have two killer features:
- topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculusArticles of different users are sorted by upvote within each article page. This feature is a bit like:
- a Wikipedia where each user can have their own version of each article
- a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.Figure 1. Screenshot of the "Derivative" topic page. View it live at: ourbigbook.com/go/topic/derivativeVideo 2. OurBigBook Web topics demo. Source. - local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
- to OurBigBook.com to get awesome multi-user features like topics and likes
- as HTML files to a static website, which you can host yourself for free on many external providers like GitHub Pages, and remain in full control
Figure 2. You can publish local OurBigBook lightweight markup files to either OurBigBook.com or as a static website.Figure 3. Visual Studio Code extension installation.Figure 5. . You can also edit articles on the Web editor without installing anything locally. Video 3. Edit locally and publish demo. Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension. - Infinitely deep tables of contents:
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact






