Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Numeric.Probability.Example.Boys
Description
Consider a family of two children. Given that there is a boy in the family, what is the probability that there are two boys in the family?
Documentation
type Probability = Rational #
type Dist a = T Probability a #
familyWithBoy :: Dist Family #
twoBoys :: Probability #