Hi
I'm new to mathematica and would appreciate some help on what may be a simple problem (though I haven't been able to find any relevant methods). I have a dataset with two unknown distributions. For the simple case I'm assuming two Gaussian distributions but will expand once I get the base case working.
edist = EstimatedDistribution[data, MixtureDistribution[{p, 1 - p}, {NormalDistribution[a, b],
NormalDistribution[c, d]}]]
MixtureDistribution[{0.423334, 0.576666}, {NormalDistribution[1.34634, 0.46282], NormalDistribution[2.50805, 0.769406]}]
Which plots as the following:

I want to split my data into two separate data sets based on whether the data is contributing to distribution a or b. How would I go about this? I would have thought that data assigned to each distribution (after iterating through to optimise maximum likelihood) should be callable/extractable.
Thank-you in advance, Ivan