I want to generate a random sample based on this probability distribution:
The line is the KDE of the histogram.
My random sample will have
n values, the value is a number of points. Each of the
n values generates an amount of points
p that must be distributed among the population. So I must distribute the total of
n * p points. The distribution of points must follow the probability distribution above.
How should I generate a random sample that follow this probability distribution?
Probably this is a usual problem, so I welcome any help to better formulate my question.