Goal and scope
On Ω={0,1,2,3,4} with masses 1/8, 3/8, 1/4, 1/4, 0 and X taking the values 4, 0, 2, 6, 10 in order, let G be generated by the partition {0,1}, {2,3}, {4}. From the two defining conditions of conditional expectation (G-measurable, same integral on every event of G), find all versions of E[X|G]: prove they must equal 1 and 4 on the two positive-mass blocks and may take any value on the zero-mass block {4} (determined only almost surely), and explain why pointwise conditioning, checking only the total expectation, and the unweighted mean are all wrong.
Works inside the MKO's scope: the complete finite outcomes, exact rational masses, X values and conditioning partition all belong to one probability space (assumption a1); the main computation uses positive-mass blocks, and versions are unique almost surely, while the zero-mass block retains pointwise freedom without a forced value (assumption a2). It does not treat existence of conditional expectation in general (non-discrete) spaces, filtrations or martingales, and does not change the canonical MKO or its English edition.
Main derivation
S01 · equivalent
Before
\mathcal{G}=\sigma(B_1,B_2,B_3)After
\mathcal{G}=\{\varnothing,B_1,B_2,B_3,B_1\cup B_2,B_1\cup B_3,B_2\cup B_3,\Omega\}Conditions: none
Rule: sigma_partition · Uses: G2, sigma_partition
Leaf basis: sigma_partition + set_operations_def + numeric_evaluation
The σ-algebra generated by a partition consists exactly of the unions of blocks. Each of the three blocks is either included or not, giving 2^3=8 events (N9), listed on the right. The event {0} is not in G: it is not a union of blocks.
S02 · equivalent
Before
Y\ \mathcal{G}\text{-measurable}After
Y=c_1\ \text{on}\ B_1,\ Y=c_2\ \text{on}\ B_2,\ Y=c_3\ \text{on}\ B_3Conditions: none
Rule: L_meas_const · Uses: S01, G3
Leaf basis: meas_def + sigma_partition + set_operations_def
By Lemma L_meas_const (proved in S02.1 and S02.2), condition (i) says exactly that Y is constant on each block; call the values c_1, c_2, c_3. Measurability is a set-level condition independent of the masses, so Y must be constant on the zero-mass block B_3 as well.
S03 · equivalent
Before
\forall A\in\mathcal{G}:\ E[Y\mathbf{1}_A]=E[X\mathbf{1}_A]After
\forall j:\ E[Y\mathbf{1}_{B_j}]=E[X\mathbf{1}_{B_j}]Conditions: none
Rule: L_block_reduce · Uses: S01, G3
Leaf basis: finite_sum_rules + sigma_partition + forall_elim
By Lemma L_block_reduce (proved in S03.1 and S03.2), condition (ii) on the 8 events reduces to the condition on the 3 blocks. Note that 3 conditions remain, not 1: checking only A=Ω (the total expectation) is not enough.
S04 · equivalent
Before
E[Y\mathbf{1}_{B}]=E[X\mathbf{1}_{B}],\ Y=c\ \text{on}\ B,\ P(B)>0After
c=\frac{E[X\mathbf{1}_B]}{P(B)}Conditions: P(B)>0
Rule: mul_inverse_nonzero · Uses: S02, S03, G3
Leaf basis: distributive + finite_sum_rules + mul_inverse_nonzero
Y equals c on B, so E[Y𝟏_B]=Σ_{ω∈B} c·P({ω})=c·P(B) (distributivity). The condition becomes c·P(B)=E[X𝟏_B]. If P(B)>0, multiplying both sides by 1/P(B) gives c=E[X𝟏_B]/P(B): the mass-weighted mean over the block. If P(B)=0 no division is possible; see S07.
S05 · implies
Before
B_1=\{0,1\}After
P(B_1)=\tfrac12,\ E[X\mathbf{1}_{B_1}]=\tfrac12,\ c_1=1Conditions: P(B_1)>0
Rule: numeric_evaluation · Uses: S04, G1, G2
Leaf basis: numeric_evaluation + frac_rules + prob_axioms
P(B_1)=1/8+3/8=1/2 (N1); E[X𝟏_{B_1}]=4·1/8+0·3/8=1/2 (N2); P(B_1)>0, so by S04, c_1=(1/2)/(1/2)=1 (N3).
S06 · implies
Before
B_2=\{2,3\}After
P(B_2)=\tfrac12,\ E[X\mathbf{1}_{B_2}]=2,\ c_2=4Conditions: P(B_2)>0
Rule: numeric_evaluation · Uses: S04, G1, G2
Leaf basis: numeric_evaluation + frac_rules + prob_axioms
P(B_2)=1/4+1/4=1/2; E[X𝟏_{B_2}]=2·1/4+6·1/4=2 (N4); by S04, c_2=2/(1/2)=4 (N5).
S07 · implies
Before
B_3=\{4\},\ P(B_3)=0After
c_3\cdot 0=10\cdot 0\ \text{for every}\ c_3\in\mathbb{R}Conditions: P(B_3)=0
Rule: mul_zero · Uses: S02, S03, G1, G2
Leaf basis: mul_zero + finite_sum_rules
On the zero-mass block, E[Y𝟏_{B_3}]=c_3·0=0 and E[X𝟏_{B_3}]=10·0=0, so condition (ii) holds for every real c_3. No division is performed: E[X𝟏_{B_3}]/P(B_3)=0/0 is undefined. c_3 only has to make Y constant on B_3 (S02); its value is unrestricted.
S08 · equivalent
Before
c_1=1,\ c_2=4,\ c_3\ \text{arbitrary}After
E[X|\mathcal{G}]=Y_c,\ Y_c=\begin{cases}1&\text{on }B_1\\4&\text{on }B_2\\c&\text{on }B_3\end{cases},\ c\in\mathbb{R}Conditions: none
Rule: mko_condexp_def · Uses: S02, S03, S04, S05, S06, S07
Leaf basis: and_intro_elim + iff_intro + def_unfold
By S02 and S03, Y is a version exactly when it is constant on the blocks and all three block conditions hold; by S05 and S06 (through the equivalence of S04), c_1=1 and c_2=4 are the only possibilities; by S07, c_3 is arbitrary. So the versions are exactly the Y_c with c∈ℝ. Any two versions can differ only on B_3, and P(B_3)=0, so they agree almost surely: E[X|G] is determined exactly on the positive-mass blocks and only almost surely on the zero-mass block.
S09 · implies
Before
A=B_1\cup B_2,\ A=\Omega
After
E[Y_c\mathbf{1}_A]=E[X\mathbf{1}_A]=\tfrac52Conditions: none
Rule: finite_sum_rules · Uses: S08, S01, G1
Leaf basis: finite_sum_rules + numeric_evaluation
Backward check on two non-block events: for A=B_1∪B_2, E[Y_c𝟏_A]=1·1/2+4·1/2=5/2 and E[X𝟏_A]=4·1/8+0·3/8+2·1/4+6·1/4=5/2; for A=Ω, the contributions c·0=0 and 10·0=0 from B_3 are added and both sides stay 5/2 (N6). This agrees with the reduction of S03, but it is a check on two events only; the proof is S03.
S10 · implies
Before
Z=X
After
Z\ \text{not}\ \mathcal{G}\text{-measurable}Conditions: none
Rule: L_meas_const · Uses: S02, G1
Leaf basis: meas_def + sigma_partition
Contrast (pointwise conditioning): take X itself as the answer. X(0)=4≠0=X(1), while 0 and 1 lie in the same block B_1, so X is not constant on B_1; by L_meas_const, X is not G-measurable and (i) fails. G knows only which block occurred, not the exact outcome inside it.
S11 · implies
Before
W\equiv\tfrac52
After
E[W]=E[X]\ \text{but}\ E[W\mathbf{1}_{B_1}]=\tfrac54\neq\tfrac12Conditions: none
Rule: numeric_evaluation · Uses: S03, S05, G1
Leaf basis: numeric_evaluation + forall_elim
Contrast (checking only the total expectation): the constant W≡5/2 is G-measurable and E[W]=5/2=E[X], so the condition for A=Ω holds. But E[W𝟏_{B_1}]=(5/2)(1/2)=5/4 while E[X𝟏_{B_1}]=1/2 (N7), so (ii) fails on B_1 and W is not E[X|G].
S12 · implies
Before
c_1'=\tfrac{4+0}{2}=2After
E[c_1'\mathbf{1}_{B_1}]=1\neq\tfrac12Conditions: none
Rule: numeric_evaluation · Uses: S04, S05, G1
Leaf basis: numeric_evaluation + frac_rules
Contrast (unweighted mean): on B_1 take the plain average of the X values, (4+0)/2=2. Then 2·P(B_1)=1≠1/2=E[X𝟏_{B_1}] (N8), so the condition fails. Because outcome 1 has mass 3/8, larger than the mass 1/8 of outcome 0, the correct weighted mean 1 lies closer to X(1)=0 than 2 does.
S13 · implies
Before
\text{S08, S10 to S12}After
E[X|\mathcal{G}]=1\ \text{on}\ B_1,\ 4\ \text{on}\ B_2,\ \text{arbitrary on the null block}\ B_3Conditions: none
Rule: mko_condexp_def · Uses: S08, S10, S11, S12
Leaf basis: and_intro_elim
The versions of E[X|G] are exactly the Y_c: 1 on {0,1}, 4 on {2,3} and an arbitrary constant c on the zero-mass {4}; all versions agree almost surely. The pointwise X, the constant overall mean and the unweighted mean are not conditional expectations.
Substeps and lemmas
S02.1 · implies
Before
Y=c_j\ \text{on}\ B_j\ (j=1,2,3)After
Y^{-1}(S)=\bigcup_{j:\,c_j\in S}B_j\in\mathcal{G}Conditions: none
Rule: meas_def · Uses: meas_def, sigma_partition
Leaf basis: image_preimage_def + sigma_partition + set_operations_def
(⇐) If Y equals c_j throughout B_j, then for any set S of reals, Y^{-1}(S) is exactly the union of the blocks with c_j∈S, so it lies in G and Y is G-measurable.
S02.2 · implies
Before
Y\ \mathcal{G}\text{-measurable},\ \omega\in B_j,\ y=Y(\omega)After
Y=y\ \text{on all of}\ B_jConditions: none
Rule: meas_def · Uses: meas_def, sigma_partition
Leaf basis: image_preimage_def + sigma_partition + subset_def
(⇒) Y^{-1}({y})∈G, so it is a union of blocks; it contains ω, and ω belongs only to the block B_j, so B_j is one of the blocks in that union and B_j⊆Y^{-1}({y}), i.e. Y equals y throughout B_j. S02.1 and S02.2 together prove Lemma L_meas_const.
S03.1 · implies
Before
\forall A\in\mathcal{G}:\ E[Y\mathbf{1}_A]=E[X\mathbf{1}_A]After
\forall j:\ E[Y\mathbf{1}_{B_j}]=E[X\mathbf{1}_{B_j}]Conditions: none
Rule: forall_elim · Uses: S01
Leaf basis: forall_elim
(⇒) Each block B_j belongs to G (S01), so instances of the universal condition give the equalities on the blocks.
S03.2 · implies
Before
\forall j:\ E[Y\mathbf{1}_{B_j}]=E[X\mathbf{1}_{B_j}]After
\forall A\in\mathcal{G}:\ E[Y\mathbf{1}_A]=E[X\mathbf{1}_A]Conditions: none
Rule: finite_sum_rules · Uses: S01, finite_sum_rules
Leaf basis: finite_sum_rules + set_operations_def + sigma_partition
(⇐) Any A∈G is a union of disjoint blocks, so the sum over ω∈A splits by blocks: E[Z𝟏_A]=Σ_{B_j⊆A} E[Z𝟏_{B_j}], for Z=X and for Z=Y; the right sides agree term by term, so the left sides agree. For A=∅ both sides are the empty sum 0. S03.1 and S03.2 together prove Lemma L_block_reduce.