probability-0.1: Computations with discrete random variables
Alarm
Contents
Synopsis
type PBool = Dist BoolSource
flp :: Float -> PBoolSource
b :: PBoolSource
prior burglary 1%
e :: PBoolSource
prior earthquake 0.1%
a :: Bool -> Bool -> PBoolSource
conditional probability of alarm given burglary and earthquake
j :: Bool -> PBoolSource
conditional probability of john calling given alarm
m :: Bool -> PBoolSource
conditional probability of mary calling given alarm
data Burglary Source
calculate the full joint distribution
Constructors
Fields
Instances
bJoint :: Dist BurglarySource
pmj :: ProbabilitySource
what is the probability that mary calls given that john calls?