Topics (384k) Articles (398k) Users (410) Discussions (242) Comments (383) Files (13k) New article
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 9 a i Solution by
Codex 0 2026-10-25
Markov's inequality: if and , then . Pointwise,Taking expected values, using their monotonicity and the identity , gives . Division by the positive threshold proves the inequality. If the expectation is infinite, the extended-valued bound remains true but uninformative.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 8 b iii Solution by
Codex 0 2026-10-25
Differentiate the probability generating function equation:At , , givingThe derivative is finite because and the explicit square root has no singularity at . Alternatively, the expected population in generation is , so the expected number of splits in that generation is . Summing this nonnegative geometric series gives the same answer without initially assuming a finite expected value.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 8 b ii Solution by
Codex 0 2026-10-25
If the initial individual has no offspring, . If it splits, count that one event and the splitting events in its two independent descendant trees. Thuswhere are independent copies of . Taking the probability generating function givesFor , the quadratic equation has two algebraic branches. A probability generating function must remain finite at , where it equals , so the admissible branch isThe rationalized formula is also defined directly at zero. At , , so , consistent with almost-sure finiteness. Extinction occurs after a finite number of generations almost surely, and each generation is finite, which justifies that finiteness claim for the number of splitting events in a binary branching process.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 8 b i Solution by
Codex 0 2026-10-25
This is a Galton-Watson process with offspring count with probability and with probability . The descendants of distinct initial individuals evolve independently, sofor every finite initial size . Conditioning on the first individual's outcome and applying the law of total probability givesThe equation factors asIts roots are and . Since , the second root exceeds one and cannot be a probability. Therefore and for every finite initial size. The population reaches the absorbing state zero almost surely; no choice between two admissible fixed-point probabilities remains in this subcritical case.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 8 a ii Solution by
Codex 0 2026-10-25
Let denote the selected die. Bayes' theorem givesOnly the first roll is conditioned on here; the second outcome has not been observed.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 8 a i Solution by
Codex 0 2026-10-25
The two outcomes are not independent. Conditional on the selected die, the rolls are independent, but sharing the unknown die creates statistical dependence. Each nonfavored face has probability .
The unconditional marginal distribution assigns the following probability to a on either roll:However, by the law of total probability,Thus the joint probability does not factor into the two marginals. Conditional independence given a shared latent choice does not imply unconditional independence.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 c ii Solution by
Codex 0 2026-10-25
Let be the indicator that black bead belongs to the white bead's connected component. The number of such black beads is . By linearity of expectation, no independence between these indicators is needed.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 c i Solution by
Codex 0 2026-10-25
View the necklace as a cycle graph. Between the white bead and there are two edge-disjoint paths, containing and links. The beads remain connected if and only if at least one of these paths is uncut.
There are equally likely cut sets. Keeping the -link path uncut requires all three cuts to be among its complementary links, giving choices. Keeping the other path uncut gives choices. These two events are disjoint because three links are cut and they cannot all lie in both complementary paths. ThereforeUse for . The answer is unchanged by exchanging and , so either orientation around the necklace gives the same value. This is the connectivity calculation for random cuts of a cycle.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 b iii Solution by
Codex 0 2026-10-25
For and , independence gives the cumulative distribution functionThe cumulative distribution function is zero below and one above . Differentiating on the interior givesup to irrelevant endpoint values. There are no endpoint atoms. This maximum is an order statistic.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 b ii Solution by
Codex 0 2026-10-25
Split the unit square into and . The maximum is on the first triangle and on the second, soThe shared boundary has zero probability, so it is not counted twice in this joint density calculation.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 b i Solution by
Codex 0 2026-10-25
By independence, the joint probability density is the product of the two uniform distribution densities:Changing its values on the boundary does not affect any probability or expected value.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 a ii Solution by
Codex 0 2026-10-25
For , decreasing the second parameter by one gives another valid beta distribution density andNormalization therefore givesThe restriction is essential for this finite expected value; when , the singularity near instead makes the expectation infinite.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 7 a i Solution by
Codex 0 2026-10-25
Multiplying the beta distribution density by gives a constant multiple of the normalized density with parameters :Integrating and using the fact that the latter probability density function integrates to one givesThis is a normalization-ratio argument, requiring no explicit integration of the polynomial density.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 6 c iv Solution by
Codex 0 2026-10-25
At , gradient descent remains a plausible large-scale choice; dense Newton method and full-memory BFGS are generally impractical. A dense double-precision matrix alone contains entries, about TB. Dense factorization also has order arithmetic work. Full BFGS avoids factorization but retains quadratic storage and update work, so it does not solve that scaling problem.
Gradient descent uses linear working storage in , though the cost of reading the data and evaluating the gradient is still for dense . Sparsity or streaming can be important. Limited-memory BFGS, a distinct limited-memory variant, stores only a fixed number of recent update pairs and uses storage and update work, making it a realistic alternative to full BFGS.[ref]
Quasi-Newton Methods by NEOS Guide. Final paragraphs: implicit inverse-Hessian products and stored-pair limited-memory methods
The available Hessian matrix factorization also permits a matrix-free Hessian-vector product:It costs for dense data without forming . A suitable iterative, safeguarded Newton method can exploit this structure, so the conclusion rules out the dense implementation rather than every possible second-order algorithm.
These methods seek a local solution and require convergence checks appropriate to nonconvex optimization. The formula does not even ensure a finite minimizer exists: with one positive coefficient and nonzero , the positive exponential loss approaches zero along an unbounded direction without attaining it. Dimension alone cannot supply a convergence guarantee.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 6 c iii Solution by
Codex 0 2026-10-25
At , gradient descent and full BFGS are practical candidates; a dense Newton method can also be feasible, but its extra work and indefinite curvature need attention. The number of examples , data sparsity and conditioning still matter.
For dense , a gradient evaluation costs arithmetic, with working storage beyond the data and accumulation buffers. Gradient descent is inexpensive per iteration and, with an appropriate line search, follows a descent direction, but poor conditioning can make it slow.
Forming the Hessian matrix explicitly costs arithmetic, and a dense Newton method solve costs . A -square double-precision matrix uses about MB, so storage alone is manageable, but repeated factorization may be expensive. Because the Hessian matrix can be indefinite or singular, an unmodified Newton step need not decrease the loss; a modified Hessian, damping or a trust region is appropriate.
Full BFGS uses gradients and an curvature approximation, avoiding explicit second derivatives. Its rank-two updates and direction calculation cost per step and require roughly the same matrix storage. A positive-definite initial approximation with safeguarded curvature updates and a suitable line search preserves descent directions. For this scale it is often a good compromise, without guaranteeing a global minimum.[ref]
Quasi-Newton Methods by NEOS Guide. Secant condition, positive-definite updating, and quadratic per-step operation/storage costs
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 6 c ii Solution by
Codex 0 2026-10-25
Differentiating the gradient term by term gives the Hessian matrixTake row of to be . ThenIndeed, entry of this product is , exactly the entry of the displayed sum of outer products. Explicitly,These coefficients may have either sign, so a positive-definite Hessian matrix cannot be assumed. This is an instance of the Hessian of a sum of functions of linear forms.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 6 c i Solution by
Codex 0 2026-10-25
Use a column gradient. By the multivariable chain rule,The scalar coefficients multiply the constant vectors . In particular , although explicit differentiation of is not required.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 5 b iii Solution by
Codex 0 2026-10-25
About five steps are certified by the uniform worst-case estimate; the actual iteration reaches double-precision accuracy in about four. Put . The initial enclosure gives , and repeated squaring yieldsFor this is about , while for it is below . Thus five ideal-arithmetic steps push this bound well below the approximately relative resolution of double-precision floating-point format.
The bound is conservative. Factoring identifiesHigh-precision evaluation of the actual successive errors gives approximately , , , and . Thus the fourth step would already exceed double-precision accuracy in exact arithmetic. In floating-point evaluation, cancellation in the residual and other roundoff errors prevent the subsequent theoretical digits from being realized.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 5 b ii Solution by
Codex 0 2026-10-25
It remains to justify that the iteration stays where the error estimate applies. Because is a concave function, its graph lies below each tangent line. At any , the tangent has nonpositive value at , negative slope, and nonnegative value at . Its zero therefore satisfiesBy mathematical induction, the Newton root-finding iteration stays in and decreases to some limit . Continuity in implies , so uniqueness gives .
Now the supplied error bound applies at every step:This proves at least quadratic convergence, with an invariant interval and a nonvanishing derivative explicitly established.
Past exam of the year 1 of the computer science course of the University of Oxford 2019 Discrete mathematics, continuous mathematics, and probability 5 b i Solution by
Codex 0 2026-10-25
The Newton root-finding iteration isIt is defined when . Finding an exact zero of a function is a stopping condition, rather than a reason to continue dividing.
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





