m
Line 26: Line 26:
  
 
<div style="margin-left: 25em;">
 
<div style="margin-left: 25em;">
<math>P(x_j|\mathbf{Y})= \frac{P(\mathbf{Y}|x_j)P(x_j)}{P(\mathbf{Y})} \qquad\qquad\qquad\qquad (5)</math>   
+
<math>P(x_j|y)= \frac{p(y|x_j)p(x_j)}{P(y)} \qquad\qquad\qquad\qquad (3)</math>   
 
</div>
 
</div>
  
where  
+
 
 +
where:
 +
 
 +
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; y=10
  
  

Revision as of 17:31, 22 March 2013

Illustration of Bayes Rule


       The last couple of essays have provided insight into the Bayesian Decision Theory, showing how conditional probabilities are used to determine the probability of a particular event given that we know the prior probabilities. For this essay, we will be looking at a real world illustration where we can use Bayes Rule to solve a problem.

Example

Suppose we have an ECE 302 class with 100 students, 40 African students and 60 Non-African students and we want to distinguish the students with African origin from the rest of class. Since we know that African last names are generally have long, we decide to use the number of letters in the last name as the feature to classify the students. We also have the following statistics available to us.

First, the distribution among Non-Africans.

Non-african.jpg

Then the distribution among the Africans.

African.jpg

And, both graphs put together.

Mixed.jpg


With all this information, we can use Bayes rule to determine if a student is African or not. Without the information about the length of the last names, the probability of a student being African would always be 0.4, but with the added feature, it becomes easier to determine the origin of the student using Bayes theorem.

For example, If we wanted to find the probability of a student being African given a last name length of 10 letters?

We can use the Bayes Rule where;

$ P(x_j|y)= \frac{p(y|x_j)p(x_j)}{P(y)} \qquad\qquad\qquad\qquad (3) $


where:

       y=10



Alumni Liaison

Abstract algebra continues the conceptual developments of linear algebra, on an even grander scale.

Dr. Paul Garrett