Documentation

Hypothesis.Exercise

Exercises from Grinstead and Snell #

theorem arithmetic_for_exercise_1_2_7 :
1 / 2 + 1 = 11 / 12 + 1 / 4 + 1 / 3
theorem exercise_1_2_7 {Ω : Type u_1} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [i : MeasureTheory.IsProbabilityMeasure μ] (A B : Set Ω) (hA : MeasurableSet A) (h₀ : μ (A B) = 1 / 4) (h₁ : μ A = 1 / 3) (h₂ : μ B = 1 / 2) :
μ (A B) = 11 / 12

Exercise 1.2.7: Let A and B be events such that P(A ∩ B) = 1/4, P(A˜) = 1/3, and P(B) = 1/2. What is P(A ∪ B)?

theorem exercise_1_2_6 (μ : MeasureTheory.Measure (Fin 6)) [i : MeasureTheory.IsProbabilityMeasure μ] (h : μ {2} = 2 * μ {1} μ {3} = 3 * μ {1} μ {4} = 4 * μ {1} μ {5} = 5 * μ {1} μ {6} = 6 * μ {1}) :
μ {2, 4, 6} = 12 / 21