LaplaceProbDist.__init__(freqdist, bins=None)[source]

Use the Laplace estimate to create a probability distribution for the experiment used to generate freqdist.

  • freqdist (FreqDist) – The frequency distribution that the probability estimates should be based on.
  • bins (int) – The number of sample values that can be generated by the experiment that is described by the probability distribution. This value must be correctly set for the probabilities of the sample values to sum to one. If bins is not specified, it defaults to freqdist.B().