Start at any integer , for example two. Propose or with probability each; if the proposal is one, reject it immediately. Between distinct valid neighboring states the proposal is symmetric. The Metropolis–Hastings acceptance probability for an upward proposal is
For a downward proposal from , it is
These are exactly the ratios of the supplied negative binomial distribution probabilities; the factor cancels. The rejection at the boundary supplies a self-loop at two. All neighboring positive states communicate, so the chain is irreducible and aperiodic. Detailed balance gives the desired stationary law. Rejecting the invalid move, rather than forcing an upward move at two, preserves the proposal symmetry used in these ratios.
For the Metropolis–Hastings algorithm, choose a proposal transition and initialize at a state with . From current , propose and accept it with probability
Otherwise stay at . The accepted off-diagonal transition satisfies detailed balance, since is symmetric in . Thus is stationary. For convergence from arbitrary starting states in the support, choose the proposal so the resulting chain is irreducible and aperiodic. Only ratios of target probabilities are needed, so an unknown normalizing constant cancels.
Count facial boundary walks with each edge-side counted once. Their total length is . Every face walk has length at least four: simplicity excludes loops and parallel-edge two-cycles, absence of triangles excludes length three, and a length-two face walk consisting solely of a bridge traversed twice could be the whole boundary only for the excluded connected graph on two vertices. Bridges may occur twice in a longer boundary walk and are still correctly counted. Thus .
The Euler formula for a connected planar graph gives . Rearranging yields
The observed statistic exceeds the supplied quantile for two degrees of freedom. Thus reject independence, with .
For one child of each sex among the first two, the three-child count is , below its independence expectation . Equivalently, the two-child count is , above its expectation . These departures have exactly the direction predicted by the suggestion. Thus the data support the proposed association: mixed-sex first pairs are associated with a greater tendency to stop at two children.
Let be the observed cell counts, the row totals, the column totals and . The fitted expected frequencies under independence are . For example the three-child, one-boy cell has expected count .
The Pearson chi-squared statistic is
Under it has asymptotically a chi-squared distribution with degrees of freedom, assuming the multinomial sampling model and sufficiently large expected counts. All expected counts here are large. The distribution is an asymptotic approximation, rather than an exact finite-sample identity.
Under the independence log-linear model for a two-way contingency table, the six cell probabilities factor as
The row distribution has one free parameter and the column distribution two, giving three free parameters under . Under the unrestricted alternative, six cell probabilities sum to one, giving five free parameters under . The difference is two, which is the degrees of freedom of the resulting chi-squared test.
The full column rank makes invertible. The least-squares normal equations from minimizing squared residuals give
The errors have covariance matrix by independence and equal variance. Applying the covariance transformation rule to this linear estimator yields
The parameter estimator is unbiased because .
Write . By symmetry of the distribution, . Rearranging gives . Thus the interval printed in the question has endpoint
There is a direction mismatch in the question. Since is before minus after, a reduction corresponds to . The upper interval excludes zero when , which instead tests against a negative mean difference.
For the stated reduction alternative, use the lower 95% interval . It excludes zero exactly when
This is the level- one-sided paired t-test of against . Both the requested upper endpoint and the correctly directed test are thus determined without silently reversing the difference convention.
Each before-and-after observation belongs to the same individual, so pairing removes individual baseline variation and allows dependence within a person's two readings. Under the stated independent normal model for the differences,
The independence of the normal sample mean and sample variance theorem gives independence of and , and
Also is standard normal. Dividing it by the square root of the independent variable gives
Its law contains neither unknown parameter, providing the pivotal quantity for a paired t-test.
Equality forces because its proposed value is at most . The random variable is nonnegative and has expectation zero, so almost surely. On it equals the strictly positive variable , making that event null. On it equals , forcing there. Hence
This is the equality in Markov's inequality under strict positivity. The reasoning even works without the discreteness assumption.
Let and write . Independence gives and . Apply part (b) to the nonnegative variable , which is the Chebyshev inequality:
Thus in probability, proving the finite-variance weak law of large numbers.
Pointwise, , since is nonnegative. Taking expectations and dividing by proves the Markov inequality
If the expectation is infinite, the inequality remains true in the extended-real sense.

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