Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to distinguish between two letters (A and C) using the difference of sums of black pixels in their left and right half of the image. I assume they normal distribution of the class probability density functions p(x|k), where k={A, C}. I have to find mean and sigma (normal distribution is defined by them) using MLE. I have training data for estimations and test data to verify my estimates.

I know hot to use MLE to estimate only one parametre, but how to estimate both at once? Lets assume I know the a priori probabilities of P(A) and P(C).

share|cite|improve this question
up vote 1 down vote accepted

For the normal distribution, the MLE gives exactly the same result as reading the mean and the variance from the sample directly. So, just figure out the parameters for each letter separately in the usual way. After that, all you need to do is to multiply the a priori probability of each letter by the density of the corresponding Gaussian at the observed difference and take the letter with the largest product (that's the standard Bayes).

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.