histogram and pmf