This is a conditional probability which is given by the formulae p(a/b)= p(a & b)/p(b)
thus let h is happy, a acceded p(a/h)= p(a&h)/p(h), 0.4= (p(a & h)/0.6 , p(a&h)= 0.6*0.4= 0.24
Now for we know p(a/h)= 0.4, p(a&h) = 0.24 thus we can calculate p(h) using the formulae
p(a/h)= p(a&h)/p(h), 0.4 = 0.24/p(h) , p(h) = 0.24/0.4 = 0.6 thus the probability that he was happy is 0.6
Comments
Leave a comment