Independent Gamma variables and the Beta distribution #
This file studies the coordinate change
(x, y) ↦ (x / (x + y), x + y)
on the positive quadrant. Its inverse sends (u, s) to (u * s, (1 - u) * s) and has
Jacobian determinant s. Applied to two independent Gamma laws with a common rate, the change
of variables separates their ratio from their sum: the ratio is Beta-distributed, the sum is
Gamma-distributed, and the two are independent.
Main result #
TauCeti.Probability.map_div_add_prod_gammaMeasureidentifies the joint pushforward with the product of a Beta law and a Gamma law.TauCeti.Probability.map_div_add_gammaMeasuregives the Beta marginal.MeasureTheory.Measure.map_prod_prod_gammaMeasure_div_addcarries the Beta marginal, for the ratioy / (y + x), along an independent factor.TauCeti.Probability.indepFun_div_add_gammaMeasureproves independence under the product Gamma law.TauCeti.Probability.hasLaw_div_add_prod_gammaMeasure_of_indepFun,TauCeti.Probability.hasLaw_div_add_gammaMeasure_of_indepFun, andTauCeti.Probability.indepFun_div_add_of_hasLaw_gammaMeasuretransfer the conclusions to independent random variables.
References #
- N. L. Johnson, S. Kotz, N. Balakrishnan, Continuous Univariate Distributions, vol. 2, 2nd ed., Wiley, 1995.
The Gamma--Beta coordinate change #
The ratio-and-sum coordinate map is measurable.
The inverse Gamma--Beta coordinate map is measurable.
The inverse coordinate map sends the target region into the positive quadrant.
The ratio-and-sum coordinate map sends the positive quadrant into its target region.
The ratio-and-sum map is a left inverse to the inverse coordinate map on the target region.
The inverse coordinate map is a left inverse to the ratio-and-sum map on the source region.
The inverse coordinate map sends the target region onto the positive quadrant.
The inverse coordinate map is injective on the target region.
The stated continuous linear map is the derivative of the inverse coordinate map.
The Jacobian determinant of the inverse Gamma--Beta coordinate map is its second coordinate.
The Jacobian formula for the inverse coordinate change, expressed as an equality of restricted Lebesgue measures.
Independent Gamma variables #
The ratio and sum of two independent Gamma variables with the same positive rate have the
product law betaMeasure a b ⊗ gammaMeasure (a + b) r. In particular, the ratio and sum are
independent. The denominator-zero branch of the ratio is irrelevant because both Gamma variables
are strictly positive almost surely.
The ratio of two independent Gamma variables with a common positive rate has a Beta law.
The Gamma–Beta ratio law, carried along an independent factor: for independent Gamma
totals t ~ Γ(q, r) and s ~ Γ(p, r) and an independent w ~ δ, the pair (s / (s + t), w) has
law Beta(p, q) ⊗ δ.
Under the product of two Gamma laws with a common positive rate, the ratio is independent of the sum.
For independent Gamma variables with a common positive rate, the pair consisting of their ratio and their sum has the product of a Beta law and a Gamma law.
The ratio of independent Gamma random variables with a common positive rate has a Beta law.
The ratio and sum of independent Gamma random variables with a common positive rate are independent.