probability-0.2.7: Probabilistic Functional Programming

Safe HaskellSafe
LanguageHaskell98

Numeric.Probability.Example.Alarm

Documentation

type Probability = Rational Source #

type Dist a = T Probability a Source #

type PBool = T Probability Bool Source #

flp :: Probability -> PBool Source #

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
Instances
Instance details

Defined in Numeric.Probability.Example.Alarm

Methods

(==) :: Burglary -> Burglary -> Bool #

(/=) :: Burglary -> Burglary -> Bool #

Instance details

Defined in Numeric.Probability.Example.Alarm

bJoint :: Dist Burglary Source #

pmj :: Probability Source #

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

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