probability-0.2.2: Probabilistic Functional Programming

Numeric.Probability.Example.NBoys

Description

Ceneralization of Numeric.Probability.Example.Boys

Consider a family of n children. Given that there are k boys in the family, what is the probability that there are m boys in the family?

Documentation

type Family = [Child]Source

family :: Int -> Dist Family Source

countBoys :: Family -> Int Source

boys :: Int -> Event Family Source

nBoys :: Int -> Int -> Int -> Probability Source

numBoys :: Int -> Int -> Dist Int Source

Special cases

onlyBoys1 :: Int -> Probability Source

only boys in a family that has one boy

AltStyle によって変換されたページ (->オリジナル) /