Distribution Functions

Write distribution functions to recreate the images displayed below: