S001 · calculation
Before
total mass numerator := sum(1, 1)
After
total mass numerator = 2
Conditions: none
Nonnegative masses must sum to D to give total probability1.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001
Explore related knowledge and questions →
← Question derivation index · Original question batch
R0008-04577 · q-20261008-advance-20261010-r06-variance-0027
S={0,…,1}, F=P(S), masses=[1, 1], D=2, and w_i=mass_i/D. Masses are nonnegative and sum exactly to D; uniform weights are not assumed. X=[-1, 1] in index order. Give (E[X²], (E[X])²), distinguishing the two expressions. Use exact reduced fractions with positive denominators, retaining /1 for integers.
G001 — S={0,…,1}, F=P(S), masses=[1, 1], D=2, and w_i=mass_i/D. Masses are nonnegative and sum exactly to D; uniform weights are not assumed. X=[-1, 1] in index order. Give (E[X²], (E[X])²), distinguishing the two expressions. Use exact reduced fractions with positive denominators, retaining /1 for integers.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.
Before
total mass numerator := sum(1, 1)
After
total mass numerator = 2
Conditions: none
Nonnegative masses must sum to D to give total probability1.
Rule: exact_rational_arithmetic · Uses: G001
Before
probability weight0 := div(1, 2)
After
probability weight0 = 1/2
Conditions: none
Divide the indexed mass by the common positive denominator D.
Rule: exact_rational_arithmetic · Uses: G001, S001
Before
probability weight1 := div(1, 2)
After
probability weight1 = 1/2
Conditions: none
Divide the indexed mass by the common positive denominator D.
Rule: exact_rational_arithmetic · Uses: G001, S002
Before
values=[-1, 1];weights=[1/2, 1/2]
After
known finite probability law,not a sampled estimate
Conditions: none
This is the complete normalized probability law,so variance uses its probability weights,not an n−1 sample estimate.Retain original indices of zero-mass outcomes.
Rule: probability_variance_scope · Uses: G001, S003
Before
target variable weighted value0 := mul(1/2, -1)
After
target variable weighted value0 = -1/2
Conditions: none
Multiply aligned probabilities and values,retaining negative values and zero weights exactly.
Rule: exact_rational_arithmetic · Uses: G001, S004
Before
target variable weighted value1 := mul(1/2, 1)
After
target variable weighted value1 = 1/2
Conditions: none
Multiply aligned probabilities and values,retaining negative values and zero weights exactly.
Rule: exact_rational_arithmetic · Uses: G001, S005
Before
target variable mean := sum(-1/2, 1/2)
After
target variable mean = 0
Conditions: none
Add every weighted term to obtain the exact mean.
Rule: exact_rational_arithmetic · Uses: G001, S006
Before
pointwise square0 := square(-1)
After
pointwise square0 = 1
Conditions: none
The second moment squares each point value before weighting.
Rule: exact_rational_arithmetic · Uses: G001, S007
Before
pointwise square1 := square(1)
After
pointwise square1 = 1
Conditions: none
The second moment squares each point value before weighting.
Rule: exact_rational_arithmetic · Uses: G001, S008
Before
squared variable weighted value0 := mul(1/2, 1)
After
squared variable weighted value0 = 1/2
Conditions: none
Multiply aligned probabilities and values,retaining negative values and zero weights exactly.
Rule: exact_rational_arithmetic · Uses: G001, S009
Before
squared variable weighted value1 := mul(1/2, 1)
After
squared variable weighted value1 = 1/2
Conditions: none
Multiply aligned probabilities and values,retaining negative values and zero weights exactly.
Rule: exact_rational_arithmetic · Uses: G001, S010
Before
squared variable mean := sum(1/2, 1/2)
After
squared variable mean = 1
Conditions: none
Add every weighted term to obtain the exact mean.
Rule: exact_rational_arithmetic · Uses: G001, S011
Before
mean squared := square(0)
After
mean squared = 0
Conditions: none
The squared mean instead averages first and then squares;the order differs.
Rule: exact_rational_arithmetic · Uses: G001, S012
Before
E[X²]=1;(E[X])²=0
After
Var(X)=E[X²]−(E[X])² under this finite law
Conditions: none
These two values are distinct operations;their difference is the variance of the complete law.Report them in the requested order without a sample correction.
Rule: second_moment_vs_squared_mean · Uses: G001, S013
S014 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.S013 · premise_and_result_audit — Recompute mean squared with exact rational arithmetic, not rounded decimals.S012 · premise_and_result_audit — Recompute squared variable mean with exact rational arithmetic, not rounded decimals.S011 · premise_and_result_audit — Recompute squared variable weighted value1 with exact rational arithmetic, not rounded decimals.S010 · premise_and_result_audit — Recompute squared variable weighted value0 with exact rational arithmetic, not rounded decimals.S009 · premise_and_result_audit — Recompute pointwise square1 with exact rational arithmetic, not rounded decimals.S008 · premise_and_result_audit — Recompute pointwise square0 with exact rational arithmetic, not rounded decimals.S007 · premise_and_result_audit — Recompute target variable mean with exact rational arithmetic, not rounded decimals.S006 · premise_and_result_audit — Recompute target variable weighted value1 with exact rational arithmetic, not rounded decimals.S005 · premise_and_result_audit — Recompute target variable weighted value0 with exact rational arithmetic, not rounded decimals.S004 · premise_and_result_audit — Check against the original data and this step's premises; a one-way implication is not an equivalence.S003 · premise_and_result_audit — Recompute probability weight1 with exact rational arithmetic, not rounded decimals.S002 · premise_and_result_audit — Recompute probability weight0 with exact rational arithmetic, not rounded decimals.S001 · premise_and_result_audit — Recompute total mass numerator with exact rational arithmetic, not rounded decimals.(1/1, 0/1)
The full substitutions and premise checks give the original answer; source identity,format and status are unchanged.
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.
input commit: 0f7be61e2c22317a4075561dc822c87d881a50dboriginal question SHA-256: 4e1fbfbe43f0aab123ce0997b0351a88fbce117e5fe8092a04ad1f2a3b927e24candidate record SHA-256: 4c259ef9eee0d58a647ac6592fc7c72cb046e0159cb25736d50b6c3095942e4bsemantic review receipt SHA-256: b6e05a3e8193a93db505dbf337528fca72e2e41528b1e92b698a3f0683d74289question-first witness SHA-256: caa8693baf0b91acd09a20215d1aa6954ae513fc0b0814f26ac1c8c834b60d67Lean: NOT_RUN · human review: NOT_PERFORMED