probability-0.1: Computations with discrete random variablesSource codeContentsIndex
Alarm
Contents
Alarm network
Synopsis
type PBool = Dist Bool
flp :: Float -> PBool
b :: PBool
e :: PBool
a :: Bool -> Bool -> PBool
j :: Bool -> PBool
m :: Bool -> PBool
data Burglary = B {
burglary :: Bool
earthquake :: Bool
alarm :: Bool
john :: Bool
mary :: Bool
}
bJoint :: Dist Burglary
pmj :: Probability
Documentation
type PBool = Dist BoolSource
flp :: Float -> PBoolSource
Alarm network
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
B
burglary :: Bool
earthquake :: Bool
alarm :: Bool
john :: Bool
mary :: Bool
show/hide Instances
bJoint :: Dist BurglarySource
pmj :: ProbabilitySource
what is the probability that mary calls given that john calls?
Produced by Haddock version 2.1.0