probability-0.2.7: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.Alarm

Contents

Synopsis

Documentation

Numeric.Probability.Example.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 

Fields

pmj :: Probability Source #

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