(New page: Experiment: Box 0 contains 2 colored balls and one white ball Box 1 contains 1 color ball and 2 white balls Given the color of the ball pick which box it came from. X = color ...)
 
 
Line 1: Line 1:
 +
[[Category:ECE302Fall2008_ProfSanghavi]]
 +
[[Category:probabilities]]
 +
[[Category:ECE302]]
 +
[[Category:problem solving]]
 +
 +
=Question=
 
Experiment: Box 0 contains 2 colored balls and one white ball
 
Experiment: Box 0 contains 2 colored balls and one white ball
 
             Box 1 contains 1 color ball and 2 white balls
 
             Box 1 contains 1 color ball and 2 white balls
 
Given the color of the ball pick which box it came from.
 
Given the color of the ball pick which box it came from.
 
+
=Answer=
 
X = color or white ball
 
X = color or white ball
  
Line 20: Line 26:
 
If x = white then pick Box 1
 
If x = white then pick Box 1
 
If x = color then pick either box
 
If x = color then pick either box
 +
----
 +
[[Main_Page_ECE302Fall2008sanghavi|Back to ECE302 Fall 2008 Prof. Sanghavi]]

Latest revision as of 12:44, 22 November 2011


Question

Experiment: Box 0 contains 2 colored balls and one white ball

           Box 1 contains 1 color ball and 2 white balls

Given the color of the ball pick which box it came from.

Answer

X = color or white ball

Pr[B0] = 1/3 Pr[B1] = 2/3

Pr[white|B0] = 1/3 Pr[white|B1] = 2/3 Pr[color|B0] = 2/3 Pr[color|B2] = 1/3

MAP Rule: Pick the Box i (i = 0,1) with largest Pr[x|Bi]*Pr[Bi]

if x = white Pr[white|B0]*P[B0] = (1/3)*(1/3) = 1/9

              Pr[white|B1]*P[B1] = (2/3)*(2/3) = 4/9

if x = color Pr[color|B0]*P[B0] = (2/3)*(1/3) = 2/9

              Pr[color|B1]*P[B1] = (1/3)*(2/3) = 2/9

If x = white then pick Box 1 If x = color then pick either box


Back to ECE302 Fall 2008 Prof. Sanghavi

Alumni Liaison

ECE462 Survivor

Seraj Dosenbach