Add mixture distributions to scipy.stats

Hi Team,

gh-21700 adds scipy.stats.Mixture, a class to represent mixture distributions. The class accepts components (a sequence of instances of ContinuousDistribution) and weights (the corresponding probabilities). Instances of Mixture have essentially all the same public methods of a ContinuousDistribution.

The PR also establishes a _ProbabilityDistribution superclass, which will have subclasses like ContinuousDistribution and DiscreteDistribution (when it exists). Mixtures will eventually accept instances of any _ProbabilityDistribution.

If you’re interested, please join the conversation in gh-21700!

Matt

2 Likes