probability-0.2.2.1: Probabilistic Functional ProgrammingSource codeContentsIndex
Numeric.Probability.Example.NBoys
Contents
Special cases
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?

Synopsis
type Family = [Child]
family :: Int -> Dist Family
countBoys :: Family -> Int
boys :: Int -> Event Family
nBoys :: Int -> Int -> Int -> Probability
numBoys :: Int -> Int -> Dist Int
onlyBoys1 :: Int -> Probability
Documentation
type Family = [Child]Source
family :: Int -> Dist FamilySource
countBoys :: Family -> IntSource
boys :: Int -> Event FamilySource
nBoys :: Int -> Int -> Int -> ProbabilitySource
numBoys :: Int -> Int -> Dist IntSource
Special cases
onlyBoys1 :: Int -> ProbabilitySource
only boys in a family that has one boy
Produced by Haddock version 2.4.2