Fitting probability distributions