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=[[-6, -1], [-5, 0], [-4, 1], [-3, 3]];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, -6)
After
original atom0 weighted X = -3/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(-6, -1)
After
original atom0 XY = 6
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, 6)
After
original atom0 weighted XY = 3/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, -5)
After
original atom1 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, 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(-5, 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, -4)
After
original atom2 weighted X = -1/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(-4, 1)
After
original atom2 XY = -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, S012
S014 · calculation
Before
original atom2 weighted XY := mul(1/8, -4)
After
original atom2 weighted XY = -1/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, -3)
After
original atom3 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, S014
S016 · calculation
Before
original atom3 weighted Y := mul(1/2, 3)
After
original atom3 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, S015
S017 · calculation
Before
original atom3 XY := mul(-3, 3)
After
original atom3 XY = -9
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, -9)
After
original atom3 weighted XY = -9/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, S017
S019 · calculation
Before
original E_X := sum(-3/4, -5/4, -1/2, -3/2)
After
original E_X = -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, S018
S020 · calculation
Before
original E_Y := sum(-1/8, 0, 1/8, 3/2)
After
original E_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, S019
S021 · calculation
Before
original E_XY := sum(3/4, 0, -1/2, -9/2)
After
original E_XY = -17/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(-4, 3/2)
After
original product of means = -6
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(-17/4, -6)
After
original covariance = 7/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=-4;E_Y=3/2;E_XY=-17/4
After
Cov=E_XY-E_X*E_Y=7/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
affine atom0 scaled X := mul(3, -6)
After
affine atom0 scaled X = -18
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
affine atom0 U := sum(-18, -6)
After
affine atom0 U = -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, S025
S027 · calculation
Before
affine atom0 scaled Y := mul(-1, -1)
After
affine atom0 scaled Y = 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, S026
S028 · calculation
Before
affine atom0 V := sum(1, 6)
After
affine atom0 V = 7
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
affine atom1 scaled X := mul(3, -5)
After
affine atom1 scaled X = -15
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
affine atom1 U := sum(-15, -6)
After
affine atom1 U = -21
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
affine atom1 scaled Y := mul(-1, 0)
After
affine atom1 scaled 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, S030
S032 · calculation
Before
affine atom1 V := sum(0, 6)
After
affine atom1 V = 6
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
affine atom2 scaled X := mul(3, -4)
After
affine atom2 scaled 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, S032
S034 · calculation
Before
affine atom2 U := sum(-12, -6)
After
affine atom2 U = -18
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
affine atom2 scaled Y := mul(-1, 1)
After
affine atom2 scaled Y = -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, S034
S036 · calculation
Before
affine atom2 V := sum(-1, 6)
After
affine atom2 V = 5
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
affine atom3 scaled X := mul(3, -3)
After
affine atom3 scaled X = -9
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
affine atom3 U := sum(-9, -6)
After
affine atom3 U = -15
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
affine atom3 scaled Y := mul(-1, 3)
After
affine atom3 scaled Y = -3
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
affine atom3 V := sum(-3, 6)
After
affine atom3 V = 3
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
affine transformed atom0 weighted X := mul(1/8, -24)
After
affine transformed atom0 weighted X = -3
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
affine transformed atom0 weighted Y := mul(1/8, 7)
After
affine transformed atom0 weighted Y = 7/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, S041
S043 · calculation
Before
affine transformed atom0 XY := mul(-24, 7)
After
affine transformed atom0 XY = -168
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
affine transformed atom0 weighted XY := mul(1/8, -168)
After
affine transformed atom0 weighted XY = -21
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
affine transformed atom1 weighted X := mul(1/4, -21)
After
affine transformed atom1 weighted X = -21/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 · calculation
Before
affine transformed atom1 weighted Y := mul(1/4, 6)
After
affine transformed atom1 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, S045
S047 · calculation
Before
affine transformed atom1 XY := mul(-21, 6)
After
affine transformed atom1 XY = -126
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, S046
S048 · calculation
Before
affine transformed atom1 weighted XY := mul(1/4, -126)
After
affine transformed atom1 weighted XY = -63/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, S047
S049 · calculation
Before
affine transformed atom2 weighted X := mul(1/8, -18)
After
affine transformed atom2 weighted X = -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, S048
S050 · calculation
Before
affine transformed atom2 weighted Y := mul(1/8, 5)
After
affine transformed atom2 weighted Y = 5/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, S049
S051 · calculation
Before
affine transformed atom2 XY := mul(-18, 5)
After
affine transformed atom2 XY = -90
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, S050
S052 · calculation
Before
affine transformed atom2 weighted XY := mul(1/8, -90)
After
affine transformed atom2 weighted XY = -45/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, S051
S053 · calculation
Before
affine transformed atom3 weighted X := mul(1/2, -15)
After
affine transformed atom3 weighted X = -15/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, S052
S054 · calculation
Before
affine transformed atom3 weighted Y := mul(1/2, 3)
After
affine transformed atom3 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, S053
S055 · calculation
Before
affine transformed atom3 XY := mul(-15, 3)
After
affine transformed atom3 XY = -45
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, S054
S056 · calculation
Before
affine transformed atom3 weighted XY := mul(1/2, -45)
After
affine transformed atom3 weighted XY = -45/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, S055
S057 · calculation
Before
affine transformed E_X := sum(-3, -21/4, -9/4, -15/2)
After
affine transformed E_X = -18
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, S056
S058 · calculation
Before
affine transformed E_Y := sum(7/8, 3/2, 5/8, 3/2)
After
affine transformed E_Y = 9/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, S057
S059 · calculation
Before
affine transformed E_XY := sum(-21, -63/2, -45/4, -45/2)
After
affine transformed E_XY = -345/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, S058
S060 · calculation
Before
affine transformed product of means := mul(-18, 9/2)
After
affine transformed product of means = -81
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, S059
S061 · calculation
Before
affine transformed covariance := sub(-345/4, -81)
After
affine transformed covariance = -21/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, S060
S062 · implies
Before
affine transformed:E_X=-18;E_Y=9/2;E_XY=-345/4
After
Cov=E_XY-E_X*E_Y=-21/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, S061
S063 · calculation
Before
affine two scale product := mul(3, -1)
After
affine two scale product = -3
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, S062
S064 · calculation
Before
affine scaled original covariance := mul(-3, 7/4)
After
affine scaled original covariance = -21/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, S063
S065 · implies
Before
U=(3)*X+(-6);V=(-1)*Y+(6);same indexed atoms and weights
After
E_UV-E_U*E_V=(3)*(-1)*(E_XY-E_X*E_Y)=-21/4
Conditions: none
Expand E[UV]=acE[XY]+adE[X]+bcE[Y]+bd and subtract(aE[X]+b)(cE[Y]+d);all shift terms cancel.Even zero scaling may duplicate image points:retain original probability atoms rather than treating images as a new distinct support.
Step identifiers and dependencies
Rule: affine_covariance_shift_cancellation_not_new_joint_support · Uses: G001, S064