Make a Histogram
You can use Histogram to generate a histogram of a dataset on a probability density scale.
Generate a sample dataset from the gamma distribution with RandomVariate and construct the histogram:
data = RandomVariate[GammaDistribution[4, 12.5], 10 ^ 4];
hist = Histogram[data, Automatic, "ProbabilityDensity"]pl = Plot[PDF[GammaDistribution[4, 12.5], x], {x, 0, 200}]Show[hist, pl]