Adaptive Sampling for Estimating Probability Distributions