The maximum likelihood estimate for the probability distribution of
the experiment used to generate a frequency distribution. The maximum
likelihood estimate approximates the probability of each sample as
the frequency of that sample in the frequency distribution.
|
|
__init__(self,
freqdist)
Use the maximum likelihood estimate to create a probability
distribution for the experiment used to generate
freqdist. |
source code
|
|
FreqDist
|
freqdist(self)
Returns:
The frequency distribution that this probability distribution is
based on. |
source code
|
|
|
float
|
prob(self,
sample)
Returns:
the probability for a given sample. |
source code
|
|
|
any
|
max(self)
Returns:
the sample with the greatest probability. |
source code
|
|
list
|
|
string
|
|
|
Inherited from ProbDistI:
discount,
generate,
logprob
|