Step-by-step derivation
S001 · calculation
Before
joint law total mass := sum(1/8, 1/4, 1/8, 1/2)
After
joint law total mass = 1
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001
S002 · implies
Before
original distinct joint pairs=[[10, -1], [11, 0], [12, 1], [13, 4]];raw aligned masses=[[1, 8], [1, 4], [1, 8], [1, 2]]
After
normalized aligned masses=[1/8, 1/4, 1/8, 1/2];nonnegative=Yes;total=1
Conditions: none
Use the complete original joint table on one common probability space,preserving order,pairing and zero masses.Covariance requires nonnegative masses with exact total1.
Step identifiers and dependencies
Rule: qualify_whole_joint_law_preserve_alignment · Uses: G001, S001
S003 · calculation
Before
original atom0 weighted X := mul(1/8, 10)
After
original atom0 weighted X = 5/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S002
S004 · calculation
Before
original atom0 weighted Y := mul(1/8, -1)
After
original atom0 weighted Y = -1/8
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S003
S005 · calculation
Before
original atom0 XY := mul(10, -1)
After
original atom0 XY = -10
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S004
S006 · calculation
Before
original atom0 weighted XY := mul(1/8, -10)
After
original atom0 weighted XY = -5/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S005
S007 · calculation
Before
original atom1 weighted X := mul(1/4, 11)
After
original atom1 weighted X = 11/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S006
S008 · calculation
Before
original atom1 weighted Y := mul(1/4, 0)
After
original atom1 weighted Y = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S007
S009 · calculation
Before
original atom1 XY := mul(11, 0)
After
original atom1 XY = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S008
S010 · calculation
Before
original atom1 weighted XY := mul(1/4, 0)
After
original atom1 weighted XY = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S009
S011 · calculation
Before
original atom2 weighted X := mul(1/8, 12)
After
original atom2 weighted X = 3/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S010
S012 · calculation
Before
original atom2 weighted Y := mul(1/8, 1)
After
original atom2 weighted Y = 1/8
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S011
S013 · calculation
Before
original atom2 XY := mul(12, 1)
After
original atom2 XY = 12
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S012
S014 · calculation
Before
original atom2 weighted XY := mul(1/8, 12)
After
original atom2 weighted XY = 3/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S013
S015 · calculation
Before
original atom3 weighted X := mul(1/2, 13)
After
original atom3 weighted X = 13/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S014
S016 · calculation
Before
original atom3 weighted Y := mul(1/2, 4)
After
original atom3 weighted Y = 2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S015
S017 · calculation
Before
original atom3 XY := mul(13, 4)
After
original atom3 XY = 52
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S016
S018 · calculation
Before
original atom3 weighted XY := mul(1/2, 52)
After
original atom3 weighted XY = 26
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S017
S019 · calculation
Before
original E_X := sum(5/4, 11/4, 3/2, 13/2)
After
original E_X = 12
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S018
S020 · calculation
Before
original E_Y := sum(-1/8, 0, 1/8, 2)
After
original E_Y = 2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S019
S021 · calculation
Before
original E_XY := sum(-5/4, 0, 3/2, 26)
After
original E_XY = 105/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S020
S022 · calculation
Before
original product of means := mul(12, 2)
After
original product of means = 24
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S021
S023 · calculation
Before
original covariance := sub(105/4, 24)
After
original covariance = 9/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S022
S024 · implies
Before
original:E_X=12;E_Y=2;E_XY=105/4
After
Cov=E_XY-E_X*E_Y=9/4
Conditions: none
All three expectations use the same atoms and masses.Do not mix marginal models or assume independence.
Step identifiers and dependencies
Rule: covariance_same_joint_three_moments · Uses: G001, S023
S025 · calculation
Before
swapped atom0 weighted X := mul(1/8, -1)
After
swapped atom0 weighted X = -1/8
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S024
S026 · calculation
Before
swapped atom0 weighted Y := mul(1/8, 10)
After
swapped atom0 weighted Y = 5/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S025
S027 · calculation
Before
swapped atom0 XY := mul(-1, 10)
After
swapped atom0 XY = -10
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S026
S028 · calculation
Before
swapped atom0 weighted XY := mul(1/8, -10)
After
swapped atom0 weighted XY = -5/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S027
S029 · calculation
Before
swapped atom1 weighted X := mul(1/4, 0)
After
swapped atom1 weighted X = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S028
S030 · calculation
Before
swapped atom1 weighted Y := mul(1/4, 11)
After
swapped atom1 weighted Y = 11/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S029
S031 · calculation
Before
swapped atom1 XY := mul(0, 11)
After
swapped atom1 XY = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S030
S032 · calculation
Before
swapped atom1 weighted XY := mul(1/4, 0)
After
swapped atom1 weighted XY = 0
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S031
S033 · calculation
Before
swapped atom2 weighted X := mul(1/8, 1)
After
swapped atom2 weighted X = 1/8
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S032
S034 · calculation
Before
swapped atom2 weighted Y := mul(1/8, 12)
After
swapped atom2 weighted Y = 3/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S033
S035 · calculation
Before
swapped atom2 XY := mul(1, 12)
After
swapped atom2 XY = 12
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S034
S036 · calculation
Before
swapped atom2 weighted XY := mul(1/8, 12)
After
swapped atom2 weighted XY = 3/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S035
S037 · calculation
Before
swapped atom3 weighted X := mul(1/2, 4)
After
swapped atom3 weighted X = 2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S036
S038 · calculation
Before
swapped atom3 weighted Y := mul(1/2, 13)
After
swapped atom3 weighted Y = 13/2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S037
S039 · calculation
Before
swapped atom3 XY := mul(4, 13)
After
swapped atom3 XY = 52
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S038
S040 · calculation
Before
swapped atom3 weighted XY := mul(1/2, 52)
After
swapped atom3 weighted XY = 26
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S039
S041 · calculation
Before
swapped E_X := sum(-1/8, 0, 1/8, 2)
After
swapped E_X = 2
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S040
S042 · calculation
Before
swapped E_Y := sum(5/4, 11/4, 3/2, 13/2)
After
swapped E_Y = 12
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S041
S043 · calculation
Before
swapped E_XY := sum(-5/4, 0, 3/2, 26)
After
swapped E_XY = 105/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S042
S044 · calculation
Before
swapped product of means := mul(2, 12)
After
swapped product of means = 24
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S043
S045 · calculation
Before
swapped covariance := sub(105/4, 24)
After
swapped covariance = 9/4
Conditions: none
Compute exactly from the specified source roles and established intermediates,without substituting models,reordering pairings or comparing rounded values.
Step identifiers and dependencies
Rule: exact_rational_arithmetic · Uses: G001, S044
S046 · implies
Before
swapped:E_X=2;E_Y=12;E_XY=105/4
After
Cov=E_XY-E_X*E_Y=9/4
Conditions: none
All three expectations use the same atoms and masses.Do not mix marginal models or assume independence.
Step identifiers and dependencies
Rule: covariance_same_joint_three_moments · Uses: G001, S045
S047 · implies
Before
original covariance=9/4;swapped covariance=9/4
After
equal by XY=YX and E_X*E_Y=E_Y*E_X
Conditions: none
Swap both variable and mean roles.Commutativity leaves both the product expectation and product of means unchanged.
Step identifiers and dependencies
Rule: covariance_swap_both_roles_symmetry · Uses: G001, S046