probability-0.2.2: Probabilistic Functional ProgrammingSource codeContentsIndex
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 = RationalSource
type Dist a = T Probability aSource
data Child Source
Constructors
Boy
Girl
show/hide Instances
type Family = (Child, Child)Source
birth :: Dist ChildSource
family :: Dist FamilySource
allBoys :: Event FamilySource
existsBoy :: Event FamilySource
familyWithBoy :: Dist FamilySource
twoBoys :: ProbabilitySource
countBoy :: Child -> IntSource
countBoys :: Family -> IntSource
numBoys :: Dist IntSource
Produced by Haddock version 2.4.2