Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 7 a iii Solution by
Codex 0 2026-10-25
Interpret existence of the expectations as finite expected values, equivalently and . First justify the summations rather than assuming that a signed double series can be rearranged. Independence and Tonelli theorem giveConsequently is an integrable random variable, and Fubini theorem permits summing the signed terms in either order:If extended infinite expectations are allowed instead, the phrase “exist” needs additional care: expressions such as do not define an expectation. The finite-expectation convention avoids that ambiguity.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 7 a ii Solution by
Codex 0 2026-10-25
The random variables are independent random variables if the events determined by one are independent of the events determined by the other. For integer-valued variables, this is equivalent to the factorizationIndeed, independence gives the factorization by taking singleton events. Conversely, summing it over and , for any subsets , gives . Thus the singleton condition implies independence of all events in question.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 7 a i Solution by
Codex 0 2026-10-25
For each integer , the events , indexed by the integers , are disjoint and their union is . Therefore countable additivity gives the marginal probability mass functionThe nonnegative terms make this sum well-defined, even when the support is infinite.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 c iii Solution by
Codex 0 2026-10-25
Use mathematical induction on the iteration. Initially . If , then , , and . ThereforeA gradient descent step with any scalar step length consequently has the formThus every iterate remains on the same eigenline, withThis proves that gradient descent preserves an eigenline for a cubic product. The statement is invariance, not convergence to a minimum: along the negative direction of this line the cubic polynomial objective is unbounded below.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 c ii Solution by
Codex 0 2026-10-25
At , the gradient from the preceding part vanishes and the Hessian matrix is zero. The second-order test is therefore inconclusive. Instead inspect the eigenline:For arbitrarily small positive and negative , these values have opposite signs. Thus is neither a local maximum nor a local minimum. In dimension at least two it is a degenerate saddle point; in one dimension it is a stationary inflection point. Looking only at the zero Hessian matrix would not determine this classification.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 c i Solution by
Codex 0 2026-10-25
Put and . The product rule givesDifferentiate each term. The derivative of is , while that of is . HenceThe last two terms are transposes of each other, so this Hessian matrix is symmetric, as expected.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 b iii Solution by
Codex 0 2026-10-25
The matrix is an invertible matrix. Indeed, on the line spanned by it has eigenvalue , and on it agrees with the positive-definite restriction of . Therefore the full Newton step is well defined and givesThis is the unique stationary point because is an invertible matrix. The algebra applies to every starting point, but it does not make the answer a minimum: for it is the saddle point just classified, and for it is a maximum. A safeguarded minimization algorithm that replaces an indefinite matrix used as its Hessian matrix or damps the step need not take this exact step; the assertion concerns the ordinary full Newton step formula.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 b ii Solution by
Codex 0 2026-10-25
The gradient vanishes at . Decompose any vector as , with . Symmetry of and imply . Since ,If , choose a nonzero . Arbitrarily close to zero, the direction gives negative values and the direction gives positive values. Thus is a saddle point for . Equivalently, the Hessian matrix has one negative eigenvalue and all its other eigenvalues positive.
The dimension matters: if , the orthogonal complement is zero-dimensional and . In that case is the unique global maximum. This edge case is not excluded by the stated hypotheses. The decomposition is a rank-one downdate along an eigenvector.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 b i Solution by
Codex 0 2026-10-25
Write and put , which is symmetric. Differentiating this quadratic form givesUnlike , need not be a positive-definite matrix. Its behaviour must be checked before classifying the stationary point.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 a iii Solution by
Codex 0 2026-10-25
The full, undamped Newton's method in optimization step isThe eigenvector identity gives . Consequently for every starting point. This is a one-step Newton solution of a quadratic stationary equation: its gradient is an affine function, so a single exact Newton solve resolves it completely.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 a ii Solution by
Codex 0 2026-10-25
The eigenvector identity gives . Since is a positive-definite matrix, this is a strict local minimum. A global certificate follows by completing the quadratic form:Positive definiteness makes the first term nonnegative, with equality only at . Thus is the unique global minimum, with value .
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 5 a i Solution by
Codex 0 2026-10-25
Use compatible dimensions and ; the printed “b-by-b” size is read consistently with the displayed products and domain. Take derivatives as column gradients. Symmetry of givesFor example, the directional differential of is . The linear term contributes to the gradient and zero to the Hessian matrix.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 2 c v Solution by
Codex 0 2026-10-25
False. On the unbounded subsequence of odd positive integers, . For any proposed constants , choose an odd . Then , contradicting the eventual upper bound required by Big O notation. The small ratio on even integers cannot compensate for this failure on infinitely many odd integers.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 2 c iv Solution by
Codex 0 2026-10-25
True for every fixed . Extract from inside the logarithm:Choose an integer . The nonnegative terms of the exponential series give for , whenceSince for , the displayed expression tends to zero and is therefore . The constant and cutoff may depend on the fixed ; no uniform assertion over unbounded is being made.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 2 c iii Solution by
Codex 0 2026-10-25
True. Rationalization gives, for ,This lies between zero and , so it is in Big O notation. In fact it converges to , rather than to zero. The rationalized form also avoids the catastrophic cancellation of subtracting two nearby large quantities.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 2 c ii Solution by
Codex 0 2026-10-25
False. Put for . For ,Thus . No fixed constant can bound eventually, so . This is an explicit comparison of exponential growth with polynomial growth.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Discrete mathematics, continuous mathematics and probability resit 2 c i Solution by
Codex 0 2026-10-25
True. For every integer , and . ThereforeThe constants and satisfy the definition of Big O notation. Whether the chosen convention for natural numbers includes zero is immaterial to this eventual assertion.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Digital systems, linear algebra, introduction to formal proof 8 f ii Solution by
Codex 0 2026-10-25
The term is free for substitution for . The only free occurrence of the target is in the outside disjunct , beyond both quantifier scopes. The occurrences under are bound variables and are not replaced. Therefore no renaming is required, andThe new and in the last disjunct are free. First-order substitution replaces the original free occurrences once; it does not recursively substitute into the inserted term.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Digital systems, linear algebra, introduction to formal proof 8 f i Solution by
Codex 0 2026-10-25
The term is not free for substitution for . The occurrence of in is under , which would capture the inserted . The other occurrence, in the outside disjunct , has no enclosing quantifier. The inner does not bind the occurrence of in its antecedent, so it creates no additional capture at that substitution site.
Rename the bound to a fresh , then carry out capture-avoiding first-order substitution. The result isThe inserted in remains free because it lies outside the scope of . One may additionally rename that bound for readability, but it is not necessary for correctness.
Past exam of the year 1 of the computer science course of the University of Oxford 2022 Digital systems, linear algebra, introduction to formal proof 6 b ii Solution by
Codex 0 2026-10-25
Define by . It is well-defined by the definition of , andThus is a linear map. If , comparing first components gives , proving injectivity. Every element of has the form , proving surjectivity. Hence is a linear isomorphism, with inverse , and .
There are unlisted articles, also show them or only show them.