Cross Validated is a question and answer site for people interested in statistics, machine learning, data analysis, data mining, and data visualization. It's 100% free, no registration required.

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 ultimately trying to perform a regression task - for this example, let's say I'm trying to determine the height (in pixels) of a person in an image. However, rather than doing regression, I am solving this problem by hypothesising a few different possible heights (e.g. by detecting parts of the image that look like 'head' and 'feet') and then finding which hypothesis is the most likely. For want of a better term, I am calling this 'classification for regression'.

I am using training data to learn a classifier, and my question is how the likelihood and prior can be used in this context.

In my mind, there are several pieces of information that can be levered:

  1. Goodness of fit of the hypotheses. In this case, this might be how much the detected feet look like feet and how much the detected heads look like heads

  2. Overall likelihood of matching. e.g. how much does the bit between the detected feet and head look like a body.

  3. Relation to prior knowledge about body size. Assuming absolute sizes are known, this could be a normal distribution over the range of peoples' heights.

Which of these pieces of information is a prior, and which can be used to infer the likelihood? (1) and (2) seem to be likelihood data, while (3) seems to be a prior, but why not use (3) as part of the likelihood?

Are there any more general points and tips for this sort of task?

share|improve this question
Maybe it's just me but I'm confused by your description of the basic problem in the first paragraph, so I'm unable to address the questions that follow. – jerad Dec 20 '12 at 20:10

Your Answer


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

Browse other questions tagged or ask your own question.