Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 3 a ii Solution by
Codex 0 2026-10-25
Put with the paper's normalized Hellinger distance. The Hellinger affinity isThe last bound follows from the Cauchy-Schwarz inequality and the unit integrals of the two probability density functions. Using a common dominating probability measure, for example , makes the product calculation immediate. The probability density functions of the product measures factor, and Tonelli's theorem givesThe Squared Hellinger distance is independent of the choice of common dominating measure, so this calculation applies to the original distributions. We obtain the exact identity and then apply Bernoulli's inequality:For completeness, the scalar bound follows by induction: , and multiplying by the nonnegative gives .
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 3 a i Solution by
Codex 0 2026-10-25
The statement necessarily treats as probability measures, as required by the sampling model . The word "measures" in the introduction must be read with this normalization. Use the paper's convention for the Squared Hellinger distance throughout this question.
A measurable binary hypothesis test is determined by the measurable set . Under the uniform prior on the two hypotheses, its error probability isSince the two measures have equal total mass,Indeed, the integral over any set is at most the integral of the positive part, and equality holds for . This is also the total variation distance. The likelihood ratio rule choosing hypothesis precisely on that set therefore attains the infimum, provingArbitrary choices on the tie set leave the error unchanged. This is the exact link between total variation distance and optimal binary statistical hypothesis testing.
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 2 a ii Solution by
Codex 0 2026-10-25
Let be the eigenvalues of the positive-definite matrix . Its trace satisfiesThe arithmetic-geometric mean inequality givesSince , taking the logarithm provesThe determinant is largest, for a fixed trace, when the eigenvalues are equal; this is the geometric content of the estimate.
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 2 a i Solution by
Codex 0 2026-10-25
Work for an arbitrary realization of the sequence, and set . In the Loewner order,By the spectral theorem for real symmetric matrices, every eigenvalue of is at least . The matrix inverse therefore has eigenvalues at most , andFor , put . Since and , we have . The matrix determinant lemma now givesTaking logarithms and using a telescoping sum,This elliptical potential bound holds for every realization and every , without a probabilistic exceptional event. The condition is what ensures .
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 1 c ii Solution by
Codex 0 2026-10-25
We give a finite chaining argument, keeping the constants explicit. If , the metric space has just the point and both sides vanish. Suppose , and writeChoose a smallest metric net of radius , and maps satisfying . Set and . Since is finite, choose with smaller than the minimum distance between distinct points; then and .
For each , retain only the pairs actually occurring along these approximation paths:The triangle inequality gives for ; for the same argument uses . AlsoHere only monotonicity in the radius for the same space is used. No monotonicity under subsets is assumed.
For every pair in , the increment has the Sub-Gamma random variable in the right tail bound with common parameters and : for ,Identical pairs give the zero increment, which obeys the same bound. Both orientations have finite exponential moments, so all increments are integrable random variables. Differentiating their two upper bounds at zero also gives . Applying the maximum bound from part (b), including its case, givesThe telescoping sum along each path is exact:Take the supremum, bound it by the sum of the maxima, and take expected values. This provesFor either or , the function is nonnegative and nonincreasing. ThusCombining the estimates yields the required metric entropy bound:In particular, and work. The square-root and linear metric entropy terms arise respectively from the two terms in the sub-Gamma maximum bound. Because the chain ends exactly at , no limiting sample-path regularity assumption is needed.
Past exam of the algorithmic foundations of learning course of the University of Oxford 2025 1 c i Solution by
Codex 0 2026-10-25
Use closed balls with centres belonging to the space being covered. The covering number iswith value if there is no finite metric net, and value zero for the empty space.
With this intrinsic-centre convention, the proposed monotonicity under subsets is false. Give the usual distance, take , and set . A ball centred at covers , so . The two points of are distance apart, so a ball centred in contains only its centre, and . These values are also valid with open balls.
The obstruction is that the useful centre disappears on passing to the subspace. If centres were allowed anywhere in a fixed ambient space, monotonicity would hold. With intrinsic centres, one instead hasIndeed, discard covering balls missing and choose one point of from each remaining ball. The triangle inequality shows that every point of its intersection with is within of the chosen point. This proves the replacement bound whenever the right side is finite; otherwise it is automatic.
Past exam of the algebraic number theory course of the University of Oxford 2023 2 b iii Solution by
Codex 0 2026-10-25
The printed domain assertion is false. For example, take and . Then has the nonzero zero divisor , so it is not an integral domain and cannot be a principal ideal domain. The valid conclusion is that is a principal ideal ring. This error is present in the original PDF, not just its transcription.
To prove the corrected conclusion, factorinto powers of distinct nonzero prime ideals. These powers are pairwise comaximal ideals. Indeed, a maximal ideal containing two such powers would contain both underlying prime ideals, forcing them to be equal. The Chinese remainder theorem givesEvery factor is a principal ideal ring by the preceding part. Every ideal in a finite direct product of rings is a product of ideals in the factors: multiplication by the coordinate idempotent elements separates the coordinates of every element of . Write . Thenso is a principal ideal ring. This proves the principal ideal property of quotients of a Dedekind domain in the present setting. In fact, this finite quotient ring is an integral domain precisely when is a prime ideal, in which case it is a field.
For the final deduction, choose any and apply the result to the nonzero proper ideal . The ideal of is generated by one residue class , which can be represented by . For each , some satisfies . HenceThis proves two generators for an ideal in a Dedekind domain; moreover, its first generator can be any prescribed nonzero element of .
Past exam of the algebraic number theory course of the University of Oxford 2023 2 b ii Solution by
Codex 0 2026-10-25
For every , the inclusion is strict: equality, followed by multiplication by the inverse of , would give . Hence one can choosePut . ThenThe classification just proved, applied modulo , leaves no ideal strictly between consecutive powers. It follows thatFor , the same argument says , using and maximality.
The extension to every follows by mathematical induction. Suppose . Multiplication of the initial equality by givesSubstitution yieldsThusTaking for givesThis is a principal ideal of the quotient ring . Its zero ideal is generated by zero, so every ideal of this quotient ring is a principal ideal.
Past exam of the algebraic number theory course of the University of Oxford 2023 2 b i Solution by
Codex 0 2026-10-25
By the correspondence theorem for ideals, an ideal of has the form with . If , apply unique factorization of ideals in a number field to . Every prime ideal dividing contains and hence . Primality gives , and maximality gives . Thus for some .
Past exam of the algebraic number theory course of the University of Oxford 2023 1 c iii Solution by
Codex 0 2026-10-25
Put , , andThe proposed integral basis for coprime biquadratic radicands congruent to two and one isEach entry is an algebraic integer, by the ring of integers of a quadratic field formula and closure under products. Their coefficient matrix in has determinant , so they are rationally linearly independent. It remains to show that they span every algebraic integer.
Write initially with rational . The field traces to and are and . Since , the corresponding integral basis in each subfield gives . The field trace to is . Membership in says that are integers of equal parity. As is already an integer, this forces too.
Now the field norm to isBy the ring of integers of a quadratic field formula, is an integer and has the same parity as . Thus is even, giving , andUsing , and , this becomesHence . Finally,an expression with integer coefficients. This proves the asserted integral basis without assuming a general theorem about products of elements of an integral basis.
Past exam of the algebraic number theory course of the University of Oxford 2023 1 c ii Solution by
Codex 0 2026-10-25
Again put and . The ring of integers of each of the three quadratic subfields has integral basis , , or , respectively: their square-free radicands are respectively congruent to modulo four. The field traces of the algebraic integer to those subfields areThey are algebraic integers, so comparison with each integral basis givesThis use of all three subfields is needed to control as well as the other coefficients.
The field norm to isIts two coefficients must be integers. The second condition says is even, since is even. Reducing the numerator of the first coefficient modulo four givesReduction modulo two first gives . Since is even, both and are even. The same congruence now gives , or . Therefore every algebraic integer has the formwith four integer coefficients.
For the converse, are algebraic integers, andHere and , so both coefficients are integers. The monic polynomial and integral dependence is transitive show that is an algebraic integer. The four displayed generators are rationally linearly independent, since their coefficient matrix in has determinant . Hence the integral basis for coprime biquadratic radicands congruent to three and two isIn this formula denotes the product of the chosen square roots; this convention also handles negative radicands.
Past exam of the algebraic number theory course of the University of Oxford 2023 1 c i Solution by
Codex 0 2026-10-25
Put , and . The hypotheses make a biquadratic extension. To check the degree of a field extension is four, if with rational , squaring gives . The case would make a rational square; the case would make a rational square. Neither can occur for the specified distinct coprime square-free integers. Hence .
The nonidentity field automorphism of fixes and sends to . Thus, for , the field norm and field trace areIf is an algebraic integer, so is its conjugate, and their sum and product are algebraic integers. Conversely, put and . The identityshows that is integral over . If are algebraic integers, the ring generated by algebraic integers is integral over . Since integral dependence is transitive, is an algebraic integer. This proves the trace and norm integrality criterion for a quadratic extension, including elements already in .
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 c iv Solution by
Codex 0 2026-10-25
For , the notation of part (i) gives , , and . Write . The remaining covariance is then and the new observation's remaining variance is . ThusEquivalently,The expression is valid also when and . For , a noiseless observation, interpreted as the limit , removes all remaining variance at the observed target.
The source's assertion that the target input always gives the greatest reduction needs an additional hypothesis. The reduction formula above does not require that assertion. For a counterexample, use the linear kernel with and target . With no informative previous observations, . This can also be arranged with by observing first at , which has zero covariance with all latent values. Observing at the target gives reduction , whereas observing at givesIndeed this Gaussian process is for a standard normal random variable , so the measurement at observes the same unknown coefficient with a larger signal relative to its noise.
One sufficient extra condition is that the existing latent posterior variance be maximal at among all candidate inputs. To prove it, let and . The Cauchy-Schwarz inequality gives . If , thenbecause is increasing. Thus target sampling is optimal under this extra condition, but it is not implied by the paper's arbitrary-covariance function assumptions.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 c iii Solution by
Codex 0 2026-10-25
Additional observations weakly decrease the posterior variance at every fixed prediction input. Apply part (ii) repeatedly to add observations one at a time. An observation whose remaining conditional covariance with is nonzero strictly decreases that posterior variance; one with zero remaining conditional covariance leaves it unchanged. Large observation noise reduces the information gained through the denominator .
For fixed Gaussian process hyperparameters and a Gaussian likelihood, the posterior variance depends on the observation locations and noise level, but not on the observed numerical outputs. Hence the reduction holds for each possible new output, rather than only on average. The predictive variance of a future noisy observation also decreases by the same amount because its extra independent noise variance is fixed. Refitting the hyperparameters after adding data can change the covariance function; the monotonicity statement compares conditioning under one fixed model.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 c ii Solution by
Codex 0 2026-10-25
The Schur complement can be writtenbecause the first term is a conditional variance and . Therefore and the squared term is nonnegative, soEquality holds exactly when the remaining conditional covariance is zero. In particular, the reduction need not be strict even at a previously unseen input.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 c i Solution by
Codex 0 2026-10-25
Use only the first observations to defineThus the full noisy covariance matrix is and the full cross-covariance vector is . SetThe scalar is the Schur complement of . Substituting the block inverse into the Gaussian process regression posterior variance givesConsequently,andFor interpretation, after the first observations the remaining covariance between and is , while the conditional variance of the new noisy observation is . Thus the reduction is the squared remaining covariance divided by the remaining observation variance.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 b iii Solution by
Codex 0 2026-10-25
The conditional multivariate normal distribution giveswhereFor a direct justification, form . It is jointly Gaussian with , has zero mean, and satisfiesThe independence of uncorrelated jointly normal variables therefore makes independent of . Conditional on , only the displayed affine shift remains, proving the result. This is the latent-function posterior variance; a new observation with fresh independent noise has predictive variance .
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 b ii Solution by
Codex 0 2026-10-25
Condition throughout on the training inputs and . Interpret here as the fixed covariance function and noise hyperparameters. Assume observation errors are independent standard normal random variables, independent of the Gaussian process , and writeThe independent-error assumption is the standard Gaussian process regression interpretation of the observation model; the single-observation marginal noise law alone would not specify cross-observation noise correlations. We take so that is a positive-definite matrix. More generally the inverse formulas below apply whenever the indicated noisy covariance matrices are invertible.
The Gaussian process prior makes a Gaussian random vector. Adding the independent Gaussian noise vector to preserves a multivariate normal distribution. Its mean is zero, its observation covariance matrix is , and because the noise is independent of . ThereforeA degenerate latent variance is allowed; the displayed multivariate normal distribution then denotes a Gaussian law even if it has no full-dimensional probability density.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 b i Solution by
Codex 0 2026-10-25
Gaussian process regression supplies a predictive distribution and uncertainty estimates. A Gaussian process regression posterior gives both a posterior mean and a posterior variance, allowing credible intervals for the latent function and a posterior predictive distribution for future noisy observations. The kernel ridge regression estimator by itself specifies a point estimate.
With the same positive-semidefinite kernel and matching regularization, the Gaussian process regression posterior mean equals the kernel ridge regression prediction. Thus the main additional benefit is the explicit probability distribution of predictions, conditional on the chosen Gaussian process model and its hyperparameters, rather than an automatic improvement in point-prediction accuracy.
Past exam of the advanced topics in statistical machine learning course of the University of Oxford 2025 3 a ii Solution by
Codex 0 2026-10-25
A recurrent neural network processes positions through a recurrence such as . Computing requires , so the standard computation is sequential across sequence positions, although different examples in a batch can be processed in parallel. Information from position to must pass through recurrent steps, and backpropagated gradients involve products of that many step Jacobian matrices. This creates vanishing gradients or exploding gradients and can make long-range dependencies difficult to learn. Gating can mitigate these difficulties while retaining the recurrent dependence.
In a transformer block, all queries, keys, and values for an available input sequence can be formed in parallel. The self-attention weights are computed by matrix multiplication, so positions within one layer can be processed together; layers themselves remain sequential. With unrestricted self-attention, one position can directly receive information from any other position in one layer, giving a constant-length route across distant positions rather than one proportional to their separation. With causal self-attention, there is the same direct route to any permitted earlier position.
A transformer model supports parallel training across known sequence positions and short routes for long-range dependencies. Even a causal model can compute all training positions together when the entire training sequence is supplied and the attention mask excludes future positions. However, ordinary autoregressive generation still generates one new token at a time. Full self-attention also constructs pairwise scores, with quadratic time and storage in sequence length for the direct implementation; a standard recurrent neural network has linear sequential work in sequence length at fixed hidden width. Neither architecture guarantees that a useful long-range dependency will actually be learned.
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





