MixtureDistribution
The weighted mixture of with (renormalized) weights .
MixtureDistribution({w1, ..., wn}, {d1, ..., dn})the weighted mixture of d1, ..., dn; weights are normalized by their sum.Typed signatures
| Type | Package | Applies |
|---|---|---|
(list<real>, list<distribution>) -> distribution | statistics | always |
Details
- Weights are normalized by their sum before use, so and -scaled-by-3 agree.
- ; the same weighted sum of .
- .
- by the law of total variance: , where is the normalized weight.
- RandomVariate picks a component by its normalized weight against one uniform draw, then delegates to
RandomVariateon that component — so it reuses whatever per-kind sampler that component already has, old or new, including another compound distribution.
Examples
About
| Examples | 3 |
|---|
See also: TruncatedDistribution, ProductDistribution, RandomVariate