probability-0.1: Computations with discrete random variables

Alarm

Synopsis

Documentation

type PBool = Dist Bool Source

flp :: Float -> PBool Source

Alarm network

b :: PBool Source

prior burglary 1%

e :: PBool Source

prior earthquake 0.1%

a :: Bool -> Bool -> PBool Source

conditional probability of alarm given burglary and earthquake

j :: Bool -> PBool Source

conditional probability of john calling given alarm

m :: Bool -> PBool Source

conditional probability of mary calling given alarm

data Burglary Source

calculate the full joint distribution

Constructors

B

Instances

bJoint :: Dist Burglary Source

pmj :: Probability Source

what is the probability that mary calls given that john calls?

AltStyle によって変換されたページ (->オリジナル) /