| Trees | Indices | Help |
|
|---|
|
|
object --+
|
ProbDistI --+
|
WittenBellProbDist
The Witten-Bell estimate of a probability distribution. This distribution allocates uniform probability mass to as yet unseen events by using the number of events that have only been seen once. The probability mass reserved for unseen events is equal to:
where T is the number of observed event types and N is the total number of observed events. This equates to the maximum likelihood estimate of a new type event occuring. The remaining probability mass is discounted such that all probability estimates sum to one, yielding:
|
|||
|
|||
string
|
|
||
float
|
|
||
|
|||
| any |
|
||
| float |
|
||
list
|
|
||
|
Inherited from Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
|
Inherited from |
|||
|
|||
Creates a distribution of Witten-Bell probability estimates. This distribution allocates uniform probability mass to as yet unseen events by using the number of events that have only been seen once. The probability mass reserved for unseen events is equal to:
where T is the number of observed event types and N is the total number of observed events. This equates to the maximum likelihood estimate of a new type event occuring. The remaining probability mass is discounted such that all probability estimates sum to one, yielding:
The parameters T and N are
taken from the
|
repr(x)
|
|
|
|
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Mon Nov 26 16:04:59 2012 | http://epydoc.sourceforge.net |