the probability of given is equal to the probability of and occurring over the probability of alone occurringso this teases out the probability of being dependent on the probability of it'll make more sense with an example hereso bear with me let' say that give youmy readerstwo testsand of you pass both tests now the first test was easier of you passed that one can use this information to figure out what percentage of readers who passed the first test also passed the second so here' real example of the difference between the probability of given and the probability of and ' going to represent as the probability of passing the first testand as the probability of passing the second test what ' looking for is the probability of passing the second test given that you passed the firstthat isp ( |aso the probability of passing the second test given that you passed the first is equal to the probability of passing both testsp( , ( know that of you passed both tests irrespective of each other)divided by the probability of passing the first testp( )which is it' worked out to passed both tests passed the first testtherefore the probability of passing the second given that you passed the first works out to okit' little bit tough to wrap your head around this concept it took me little while to really internalize the difference between the probability of something given something and the probability of two things happening irrespective of each other make sure you internalize this example and how it' really working before you move on conditional probability exercises in python alrightlet' move on and do another more complicated example using some real python code we can then see how we might actually implement these ideas using python let' put conditional probability into action here and use some of the ideas to figure out if there' relationship between age and buying stuff using some fabricated data go ahead and open up the $poejujpobm spcbcjmjuz&yfsdjtfjqzoc here and follow along with me if you like