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:
Visualize the theoretical density function:
Display the histogram and the function together: