Buffer solution 2026-10-13
A buffer solution contains appreciable quantities of a weak acid and its conjugate base, and resists changes in pH caused by small quantities of added chemical acid or chemical base. The conjugate base accepts added protons; the weak acid supplies protons when a chemical base consumes them. Consuming most of either partner undermines the buffering action. See Flowers et al., Chemistry 2e, buffers.
For a separate toy calculation, stipulate pKa for a weak acid ; this is an input, not measured material data. Initially of buffer solution contains of and of its conjugate base . In the ideal concentration approximation, the Henderson-Hasselbalch equation gives initial pH . Add of hydroxide with negligible volume change. The dominant neutralization has one-to-one stoichiometry:
Each mole of consumed hydroxide removes one mole of weak acid and forms one mole of conjugate base and water. Thus the inventories after neutralization are
The shared volume cancels from the concentration ratio. The Henderson-Hasselbalch equation therefore predicts
This small increase illustrates how conversion between abundant partners absorbs added chemical base. The calculation neglects the tiny free hydronium and hydroxide inventories, changes during re-establishment of chemical equilibrium, self-ionization of water, and activity coefficient corrections. The displayed inventories approximate the final chemical species distribution; they are not an exact solution of all chemical equilibrium conditions.
Figure 1.
Added hydroxide transfers a finite inventory from weak acid to conjugate base
. Toy pKa , initial volume , and negligible added volume. Bars show the dominant neutralization bookkeeping before and after adding of hydroxide; the pH values use the ideal concentration approximation. The acid-plus-base inventory stays . Neither the bars nor the pH values are measured material data or exact speciation. Details.
A buffer solution has a finite buffer capacity: its weak acid inventory supplies protection against added chemical base, and its conjugate base inventory supplies protection against added chemical acid. Here an addition approaching of hydroxide uses up the available in the dominant stoichiometry calculation. Close to that limit, the neglected chemical equilibrium contributions matter; once is exhausted, inserting a zero denominator into the Henderson-Hasselbalch equation cannot predict the actual pH. Excess hydroxide and the remaining chemical species require a fresh chemical equilibrium calculation. This is why a buffer solution stabilizes conditions for chemical reactions over a finite range of additions. See Flowers et al., Chemistry 2e, buffer capacity and added base.
For the pair , rearranging the acid dissociation constant gives the activity relation
With thermodynamic activity of water approximated by one and ideal dilute thermodynamic activities for both partners, this yields the familiar Henderson-Hasselbalch equation:
The concentrations are at chemical equilibrium; using initial values requires negligible equilibration changes. Below, also neglect self-ionization of water and competing chemical reactions.
Stipulate for an illustrative weak acid, without identifying it with a measured substance. A conjugate base to weak acid concentration ratio of two gives
Equal concentrations give a ratio of one, whose logarithm is zero, hence pH . Multiplying the ratio by ten raises pH by one: ratios , , and give pH values , , and . The ratio controls the ideal prediction, while the absolute quantities control how much added chemical acid or chemical base the buffer solution can accommodate.
Figure 2.
The Henderson-Hasselbalch equation turns a tenfold ratio change into one unit of pH
. The stipulated weak acid has . Points mark conjugate base to weak acid concentration ratios , , , and . The curve uses ideal dilute thermodynamic activities, chemical equilibrium, and negligible self-ionization of water; it is a calculation, rather than measured data. Details.
Catalyst 2026-10-14
A catalyst makes a chemical reaction proceed faster by participating in an alternative reaction mechanism and being regenerated. This makes repeated conversion possible: the same catalyst can help many successive reactants become reaction products. An enzyme is a biological catalyst. The overall standard change in Gibbs free energy is unchanged; see the IUPAC Gold Book: catalyst.
Regeneration does not mean that the catalyst sits unchanged throughout every step. For example, a schematic reaction mechanism can temporarily bind A to a catalyst C in a reaction intermediate AC:
Adding the steps cancels both the reaction intermediate AC and the catalyst C from the net chemical equation. AC is produced and later consumed; C is used and later recovered. These letters describe possible roles, not a measured reaction mechanism. The alternative route is useful only if its chemical kinetics permits faster conversion. See Flowers et al., Chemistry 2e, §12.7: catalysts and alternative mechanisms.
For a worked barrier example, consider an idealized reversible A-to-B conversion at fixed temperature . Stipulate standard molar Gibbs free energy levels and , with effective transition state levels without a catalyst and with a catalyst. Use the same standard states and the same zero for both routes; the catalytic route includes the regenerated C at both endpoints. Unlike the separate potential-energy profile example, this illustration uses Gibbs free energy at one specified temperature.
Figure 1.
A catalyst lowers the stipulated Gibbs energy of activation in both directions while retaining the same endpoints
. Original smooth schematic Gibbs free energy profiles at , with levels in . The horizontal reaction coordinate describes progress along each schematic route, not time. These are chosen effective barriers, not measured potential energy surfaces, actual molecular paths, or the two-step reaction mechanism above. A real catalytic route can have several transition states and reaction intermediates. Details.
The Gibbs energy of activation is measured from the starting endpoint in the chosen direction. Thus the four barriers are
Both directional barriers fall by . The endpoint difference stays .
To turn those barriers into rate constants, use the Eyring form of transition state theory for this effective first-order reaction pair, with a common prefactor and unit probability of successful passage:
Here is the Boltzmann constant, is the Planck constant, and is the molar gas constant. The common prefactor cancels from the comparisons. These Gibbs energies of activation are not the empirical activation energy of the Arrhenius equation. With the stipulated value , the speedup is
The exponent is a dimensionless quantity: convert to before dividing by . The exponential function explains why a modest barrier reduction can have a dramatic kinetic effect. This number follows from the chosen free-energy barriers and common prefactor; it is not a universal catalytic multiplier or a prediction across temperatures.
Figure 2.
Both directional rate constants increase by about , while their forward-to-reverse ratio stays about
. Original bar plots at . Left: base-ten logarithms of the dimensionless normalized rate constants for the four stipulated barriers. A less negative value means faster conversion. Right: the logarithm of is identical for the two routes. Absolute units factor out through the common ; no temperature dependence outside this one model point is asserted. Details.
Assume ideal thermodynamic activities with a common concentration standard state, and directional rate laws and . At chemical equilibrium, equal reaction rates give for this model. The barriers give
The catalyst speeds up both directions, so it changes how quickly chemical equilibrium is approached without changing this equilibrium constant. For a general chemical reaction, the thermodynamic relation is with consistent standard states; an arbitrary multistep reaction mechanism need not permit for two measured rate constants. At the same temperature, pressure, and thermodynamic activities, a catalyst also leaves the actual overall reaction change in Gibbs free energy unchanged. See 13.3 Shifting Equilibria: Le Châtelier’s Principle (§13.3: a catalyst does not shift equilibrium). To drive an unfavourable overall conversion, a process such as energy coupling must change the combined transformation.
Chain rule for mutual information Created 2026-09-24 Updated 2026-10-14
For finite discrete random variables, the mutual information supplied by two observations equals the information supplied by the first plus the additional conditional mutual information supplied by the second:
The order changes the individual contributions but leaves the total unchanged.[ref] To prove the first identity, add and subtract the intermediate conditional entropy:
With base-two logarithms, all contributions are in bits. Repeatedly inserting intermediate conditional entropies makes them cancel, as in a telescoping series, and gives the rule for any finite list of observations:
where the term is . The same calculation with already known gives .
For the fair-bit exclusive or example in conditional mutual information, observing alone tells nothing about , but observing after tells everything:
Here by independence and because . In the reverse order, , so and : the two observations are individually uninformative but jointly reveal one bit. Simply adding their separate mutual informations would miss all of it.
The chain rule is useful for measuring the value of each new observation without double counting information already supplied. It also guarantees by nonnegativity of conditional mutual information. Keeping and adding can help, even though discarding and retaining only a processed is constrained by the data processing inequality. Equating the two observation orders gives the precise identity
which explains why there is no general rule that conditioning decreases mutual information.
Channel capacity Created 2026-09-24 Updated 2026-10-14
Channel capacity is the best reliable information rate available through a specified communication channel. For a discrete memoryless channel with finite input and output alphabets, fixed transition probabilities , and no input-cost constraint, it is
in bits per channel use, when the mutual information uses base-two logarithms. The maximization varies the input probability distribution, while keeping the communication channel fixed. A large input alphabet or a large output information entropy alone does not determine how much information gets through: the receiver needs information about the input, rather than merely unpredictable output.
The operational meaning comes from the Shannon second coding theorem. A block code represents one of possible messages by a word of length , giving a rate bits per use. Take the message label from the uniform distribution on a finite set of those choices when measuring average decoding-error probability. For every fixed rate , there are sequences of such block codes whose decoding-error probability tends to zero as grows; a rate above cannot have vanishing decoding-error probability. This is an asymptotic limit, rather than a promise that an arbitrary finite block code at a rate below works well. See MIT 18.310, Shannon's Noisy Coding Theorem, sections 1–2.
For a binary symmetric channel with crossover probability , the binary symmetric channel capacity is approximately bits per use. Thus a binary code rate lies below the limit, while lies above it. At , two transmitted symbols represent one message bit on average; the redundancy helps distinguish messages after noise. This does not split individual physical symbols into fractional pieces.
The result is useful because it separates two tasks. Computing channel capacity establishes the target imposed by the transition probabilities; constructing an effective block code attempts to approach that target with acceptable delay and decoding effort. The surprise is that reliability can improve indefinitely without forcing every positive rate to disappear. In his 1948 paper, Shannon defines noisy channel capacity in section 12 and develops its operational significance in section 13, Theorem 11. His original formulation uses information per unit time; the fixed-duration channel-use convention here expresses the same rate question per symbol. [ref].
The continuous angular geometric mean of the positive boundary complex modulus is
Here the empty product is one. This differs from the angular arithmetic mean . In general by the concavity of the logarithm; equality requires constant boundary complex modulus. For a holomorphic function with no zeros of a function in the closed disk, Jensen's formula gives , even when the boundary complex modulus varies with angle. Thus replacing the mean of a logarithm by the logarithm of an arithmetic mean loses the exact zero identity.
Under the hypotheses of Jensen's formula, the circle log-mean is the angular average of the natural logarithm of the complex modulus. The factor normalizes the integral to a mean. It averages values at equally weighted angles on the circle, and Jensen's formula computes it from and the interior zeros of a function.
The Clément-Desormes experiment infers heat capacity ratio from a rapid pressure reduction followed by reheating. Use a rigid bottle, pump or bellows, a quick release valve, and a U-tube pressure gauge connected to the bottle and atmosphere. First pump to a small excess pressure, close the inlet, and wait for thermal equilibrium with the room at . Measure , where is local absolute atmospheric pressure. Briefly open the release valve until the bottle reaches , then close it promptly. The remaining gas is cooler than the room. As it warms back to at fixed bottle volume, its pressure rises to , with in the ideal procedure. The rebound reveals cooling during release. [ref]
The bottle loses molecules while the valve is open: it is not a closed system whose geometrical volume expands. In the well-mixed, negligible-heat transfer discharge model with constant heat capacity ratio, the remaining gas obeys . Subsequent heating at fixed amount of substance and bottle volume gives by the ideal gas law. Eliminating the unmeasured yields
The logarithms use absolute pressure ratios. The approximation requires small gauge pressures ; are signed height differences between the two liquid surfaces, and the final equality uses the same liquid in both readings with hydrostatic equilibrium. It is not an instruction to insert gauge readings into the logarithmic formula. For synthetic states generated with , and , the model gives . The logarithmic inference recovers ; the small-pressure approximation gives approximately .
Wait for a stable initial pressure after pumping and for a stable final pressure after closing. Vary the valve-open interval and initial excess pressure across repeated trials: closing too early leaves residual excess pressure, while leaving the valve open during warming lets more gas escape and suppresses the rebound. Test the seal for leaks, and read both liquid levels consistently. In a variant with incomplete release, measure the actual immediate post-release absolute pressure and replace the numerator by . The Zurich laboratory manual explains that liquid-column oscillations can delay this reading until appreciable reheating has occurred; its proposed backward extrapolation assumes an exponential thermal relaxation and must be checked against the recorded readings. These controls separate a thermal signal from valve timing, instrumental lag and leakage. [ref]
Cluster expansion 2026-09-29
The cluster expansion organizes the logarithm of a dilute interacting system's canonical partition function as a sum over connected clusters built from Mayer bonds.
Any deterministic comparison sort correct for all orders of distinct sort keys needs at least comparisons on some input. Here is a factorial, a logarithm, and the brackets denote the ceiling function. This is a worst-case requirement, not a requirement on every input.[ref]
For three distinct sort keys, the diagram has one leaf for each possible ordering of the original entries . Some paths need two comparisons, others three; two comparisons cannot distinguish all six orders.
Figure 1.
A comparison decision tree distinguishes the six orders of three distinct sort keys
. Each internal node tests the sort keys of two fixed original entries. A leaf gives the order in which their complete sorting records must be emitted. There are leaves and maximum depth three. The diagram assumes distinct sort keys, so no equality branch is needed. Details.
For the proof outline, represent adaptive comparisons by a binary tree: distinct sort keys give only two outcomes per comparison. A leaf fixes an output permutation; one leaf cannot correctly handle two different strict orders. Hence there must be at least leaves. Maximum depth permits at most leaves, so gives the bound. Even a three-way comparator has only two reachable outcomes on this distinct-key family.
The growth follows without a precise approximation to the factorial. At least of its factors are at least , so for ,
The brackets denote the floor function. This gives a constant times lower bound for large , matching the worst-case comparison growth of merge sort.
Distinct sort keys are essential to the counting argument. Identical sort keys do not create different strict orders. If all sort keys coincide, stable sorting returns the arrival order. This does not remove the worst-case bound for a comparison sort required to handle arbitrary distinct-key inputs.
The logarithm is strictly concave on positive real numbers, as its second derivative is negative. Thus the Jensen inequality gives for a probability measure and an integrable positive , whenever the left side is defined. It also controls the negative logarithmic part of convex combinations of strictly positive functions.
Conditional mutual information Created 2026-09-24 Updated 2026-10-14
For finite discrete random variables, conditional mutual information measures the average reduction in uncertainty about from observing , when is already known. With base-two logarithms, it is measured in bits:
The second expression follows from the chain rule for conditional entropy and makes the symmetry in visible. Equivalently, compute the mutual information separately in each conditional probability distribution and then average:
Here is the Kullback-Leibler divergence, also computed with base-two logarithms; zero-probability terms contribute zero. The Gibbs inequality gives , with equality exactly when and have conditional independence given : the conditional joint probability mass function factors for every of positive probability.[ref]
For a fully computed example, take independent random variables that are fair bits, and let , where is exclusive or. The complete joint probability distribution has only these four positive entries:
Table 1.
Joint probabilities for two independent fair bits and their exclusive or
.
Every pair has probability , so . But . Given , the pairs each have conditional probability , while both conditional marginals are fair. Thus
Given , the pairs give the same calculation. Therefore
The conditional entropy calculation tells the same story: because either value of leaves fair, whereas because . Learning the exclusive or does not reveal either bit alone; it reveals whether they agree, so learning one then determines the other.
Figure 1.
Conditioning on the exclusive or reveals one bit of dependence between independent fair bits
. Details.
This example distinguishes conditional independence from ordinary independence. It also disproves the claim that conditioning always reduces mutual information, despite conditioning reduces entropy. There is no general ordering between and : the example above increases it from zero to one, while taking and for a fair bit decreases it from one to zero. The chain rule for mutual information explains why both are possible.[ref]
Conditional mutual information is useful for asking whether an additional observation tells us anything after information already available has been accounted for. Its zero case expresses conditional independence exactly; in a Markov chain, this is the step that turns the chain rule for mutual information into the data processing inequality.
Conditioning reduces entropy Created 2026-09-24 Updated 2026-10-14
For finite discrete random variables , knowing reduces the information entropy of on average:
Equality holds exactly when and are independent random variables. The average over observations is essential: can exceed for a particular . All logarithms here have base two, giving bits, and zero-probability terms contribute zero.[ref]
For Bayesian inference, this compares a prior distribution with the posterior distributions produced by possible observations. An unexpected report can make previously unlikely alternatives plausible, while useful reports reduce uncertainty overall. For lossless source coding, an observation shared by encoder and decoder lets them choose descriptions for the appropriate conditional distribution; sending that observation also has a cost. The example below makes both the saving and that cost explicit.
In A Mathematical Theory of Communication by Claude Shannon (1948), the definition of conditional entropy is already an average over observations, followed by the inequality and its independence condition in section 6, property 6. The phrase “knowledge reduces uncertainty” must be read with that averaging convention.[ref]
For a system coupled to a thermal reservoir at fixed temperature , prepare the forward process in the initial canonical ensemble and the reverse process in the final control parameter's canonical ensemble. Reverse the protocol, assume microscopic reversibility and matching path probability support, and count as work done on the system. With Helmholtz free energy difference and ,
The final forward distribution need not already be in thermal equilibrium. Its reverse preparation is prescribed equilibrium preparation, rather than the actual forward final distribution used in finite trajectory entropy production. Thus the paired path logarithm is dissipated work in thermal units, not automatically the instantaneous total stochastic entropy production at the end of an arbitrary driven protocol. [ref] [ref]
Cross-entropy 2026-10-14
Cross-entropy measures the average logarithmic loss incurred when outcomes follow one probability distribution , but a model assigns probabilities using another probability distribution . For a finite alphabet, write their probability mass functions as and . With base-two logarithms,
The expectation is under the true or stipulated source law , rather than the model . Terms with contribute nothing. If but for any outcome, the cross-entropy is : the model rules out an event that can occur. The result is measured in bits; natural logarithms give nats.
The useful identity is cross-entropy equals entropy plus relative entropy:
The source's information entropy is the baseline uncertainty. The Kullback-Leibler divergence is the extra average cost of a mismatched model, with the true law first and model second. Thus optimizing for a fixed reduces the mismatch, rather than changing the source's own uncertainty. For finite alphabets, the minimum is , attained exactly at .
Take a three-symbol source with . A matched binary prefix code assigns , , , with lengths . A mismatched prefix code instead assigns , , , with lengths , corresponding to . Both prefix codes decode exactly, but the most common symbol is shorter in the matched code. Under the same source ,
The mismatched code costs an extra (1/4) bit per source symbol on average. No information is lost; the penalty is inefficient representation of this source. The mismatch penalty in lossless coding explains when this coding interpretation is exact.
Figure 1.
Two lossless prefix codes have different average lengths for the same source
. Both sets of codewords are prefix codes. The source probabilities are fixed at . Each colored contribution is source probability times codeword length; changing which symbol receives the shortest word increases the total from to bits per source symbol. Details.
Cross-entropy is also useful when evaluating a predictive distribution. A report that places tiny probability on the realized outcome receives a large logarithmic loss, even when it usually predicts the most common outcome correctly. The loss convention is the negative of the reward convention in the logarithmic scoring rule. Its expected loss is uniquely minimized by the correct probability distribution, making it a strictly proper scoring rule. Strictly Proper Scoring Rules, Prediction, and Estimation by Tilmann Gneiting and others treats this connection in §3.1, Example 3; its discussion uses rewards, so the signs are reversed for the losses here.[ref]
I. J. Good's Rational Decisions by I. J. Good appeared in 1952. Its published summary describes a method for encouraging accurate probability estimates and a connection with information theory. Strictly Proper Scoring Rules, Prediction, and Estimation by Tilmann Gneiting and others traces the logarithmic scoring rule at least as far back as this 1952 paper.[ref]
For a parametric statistical model with probability mass function and an independent and identically distributed model, minimizing empirical cross-entropy is maximum likelihood estimation. The logarithm is strictly increasing, so maximizing is equivalent to maximizing . Negating and dividing by gives the displayed minimization. Restricting the model family can prevent the optimum from matching the empirical distribution, and a finite optimizing parameter need not exist. This algebra does not by itself establish accuracy on new data.[ref]
Cumulative hazard function Created 2026-09-24 Updated 2026-10-14
Suppose has an absolutely continuous probability distribution, with survival function . On an interval where , its cumulative hazard is
Here is the hazard function; its integral is dimensionless because the units of rate and time cancel. The identity follows by integrating the derivative of , so mere continuity of the survival function is not enough: the absolute continuity assumption supplies a probability density function. If reaches zero, interpret as . The normalization also matters; an initial probability mass at zero would require an initial term .
Accumulating hazard functions adds on the scale and multiplies survival factors on the scale. For and ,
For instance, a cumulative hazard increment of gives event probability , rather than a probability of . With per year, and . With the increasing hazard function per year when is expressed in years, , so gives . Its coefficient has units of inverse years squared.
Figure 1.
Constant and increasing hazard functions, their cumulative hazards, and their survival functions
. Details.
The constant hazard function produces an exponential distribution; the increasing example is a Weibull distribution. Their survival functions both decrease, although one hazard function stays constant and the other increases. At year ten both have and despite different earlier histories. The accumulation identity is described in Lu Tian's Stanford notes, Section 1.1.
For a discrete hazard at each possible event time , the exact counterpart is . Taking its negative logarithm sums , rather than . Therefore exponentiating a Nelson–Aalen estimator does not give exactly the Kaplan–Meier estimator; small-jump comparison of cumulative hazard estimators quantifies the difference.