a couple decides to have 3 children . if they succeed in having 3 children and each child is equally likely to be a boy or a girl , what is the probability that they will have exactly 1 girl and 2 boys ?
sample space = 2 ^ 3 = 8 favourable events = { bgg } , { bgb } , { bbb } , { ggg } , { gbg } , probability = 5 / 8 = 5 / 8 . ans ( c ) .
subtract(1, multiply(divide(factorial(3), factorial(2)), power(divide(1, 2), 3)))