OAI/Combinatorics/ContingencyTables/Sampling/PhysicalResidualMargins.lean
8 declarations, 0 contain sorry, 0 declared as axioms
Literal padded residual completions of each positive physical state
- def
OAI.ContingencyTables.SmallGraphProfiles.residualRowsline 17 - def
OAI.ContingencyTables.SmallGraphProfiles.residualColumnsline 21 - lemma
OAI.ContingencyTables.SmallGraphProfiles.physical_weight_completionsline 25 - lemma
OAI.ContingencyTables.SmallGraphProfiles.physical_completions_nonemptyline 41 - lemma
OAI.ContingencyTables.SmallGraphProfiles.physical_residual_totalsline 53 - lemma
OAI.ContingencyTables.SmallGraphProfiles.physical_residual_row_zeroline 66Source documentation
Rows outside the large-margin rectangle have zero residual, as forced by the actual positive completion count.
lemma physical_residual_row_zero (r : I → ℕ) (c : J → ℕ) (U L : ℕ) (B : I → J → ℕ) (z : PhysicalStates (firstPaperSmall r c U) B r c L) (hcap : ∀ i j,firstPaperSmall r c U i j=false → (∑ k,residualRows (firstPaperSmall r c U) B r c L z k) ≤ B i j) (i : I) (hi : ¬U ≤ r i) : residualRows (firstPaperSmall r c U) B r c L z i=0 := by …Mentions: OAI.ContingencyTables.SmallGraphProfiles.PhysicalStates, OAI.ContingencyTables.SmallGraphProfiles.residualRows
- lemma
OAI.ContingencyTables.SmallGraphProfiles.physical_residual_column_zeroline 81 - theorem
OAI.ContingencyTables.SmallGraphProfiles.physical_weight_rectangleline 98Source documentation
Thus the marginal used by the variance proof is exactly the number of ordinary tables on the large rectangle, including empty rectangles.
theorem physical_weight_rectangle (r : I → ℕ) (c : J → ℕ) (U L : ℕ) (B : I → J → ℕ) (z : PhysicalStates (firstPaperSmall r c U) B r c L) (hcap : ∀ i j,firstPaperSmall r c U i j=false → (∑ k,residualRows (firstPaperSmall r c U) B r c L z k) ≤ B i j) : hardMarginal (firstPaperSmall r c U) B r c L (physicalProfile _ B r c L z)= (Fintype.card (Table (fun i : {i // U ≤ r i} => residualRows (firstPaperSmall r c U) B r c L z i.val) (fun j : {j // U ≤ c j} => residualColumns (firstPaperSmall r c U) B r c L z j.val)):ℝ) := by …Mentions: OAI.ContingencyTables.SmallGraphProfiles.PhysicalStates, OAI.ContingencyTables.SmallGraphProfiles.residualRows, OAI.ContingencyTables.SmallGraphProfiles.physicalProfile, OAI.ContingencyTables.Table, OAI.ContingencyTables.SmallGraphProfiles.residualColumns