Use the measurable partition for , omitting any null cells. For , the random variable is bounded, so the law of total expectation applies without moment assumptions. Conditional on , the sum contains exactly terms. Independence of from the whole sequence preserves their joint law under this conditioning; independence of the then gives
For the empty sum is zero and the empty product is one, in agreement with the formula. Therefore the probability generating function of an independent random sum is
Summing a geometric series gives the probability generating function of the zero-based geometric distribution:
The series converges for , in particular on . At , , , and . The factorial moment identities give and . Thus
For a nonnegative integer-valued random variable , its probability generating function is
At , use so . The series also converges absolutely for complex ; for near zero, its coefficients recover the probability mass function.
For an integrable random variable , the law of total expectation on the finite or countable measurable partition is
Here for positive-probability cells; null cells contribute zero and need no conditional value. The series is absolutely convergent since its absolute terms sum to at most . For a nonnegative , the same identity is valid with possible value .
A partition of a set is a collection of nonempty subsets such that for and . Thus every outcome lies in exactly one cell. For a probability-space partition the cells must also be measurable events. Nonempty cells may nevertheless have probability zero.
The weak law of large numbers gives in probability. If , the event implies , whose probability tends to zero. If , its complement implies , whose probability also tends to zero. Thus
For an explicit independent bound, Chebyshev's inequality bounds either unwanted probability by . The boundary is outside the two requested cases and is not decided by the weak law of large numbers alone.
By linearity of expectation, . Part (ii) gives . Independent random variables have zero pairwise covariance, so the variance of their sum is the sum of their variances. Therefore
The are independent Bernoulli random variables with success parameter . Their sum has the binomial distribution , whose probability mass function is
Choose the successful events in ways; independence gives the same product probability for each choice. At or , interpret the formula by its degenerate distribution or by continuity.
For , the standard explicit midpoint method is
The implicit midpoint rule instead uses . When the derivative depends only on , both give .
The endpoint-only request in (e) suggests another possible convention: averaging the endpoint slopes, . This is the trapezoidal rule, and generally differs from the implicit midpoint rule. A further use of “midpoint” is the two-step explicit midpoint linear multistep method, , which needs a second starting value. The printed question supplies no convention to distinguish these meanings; (e) spells out the resulting alternatives.
For , the Backward Euler method uses the slope at the end of the step:
This generally requires solving an implicit equation for . For a derivative depending only on , it reduces to .
Write the derivative equation as with initial approximation . The forward Euler method uses the slope at the start of the step:
If the derivative is a known function of alone, this is .
With the same three cosine values, Simpson's rule gives
Using the table's row gives , with the same final rounding. That table row refers to the prefactor ; it does not change the specified number of strips.
Two strips give , with cosine values . The trapezoidal rule therefore gives
The exact integral is , so the estimate is low, consistent with the concavity of cosine on this interval. The table can be used as before rounding.
For the same uniform grid and even , the composite Simpson's rule integrates a quadratic interpolant over each successive pair of strips:
The weights are , which explains the even number of strips.
Set and . Summing the areas of the endpoint trapezia gives the composite trapezoidal rule
Every interior value is shared by two adjacent strips; the two endpoint values occur only once with half weight. Evenness of is not needed for this rule.
Apply integration by parts with and . Part (i) gives , so
We prove the stronger explicit bound by mathematical induction. The case is equality. The binomial theorem gives , so . Consequently the induction hypothesis yields
Therefore , with constant and threshold .
The second bound is asymptotically tighter. Using ,
Thus its bounding function is negligible relative to the first in little o notation; this compares the bounds without needing Stirling's formula.

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!
We have two killer features:
  1. 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-calculus
    Articles 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/derivative
  2. 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.
    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.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
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