histogram of mean & SD

Can anyone explain how I could:

-Open two shapefiles

-Open a raster

-Plot a histogram of the values within each
shapefile on the same plot and display the mean and Standard Deviation of each
plot.

Thanks