# Question 21995: Null Cells Retain Undefined Quotients and Zero Weighted Contributions

[Return to catalogue page 110](https://ocme.evemisslab.com/en/questions/page/110/)

[← Question derivation index](https://ocme.evemisslab.com/en/questions/) · [Original question batch](https://ocme.evemisslab.com/en/practice/batch-20261014-advance-20261109-r04-law-of-total-expectation-foundations/#q-20261014-advance-20261109-r04-law-of-total-expectation-0095)

This teaching derivation has second-context AI mathematical and bilingual semantic review, limited to the model and assumptions stated in this question. It has no human review or new Lean proof and does not promote the original question or MKO to Canonical truth.

R0042-21995 · q-20261014-advance-20261109-r04-law-of-total-expectation-0095



## Original question and givens

Use the complete normalized finite law masses=[1/29, 2/29, 26/29, 0/1], aligned values X=[19, 20, 22, 118] and complete disjoint partition=[[0, 1, 2], [3]] covering every atom. Values are integrable in this finite model. Cell order and atom order are retained; independence is not required. Conditional quotients require strictly positive cell mass. Give (cell_rows, positive_cell_weighted_sum, mean, equal, null_cell_division_claim, boundary).


- G001 — Use the complete normalized finite law masses=[1/29, 2/29, 26/29, 0/1], aligned values X=[19, 20, 22, 118] and complete disjoint partition=[[0, 1, 2], [3]] covering every atom. Values are integrable in this finite model. Cell order and atom order are retained; independence is not required. Conditional quotients require strictly positive cell mass. Give (cell_rows, positive_cell_weighted_sum, mean, equal, null_cell_division_claim, boundary).





## Definition and scope

Use the original question domain, assumptions and cited MKO definitions. This item has second-context mathematical and bilingual review, with the model, answer and every arithmetic step independently recomputed from the original parameters; the source question remains a candidate.


- [mko-law-of-total-expectation](https://ocme.evemisslab.com/en/mko/mko-law-of-total-expectation/)





## Step-by-step derivation

S001 · impliesBefore

source operation=totalexp-zero-mass-boundary;original snapshot and mathematics retained

After

explicit ordered source output fields=[cell_rows, positive_cell_weighted_sum, mean, equal, null_cell_division_claim, boundary]

Conditions: none

Keep the original historical interface marker while listing ordered source fields without JavaScript.Tags are not additional evidence;fixed No markers retain their source claim scope.

Step identifiers and dependenciesRule: source_ordered_interface_explicit_without_javascript · Uses: G001





S002 · calculationBefore

Total expectation complete original mass := sum(1/29, 2/29, 26/29, 0)

After

Total expectation complete original mass = 1

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S001





S003 · calculationBefore

Total expectation original atom0 weighted X := mul(1/29, 19)

After

Total expectation original atom0 weighted X = 19/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S002





S004 · calculationBefore

Total expectation original atom1 weighted X := mul(2/29, 20)

After

Total expectation original atom1 weighted X = 40/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S003





S005 · calculationBefore

Total expectation original atom2 weighted X := mul(26/29, 22)

After

Total expectation original atom2 weighted X = 572/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S004





S006 · calculationBefore

Total expectation original atom3 weighted X := mul(0, 118)

After

Total expectation original atom3 weighted X = 0

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S005





S007 · calculationBefore

Total expectation full original mean := sum(19/29, 40/29, 572/29, 0)

After

Total expectation full original mean = 631/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S006





S008 · impliesBefore

ORIGINAL masses=[1/29, 2/29, 26/29, 0],SIGNED values X=[19, 20, 22, 118];ORIGINAL cell order=[[0, 1, 2], [3]]

After

flattened original atom labels=[0, 1, 2, 3] cover EVERY atom exactly ONCE including null atoms;total mass=1;integrable finite mean=631/29;NO independence premise

Conditions: none

The partition covers all original atoms,including null atoms,exactly once.Keep original cell order and source-normalized internal labels.X may be signed and is integrable in this finite model;independence is not required.

Step identifiers and dependenciesRule: totalexp_same_law_complete_disjoint_partition_all_atoms · Uses: G001, S007





S009 · calculationBefore

Total expectation cell0 mass := sum(1/29, 2/29, 26/29)

After

Total expectation cell0 mass = 1

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S008





S010 · calculationBefore

Total expectation cell0 numerator := sum(19/29, 40/29, 572/29)

After

Total expectation cell0 numerator = 631/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S009





S011 · calculationBefore

Total expectation cell0 positive-mass conditional mean := div(631/29, 1)

After

Total expectation cell0 positive-mass conditional mean = 631/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S010





S012 · impliesBefore

ORIGINAL cell index=0,atom labels=[0, 1, 2];mass=1;weighted numerator=631/29

After

conditional quotient=631/29;positive denominator qualifies division

Conditions: none

Divide only for positive cell mass.In a null cell,all nonnegative atom masses are0,so the numerator is0 but0/0 remains undefined.Keep null rather than an asserted quotient0,including empty cells.

Step identifiers and dependenciesRule: totalexp_cell_quotient_positive_mass_only_null_preserved · Uses: G001, S011





S013 · calculationBefore

Total expectation cell1 mass := sum(0)

After

Total expectation cell1 mass = 0

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S012





S014 · calculationBefore

Total expectation cell1 numerator := sum(0)

After

Total expectation cell1 numerator = 0

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S013





S015 · impliesBefore

ORIGINAL cell index=1,atom labels=[3];mass=0;weighted numerator=0

After

conditional quotient=null;null cell:every nonnegative atom mass is0,numerator0;NO division performed

Conditions: none

Divide only for positive cell mass.In a null cell,all nonnegative atom masses are0,so the numerator is0 but0/0 remains undefined.Keep null rather than an asserted quotient0,including empty cells.

Step identifiers and dependenciesRule: totalexp_cell_quotient_positive_mass_only_null_preserved · Uses: G001, S014





S016 · calculationBefore

Total expectation positive cell0 weighted mean := mul(1, 631/29)

After

Total expectation positive cell0 weighted mean = 631/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S015





S017 · calculationBefore

Total expectation sum positive-cell weighted means := sum(631/29)

After

Total expectation sum positive-cell weighted means = 631/29

Conditions: none

Substitute the original roles,order and conditions term by term with exact arithmetic,not floating-point approximation.

Step identifiers and dependenciesRule: exact_rational_arithmetic · Uses: G001, S016





S018 · impliesBefore

ALL original cell rows[index,atoms,mass,conditional_or_null,numerator]=[[0, [0, 1, 2], 1, 631/29, 631/29], [1, [3], 0, null, 0]]

After

positive-cell weighted sum=631/29;ORIGINAL global mean=631/29;equal=Yes;disjoint complete cells regroup EVERY original p_i*X_i exactly ONCE,null contributions0

Conditions: none

Each positive mass times its conditional mean recovers its numerator;null cells contribute0.Disjoint complete cells then regroup every original weighted term exactly once.This proves the finite identity,not an unweighted average or an accidental numerical equality.

Step identifiers and dependenciesRule: totalexp_regroup_complete_partition_general_identity · Uses: G001, S017





S019 · impliesBefore

ACTUAL null cells=[1];positive weighted sum=631/29;mean=631/29

After

null_cell_division_claim fixed No;undefined cell quotients remain null,while the weighted total-expectation identity still holds

Conditions: none

The final No rejects null-cell division,not the identity.A conditional-expectation version may choose a value on a null cell,but not as a uniquely computed0/0 quotient.

Step identifiers and dependenciesRule: totalexp_null_division_nonclaim_not_tower_failure · Uses: G001, S018









## Reverse checks


- S019 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S018 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S017 · premise_and_result_audit — Recompute Total expectation sum positive-cell weighted means with exact rational arithmetic, not rounded decimals.
- S016 · premise_and_result_audit — Recompute Total expectation positive cell0 weighted mean with exact rational arithmetic, not rounded decimals.
- S015 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S014 · premise_and_result_audit — Recompute Total expectation cell1 numerator with exact rational arithmetic, not rounded decimals.
- S013 · premise_and_result_audit — Recompute Total expectation cell1 mass with exact rational arithmetic, not rounded decimals.
- S012 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S011 · premise_and_result_audit — Recompute Total expectation cell0 positive-mass conditional mean with exact rational arithmetic, not rounded decimals.
- S010 · premise_and_result_audit — Recompute Total expectation cell0 numerator with exact rational arithmetic, not rounded decimals.
- S009 · premise_and_result_audit — Recompute Total expectation cell0 mass with exact rational arithmetic, not rounded decimals.
- S008 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.
- S007 · premise_and_result_audit — Recompute Total expectation full original mean with exact rational arithmetic, not rounded decimals.
- S006 · premise_and_result_audit — Recompute Total expectation original atom3 weighted X with exact rational arithmetic, not rounded decimals.
- S005 · premise_and_result_audit — Recompute Total expectation original atom2 weighted X with exact rational arithmetic, not rounded decimals.
- S004 · premise_and_result_audit — Recompute Total expectation original atom1 weighted X with exact rational arithmetic, not rounded decimals.
- S003 · premise_and_result_audit — Recompute Total expectation original atom0 weighted X with exact rational arithmetic, not rounded decimals.
- S002 · premise_and_result_audit — Recompute Total expectation complete original mass with exact rational arithmetic, not rounded decimals.
- S001 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.





## Result

([[0, 1, 631/29], [1, 0, null]], 631/29, 631/29, Yes, No, zero_mass_conditional_mean_not_divided_and_weighted_contribution_zero)

The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.





## This question review and source binding

Review date: 2026-10-26

Original questions, answers, step expressions, numeric ASTs and historical records are retained. Source candidate labels remain historical and are not overwritten as formal proof.

Source hashes and review receipts
- input commit: 0f7be61e2c22317a4075561dc822c87d881a50db
- original question SHA-256: ff5dac96fafb73535d3e102147dbd66694ea757739c6692c006aae9215240db8
- candidate record SHA-256: 0562bf3c71ec8c2bb42705bf00c0b1eb8506a3f404770056e919437555d4fc3b
- semantic review receipt SHA-256: dd44555041dfbb6fe9936aa00b9a5f8c5982c2784ef61dd0cbd5d1a303a49c1a
- question-first witness SHA-256: 9a6011263f6ac53b9a1fd57addf2f3e2f6088b54802c539f332d689480dc2d17
- Lean: NOT_RUN · human review: NOT_PERFORMED

[Same-source full JSON](https://ocme.evemisslab.com/data/question-derivations/questions/q-20261014-advance-20261109-r04-law-of-total-expectation-0095.json)




