Learn Before
Formula

Maximum Likelihood Estimate for a Categorical Feature

When modeling categorical data, the maximum likelihood estimate for the probability that a feature kk takes a specific value ll, denoted as θkl=p(xk=l)\theta_{kl} = p(x_k = l), is given by its empirical frequency in the dataset:

θkl=nklN\theta_{kl} = \frac{n_{kl}}{N}

where nkln_{kl} is the number of times feature kk takes the value ll, and NN is the total number of observations.

0

1

Updated 2026-06-16

Contributors are:

Who are from:

Tags

Data Science