probability-0.1: Computations with discrete random variables
Source code
Contents
Index
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
data
Child
Source
Constructors
Boy
Girl
Instances
Eq
Child
Ord
Child
Show
Child
type
Family
= [
Child
]
Source
birth
::
Trans
Family
Source
family
::
Dist
Family
Source
boys
::
Int
->
Event
Family
Source
existsBoy
::
Event
Family
Source
familyWithBoy
::
Dist
Family
Source
twoBoys
::
Probability
Source
countBoys
::
Family
->
Int
Source
numBoys
::
Dist
Int
Source
Produced by
Haddock
version 2.1.0