How to Learn Probability Distributions