Re: Compound Distributions?



Carsten Steinhoff <carsten.steinhoff@xxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>Hello,
>
>I want to fit some distributions on a dataset. My tests up to now
>resulted in something like:
>
>Distribution A fits very well from 0 to K
>Distribution B fits very well above K
>
>In a second step I have to draw random numbers from the chosen
>distribution (drawing uniform distr. rn and put them into the F^-1).
>
>Now the Problem is ... : I want to put distr A and B together.
>
>Its not sure that K is identical to the point of intersection! So it
>might be that the combination of A and B is not stetic in K.
>
>So how to draw my random numbers??? If I put e.g a 0.88 into the
>"common" inverse in some cases not necessarily a value results - in
>other cases there could result two (depending whether the intersection
>is left or right from K).
>
>I think there should be something to google about, but when I search for
>"compound distributions" I find what I would call "mixing" (e.g. F = F_A
>+ F_B)
>
>Who can help?
>
>Thanks a lot!!!


Let p_A and p_B be the probability densities you are talking about,
and let
I_A = integral(p_A(x), x=0..K),
I_B = integral(p_B(x), x=K..upper_border)

The density you want to generate is

p_A(x)/(I_A+c*I_B) if x in [0,K]
c*p_B(x)/(I_A+c*I_B) if x in [K,upper_border]

for some positive number c.
Right?

Generate a rn.
If rn < I_A/(I_A+c*I_B) then
generate a new rn to construct x in [0,K] following p_A
else
generate a new rn to construct x in [K,upper_border] following p_B
endif

.



Relevant Pages

  • Re: distribution comparison
    ... Viktor Martyanov wrote: ... Not sure how to do that while evaluating the fits ... there are measures such as the log-likelihood (which the ... looking at the distribution of 256 4-mer DNA motifs in front of each ...
    (comp.soft-sys.matlab)
  • mixing distributions
    ... I have a dataset and want to fit a distribution on it. ... the pareto distr fits very well. ... with such a mixing the result is not a density function because: ... * the CDF is not monotonic increasing if I use the CDF ...
    (sci.stat.math)
  • Re: Goodness of fit measures for a distribution
    ... > for the goodness of fit of a distribution. ... > Lognromal, Beta, Gamma, inverse Gaussian etc) and find out which fits ... The good-ole PROBABILITY PAPER plot is the idea you should use. ... or cdfs over my data to see which fits the best. ...
    (sci.stat.math)
  • Compound Distributions?
    ... Distribution A fits very well from 0 to K ... In a second step I have to draw random numbers from the chosen ... If I put e.g a 0.88 into the "common" inverse in some cases not necessarily a value results - in other cases there could result two (depending whether the intersection is left or right from K). ...
    (sci.stat.math)
  • Goodness of fit measures for a distribution
    ... for the goodness of fit of a distribution. ... I have some sample data which lets say it ... Lognromal, Beta, Gamma, inverse Gaussian etc) and find out which fits the ...
    (sci.stat.math)