Is P(x) = P(x | y )*P(y) + P(x | ~y )*P(~y) according to Bayes theorem?

#1
Can anyone tell me if this equation valid? If yes how? I have tried to check on google but couldn't find it! If this equation is valid then I will be able to solve a question on Bayes theorem. Thanks!
 

hlsmith

Less is more. Stay pure. Stay poor.
#2
~y represent complement to y? Do you have a dataset to go along with this or could you create a toy set?
 

hlsmith

Less is more. Stay pure. Stay poor.
#7
Dummy me just did it by hand and they were equal.

2x2 matrix: 10, 12, 15, 20.
p(x) = (22/57) = ((10/25) * (25/57)) + ((12/32) * (32/57))
0.386 = 0.386