For finite-valued random vectors, the conditional entropy is the average of the entropies of the conditional distributions:
Use and omit zero-probability conditioning events. Equivalently,
The base two makes all information quantities measured in bits; changing the logarithm base scales them by a positive constant and preserves the inequalities.
Make a rooted binary tree with an edge labelled zero for the first branch and one for the second branch at each interior node. Put each source symbol at the leaf reached by following the successive digits of its codeword. The prefix property ensures no assigned word ends at an ancestor of another assigned word.
The route of a codeword is its root-to-leaf path; its length is the number of edges on that path, equal to the number of binary digits in the word. For an optimal tree with positive leaf probabilities, every interior node has two children: a node with just one child could be contracted, shortening all words below it and strictly reducing the expected length. The diagram in the earlier Huffman calculation is one such full binary tree.
A binary prefix code assigns each source symbol a distinct finite binary word, with no assigned word a prefix of another. It is instantaneous because a decoder can identify the symbol as soon as its last digit arrives, without reading digits from the next word. Such a code is optimal when it minimizes
among all binary prefix codes for that source distribution. Symbols of zero probability may be removed from the optimization.
Let be the original input, the output of the first channel, and the final output. The independent erasure flag is observable from . The mutual information chain rule, conditioning on that flag, gives
The same uniform input maximizes as in the binary symmetric channel. Thus
This scaling works because the erasure event is independent of both the input and the first channel noise.
The capacity of a discrete memoryless channel is , in bits per channel use. For the binary symmetric channel with crossover probability , and . A uniform input makes the output uniform, attaining
For the binary erasure channel, let be its erasure indicator. This flag is visible in the output and independent of the input. If there is no erasure, the output reveals the input; otherwise it reveals nothing. Consequently
again attained by a uniform input. These formulas include crossover probabilities zero and one, and complete erasure.
The entropy chain rule gives
Conditional entropy is nonnegative, so . For finite entropies, if , equality holds exactly when , meaning is a function of almost surely. If , interchange the variables. When their entropies are equal, equality requires both functional relations. Zero conditional entropy has this characterization because each conditional probability distribution must be a point mass.
Write , , and . In bits the mutual information is
Terms with zero joint probability contribute zero. On its positive support apply with :
Equality requires equality in every logarithmic inequality and no product mass outside the joint support, hence everywhere. Conversely that factorization makes every term zero. Thus mutual information is nonnegative and vanishes exactly for independence. For countable alphabets the same conclusion follows from the relative-entropy inequality, allowing the value .
The continuous representative of makes continuous on the closed interval. The integrated formula therefore gives a continuously differentiable representative of , and hence with
Differentiate once more. The right side is continuously differentiable because , and
Thus . These formulas give continuous one-sided derivatives at the endpoints as well. Repeated bootstrapping would actually give smoothness of every order.
In one dimension, has an absolutely continuous bounded representative. For any smooth zero-endpoint test function , the functions are admissible and arbitrarily close to for small . Local minimality forces the first variation to vanish. Differentiation under the integral is valid because are bounded and the derivative terms are integrable, giving the weak Euler-Lagrange equation
In distributional form this says . The fundamental theorem for weak derivatives, or the fundamental lemma applied after subtracting an antiderivative, gives a constant with
This is the integrated Euler-Lagrange equation. The boundary difference determines
The weak identity extends to all zero-trace test functions by density.
Here . First restrict . On that slope interval, the second derivative of is . Taylor's theorem gives
The linear term integrates to zero because . Since , the Poincaré inequality yields
The coefficient is positive. Thus zero is a strict weak local minimizer.
For failure of strong minimality, take a triangular bump supported on , with slopes and , and zero outside. Its height is . Almost everywhere its slope is or , so the cosine term has exactly its zero-function value everywhere. The potential term is strictly negative on the bump. Therefore
Hence it is not a strong local minimizer. The derivatives of these bumps stay large, so they do not contradict weak local minimality.
For any zero-endpoint admissible , use and the sharp Poincaré inequality on :
The coefficient is positive, and equality forces , hence by its endpoint values. Thus
It is therefore both a strict strong and a strict weak local minimizer.
A strong local minimizer of a variational integral is an admissible for which there is such that
The competitor's derivative need not be close. This compares with a larger family of competitors, which is why it is the stronger minimality property.
A weak local minimizer of a variational integral is an admissible for which there is such that
Both the function and its first derivative must remain uniformly close, up to the almost-everywhere convention for the derivative.
If an admissible attained the infimum zero, each nonnegative term of its integrand would vanish almost everywhere. In particular almost everywhere, so in its Sobolev space and its weak derivative is zero. But then the remaining term is almost everywhere, giving , a contradiction. Thus the infimum is zero but no global minimizer exists. The oscillatory sequence has no convergence of derivatives compatible with substitution into this nonconvex energy.
The integrand is nonnegative, so . For each positive integer , set
This is a continuous piecewise affine sawtooth with zero endpoints, , and almost everywhere. It belongs to , and almost everywhere. Therefore
Together with nonnegativity this proves . The functions converge uniformly to zero while their derivatives retain magnitude two; small amplitude does not force small gradient.
Figure 1.
Uniformly small competitors can retain fixed nonzero slopes: repeated teeth and a shrinking localized bump
. Details.
A global minimizer is an admissible function for which
Equivalently it attains the infimum over the whole admissible class. Its endpoint traces must equal the prescribed boundary values; comparing only with nearby functions would define a local rather than a global notion.
A strictly convex function satisfies the strict inequality
Endpoint and coincident-point cases are excluded because they necessarily give equality.

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