Goal and scope
(1) Joint table J₁: X∈{0,1}, Y∈{0,1,2}, P(0,0)=1/12, P(0,1)=1/12, P(0,2)=1/6, P(1,0)=1/6, P(1,1)=1/6, P(1,2)=1/3. Aggregate both marginals from the joint table, check the product equation at all 6 value pairs, and decide whether X and Y are independent; also prove that independence implies independence of any coordinate events {X∈S} and {Y∈T} and E[XY]=E[X]E[Y]. (2) Joint table J₂: X uniform on {−1,0,1} and Y=X². Prove Cov(X,Y)=0 although X and Y are not independent. (3) Use joint table J₃ to show that checking a single value pair is not enough.
Works inside the MKO's scope: the complete finite joint support and exact rational masses belong to one probability model (assumption a1); mainly two variables are handled, and three or more variables appear only in a negative control showing that pairwise independence does not give mutual independence (assumption a2). Zero covariance serves only as a necessary consequence, never as a converse certificate. Continuous distributions and IID sequences (the next node) are not treated, and the canonical MKO and its English edition are not changed.
Main derivation
S01 · definition
Before
J_1:\ p(x,y)\ge0
After
\sum_{(x,y)}p(x,y)=\tfrac1{12}+\tfrac1{12}+\tfrac16+\tfrac16+\tfrac16+\tfrac13=1Conditions: none
Rule: mko_joint_def · Uses: G1, mko_joint_def
Leaf basis: mko_joint_def + numeric_evaluation
First confirm that J₁ is the complete joint table of one probability model: 6 distinct value pairs, all masses nonnegative, and with denominator 12 the total is 1+1+2+2+2+4=12, that is 1. Marginals and products are computed from this table from here on.
S02 · equivalent
Before
P(X=0)=\sum_{y}p(0,y),\ P(X=1)=\sum_{y}p(1,y)After
P(X=0)=\tfrac1{12}+\tfrac1{12}+\tfrac16=\tfrac13,\ \ P(X=1)=\tfrac16+\tfrac16+\tfrac13=\tfrac23Conditions: none
Rule: prob_axioms · Uses: S01, prob_axioms
Leaf basis: prob_axioms + frac_rules + numeric_evaluation
The event {X=x} is the disjoint union of the 3 pair events {X=x,Y=y}, so by additivity sum that row (the MKO: first aggregate the marginals from the joint table).
S03 · equivalent
Before
P(Y=y)=\sum_{x}p(x,y)After
P(Y=0)=\tfrac1{12}+\tfrac16=\tfrac14,\ P(Y=1)=\tfrac1{12}+\tfrac16=\tfrac14,\ P(Y=2)=\tfrac16+\tfrac13=\tfrac12Conditions: none
Rule: prob_axioms · Uses: S01, prob_axioms
Leaf basis: prob_axioms + frac_rules + numeric_evaluation
Likewise sum each column. The three marginals add to 1/4+1/4+1/2=1, a consistency check.
S04 · definition
Before
X,Y\ \text{independent}After
\forall x\in\{0,1\}\ \forall y\in\{0,1,2\}:\ p(x,y)=P(X=x)P(Y=y)Conditions: none
Rule: mko_rv_indep_def · Uses: mko_rv_indep_def
Leaf basis: mko_rv_indep_def + def_unfold
By the MKO, independence requires every value pair to pass the product equation; the product of the value sets has 2·3=6 pairs, and all must be checked, including any pair of mass 0.
S05 · implies
Before
x=0:\ P(X=0)=\tfrac13
After
\tfrac13\cdot\tfrac14=\tfrac1{12}=p(0,0),\ \tfrac13\cdot\tfrac14=\tfrac1{12}=p(0,1),\ \tfrac13\cdot\tfrac12=\tfrac16=p(0,2)Conditions: none
Rule: frac_rules · Uses: S02, S03, G1
Leaf basis: frac_rules + numeric_evaluation
The three pairs of the first row: the products are 1/12, 1/12 and 1/6, exactly equal to the masses in G1.
S06 · implies
Before
x=1:\ P(X=1)=\tfrac23
After
\tfrac23\cdot\tfrac14=\tfrac16=p(1,0),\ \tfrac23\cdot\tfrac14=\tfrac16=p(1,1),\ \tfrac23\cdot\tfrac12=\tfrac13=p(1,2)
Conditions: none
Rule: frac_rules · Uses: S02, S03, G1
Leaf basis: frac_rules + numeric_evaluation
The three pairs of the second row: the products are 1/6, 1/6 and 1/3, again equal to the masses.
S07 · implies
Before
6\ \text{of}\ 6\ \text{value pairs factor}After
X,Y\ \text{independent under}\ J_1Conditions: none
Rule: case_analysis · Uses: S04, S05, S06
Leaf basis: case_analysis + mko_rv_indep_def
S05 and S06 cover all 6 pairs of {0,1}×{0,1,2} (the cases x=0 and x=1 are exhaustive) and every pair passes, so by the definition in S04, X and Y are independent. This is an exhaustive check of the complete finite table, not a sample.
S08 · implies
Before
S=\{1\},\ T=\{1,2\}After
P(X\in S,Y\in T)=\tfrac16+\tfrac13=\tfrac12=\tfrac23\cdot\tfrac34=P(X\in S)P(Y\in T)
Conditions: none
Rule: L_rect · Uses: S07
Leaf basis: finite_sum_rules + distributive + prob_axioms
The MKO says independence is equivalent to independence of all inverse images of value events. By Lemma L_rect, the product equation for value pairs implies it for every rectangle event. Example: S={1}, T={1,2}; the left side is p(1,1)+p(1,2)=1/2 and the right side (2/3)(1/4+1/2)=(2/3)(3/4)=1/2. The lemma is proved in sub-steps S08.1 and S08.2.
S09 · implies
Before
X,Y\ \text{independent}After
E[XY]=E[X]E[Y],\ \ \operatorname{Cov}(X,Y)=0Conditions: none
Rule: L_EXY · Uses: S07, expectation_def
Leaf basis: finite_sum_rules + distributive + expectation_def
The MKO notes that independence implies zero covariance (second moments of finite-valued variables are automatically finite). By Lemma L_EXY, the pair product equation gives E[XY]=E[X]E[Y]. The lemma is proved in sub-steps S09.1 and S09.2. This is a necessary consequence, not a sufficient condition (see S12).
S10 · implies
Before
E[X]=\tfrac23,\ E[Y]=0\cdot\tfrac14+1\cdot\tfrac14+2\cdot\tfrac12=\tfrac54
After
E[XY]=1\cdot1\cdot\tfrac16+1\cdot2\cdot\tfrac13=\tfrac56=\tfrac23\cdot\tfrac54
Conditions: none
Rule: numeric_evaluation · Uses: S02, S03, S09, G1
Leaf basis: numeric_evaluation + expectation_def
Direct check of S09: only the pairs with x=1 and y≠0 contribute to E[XY], giving 1/6+2/3=5/6; E[X]E[Y]=(2/3)(5/4)=10/12=5/6. They agree, Cov=0, as the lemma predicts.
S11 · implies
Before
J_2:\ P(X=x)=\tfrac13\ (x=-1,0,1),\ P(Y=0)=\tfrac13,\ P(Y=1)=\tfrac23
After
E[X]=0,\ E[XY]=(-1)(1)\tfrac13+0+(1)(1)\tfrac13=0\ \Rightarrow\ \operatorname{Cov}(X,Y)=0-0\cdot\tfrac23=0Conditions: none
Rule: expectation_def · Uses: G2, expectation_def, prob_axioms
Leaf basis: expectation_def + prob_axioms + numeric_evaluation
Marginals of J₂: X takes each of its three values with probability 1/3; Y=0 comes only from (0,0), with probability 1/3; Y=1 comes from (−1,1) and (1,1), with probability 2/3. E[X]=(−1+0+1)/3=0; E[XY] has only the two nonzero terms −1/3 and 1/3, which sum to 0. Hence Cov(X,Y)=0.
S12 · implies
Before
p(0,1)=0,\ P(X=0)P(Y=1)=\tfrac13\cdot\tfrac23=\tfrac29
After
0\neq\tfrac29\ \Rightarrow\ X,Y\ \text{not independent, although}\ \operatorname{Cov}=0Conditions: none
Rule: quantifier_negation · Uses: S11, G2, mko_rv_indep_def
Leaf basis: quantifier_negation + mko_rv_indep_def + numeric_evaluation
The pair (0,1) cannot occur (X=0 forces Y=0), so its mass is 0, but the product is 2/9≠0. The product equation fails at one value pair, so X and Y are not independent, although S11 gives Cov=0. Zero covariance therefore cannot certify independence, the misconception the MKO names.
S13 · implies
Before
J_3:\ P(X=0)=\tfrac12,\ P(Y=0)=\tfrac12,\ P(Y=1)=\tfrac14
After
p(0,0)=\tfrac14=\tfrac12\cdot\tfrac12\ \text{but}\ p(0,1)=\tfrac14\neq\tfrac18=\tfrac12\cdot\tfrac14Conditions: none
Rule: quantifier_negation · Uses: G3, prob_axioms, mko_rv_indep_def
Leaf basis: quantifier_negation + prob_axioms + numeric_evaluation
Marginals of J₃: P(X=0)=1/4+1/4+0=1/2 and P(X=1)=1/2; P(Y=0)=1/2, P(Y=1)=1/4, P(Y=2)=1/4. The pair (0,0) passes the product equation, so checking only it would wrongly suggest independence; but (0,1) fails: 1/4≠1/8. So under J₃, X and Y are not independent, and every value pair must be checked.
S14 · implies
Before
\text{S07},\ \text{S08},\ \text{S09},\ \text{S12},\ \text{S13}After
J_1:\ X\perp Y;\ J_2:\ \operatorname{Cov}=0,\ X\not\perp Y;\ J_3:\ X\not\perp YConditions: none
Rule: and_intro_elim · Uses: S07, S08, S09, S10, S12, S13
Leaf basis: and_intro_elim
Combine: all 6 value pairs of J₁ pass, so X and Y are independent, which implies independence of rectangle events and zero covariance; J₂ has zero covariance but is not independent; J₃ passes one value pair but is not independent.
Substeps and lemmas
S08.1 · equivalent
Before
P(X\in S,Y\in T)
After
\sum_{x\in S}\sum_{y\in T}p(x,y)Conditions: none
Rule: prob_axioms · Uses: prob_axioms, mko_joint_def
Leaf basis: prob_axioms + mko_joint_def
The event {X∈S, Y∈T} is the disjoint union of the pair events {X=x,Y=y} with x∈S and y∈T, so by additivity its probability is the sum of these masses.
S08.2 · implies
Before
\sum_{x\in S}\sum_{y\in T}P(X=x)P(Y=y)After
\Big(\sum_{x\in S}P(X=x)\Big)\Big(\sum_{y\in T}P(Y=y)\Big)=P(X\in S)P(Y\in T)Conditions: p(x,y)=P(X=x)P(Y=y)\ \forall x,y
Rule: distributive · Uses: S08.1, finite_sum_rules, distributive
Leaf basis: finite_sum_rules + distributive + prob_axioms
Substitute the hypothesis p(x,y)=P(X=x)P(Y=y); the inner sum pulls out P(X=x), which does not depend on y, and the outer sum pulls out Σ_y P(Y=y) (distributivity of finite sums); by additivity the two sums are P(X∈S) and P(Y∈T). S08.1 and S08.2 together prove Lemma L_rect.
S09.1 · implies
Before
E[XY]=\sum_{x}\sum_{y}xy\,p(x,y)After
E[XY]=\sum_{x}\sum_{y}\big(xP(X=x)\big)\big(yP(Y=y)\big)Conditions: p(x,y)=P(X=x)P(Y=y)\ \forall x,y
Rule: expectation_def · Uses: expectation_def
Leaf basis: expectation_def + mul_comm + mul_assoc
By the definition of expectation, sum over all value pairs; then replace each p(x,y) by P(X=x)P(Y=y) and rearrange each term as (xP(X=x))(yP(Y=y)) by commutativity and associativity.
S09.2 · equivalent
Before
\sum_{x}\sum_{y}\big(xP(X=x)\big)\big(yP(Y=y)\big)After
\Big(\sum_{x}xP(X=x)\Big)\Big(\sum_{y}yP(Y=y)\Big)=E[X]E[Y]Conditions: none
Rule: finite_sum_rules · Uses: S09.1, finite_sum_rules
Leaf basis: finite_sum_rules + distributive + expectation_def
Distributivity of finite double sums factors it into the product of two single sums, which are E[X] and E[Y]. So Cov=E[XY]−E[X]E[Y]=0. S09.1 and S09.2 together prove Lemma L_EXY.