|
FreqDist
A frequency distribution for the outcomes of an experiment.
|
|
ProbDistI
A probability distribution for the outcomes of an experiment.
|
|
UniformProbDist
A probability distribution that assigns equal probability to each
sample in a given set; and a zero probability to all other samples.
|
|
DictionaryProbDist
A probability distribution whose probabilities are directly
specified by a given dictionary.
|
|
MLEProbDist
The maximum likelihood estimate for the probability distribution of
the experiment used to generate a frequency distribution.
|
|
LidstoneProbDist
The Lidstone estimate for the probability distribution of the
experiment used to generate a frequency distribution.
|
|
LaplaceProbDist
The Laplace estimate for the probability distribution of the
experiment used to generate a frequency distribution.
|
|
ELEProbDist
The expected likelihood estimate for the probability distribution
of the experiment used to generate a frequency distribution.
|
|
HeldoutProbDist
The heldout estimate for the probability distribution of the
experiment used to generate two frequency distributions.
|
|
CrossValidationProbDist
The cross-validation estimate for the probability distribution of
the experiment used to generate a set of frequency distribution.
|
|
WittenBellProbDist
The Witten-Bell estimate of a probability distribution.
|
|
GoodTuringProbDist
The Good-Turing estimate of a probability distribution.
|
|
MutableProbDist
An mutable probdist where the probabilities may be easily modified.
|
|
ConditionalFreqDist
A collection of frequency distributions for a single experiment run
under different conditions.
|
|
ConditionalProbDistI
A collection of probability distributions for a single experiment
run under different conditions.
|
|
ConditionalProbDist
A conditional probability distribution modelling the experiments
that were used to generate a conditional frequency distribution.
|
|
DictionaryConditionalProbDist
An alternative ConditionalProbDist that simply wraps a dictionary
of ProbDists rather than creating these from FreqDists.
|
|
ProbabilisticMixIn
A mix-in class to associate probabilities with other classes
(trees, rules, etc.).
|
|
ImmutableProbabilisticMixIn
|
|
|
|
|
|
add_logs(logx,
logy)
Given two numbers logx =log(x) and
logy =log(y), return log(x+y). |
source code
|
|
|
|
|
|
|
_create_sum_pdist(numsamples)
Return the true probability distribution for the experiment
_create_rand_fdist(numsamples, x) . |
source code
|
|
None
|
demo(numsamples=6,
numoutcomes=500)
A demonstration of frequency distributions and probability
distributions. |
source code
|
|