Let belong to L2 space, and suppose and almost surely, for two possibly nonnested sigma-algebras. Then almost surely. No independence or inclusion between the sigma-algebras is required.
The identities supply -measurable and -measurable versions of and . The measurable-factor rule for conditional expectation and Cauchy-Schwarz inequality giveExpanding the square shows , and hence the required almost sure equality. Equivalently, each conditional expectation is an orthogonal projection in L2 space, and the two projection identities force equality in the equality case for conditional second moments.
Equality after applying a function need not identify its original input. For instance, on four equally likely outcomes let take and set . Their squares are the same nonconstant random variable, even though and differ everywhere. Injectivity of the function would rule out this loss of information.
Past exam of the mathematics course of the University of Cambridge 2003 iii Paper 29 1 a Solution Created 2026-10-03 Updated 2026-10-14
Write . The conditional expectation is an contraction by the conditional Jensen inequality, so are square-integrable. The defining integral identity for conditional expectation, first with bounded measurable truncations of and then with their limit, givesFor clarity, if , then , and the Cauchy-Schwarz inequality permits the limit . Expanding the square now proves the equality case for conditional second moments:A nonnegative random variable of zero expected value vanishes almost surely. Therefore
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 26 2 3 Solution 2026-10-06
For the real-valued variables here, take a -measurable version of . Since the variables are bounded, the conditional expectation defining identity extends to the bounded -measurable multiplier , givingThe equality case for conditional second moments now givesA nonnegative random variable with zero expectation vanishes with probability one. Thus as an almost sure equality. The same proof works for square-integrable variables; boundedness is more than is needed.
Write and . The two conditional expectation identities supply a -measurable version of and a -measurable version of . Work with those versions, which do not change any almost sure equality. Both lie in L2 space, and the Cauchy-Schwarz inequality makes their product an integrable random variable.
Testing the first conditional expectation identity against , and the second against , givesFor completeness, these tests with unbounded multipliers are valid by first using the bounded truncations and , then passing to the limit with the Cauchy-Schwarz inequality and convergence in L2. Consequently,A nonnegative random variable with zero expected value vanishes almost surely. Therefore almost surely. This is mutual conditional expectation rigidity in L2; it also follows from the equality case for conditional second moments.
For a counterexample to equality of the original random variables, let give probability to each of , set , and use the nonconstant function . Then takes both values and . It is measurable with respect to both generated sigma-algebras, so both required conditional expectation identities hold. Symmetry gives , while neither random variable can be zero. Thus
The L2-bounded martingale convergence theorem states that a martingale with converges both almost surely and with convergence in L2 to a square-integrable random variable. Its hypotheses hold because . Thus there is almost surely with both kinds of convergence. Alternatively, the martingale convergence theorem gives the almost sure convergence, and the bound gives convergence in L2 by the dominated convergence theorem.[ref]
Probability: Theory and Examples (fifth edition) by Rick Durrett. §4.4, Theorem 4.4.6, printed p. 237: the Lp martingale convergence theorem
The calculation of the conditional expectation of the square is especially informative. The martingale property makes the cross term vanish in the square expansion, soSubtracting this from givesTaking expected values and iterating provesBy bounded convergence theorem, . The random variable inside this expected value is nonnegative, so it is zero almost surely; on this forces . Again by bounded convergence theorem, . HenceThis is the Bernoulli polarization martingale with update size . It also has an exact mean squared error: the terminal representation and the equality case for conditional second moments give