CSCE 420 Lecture 22

From Notes
Jump to navigation Jump to search

« previous | Tuesday, April 9, 2013 | next »


Probability

Uncertainty in AI

Limitations of First-Order Logic: handling exceptions to the rules

  • Universal rules

Most birds fly:

  • Default Logic: bird(x)/flies(x) → flies(x)
  • Strength of rules in expert systems = "certainty factors" people gave up on certainty factors in favor of probability
    • headache(x) →0.1 meningitis(x)
    • toothache(x) →0.6 cavity(x)
  • Conditional Probability
    • Pr[cavitytoothache] = 0.6 (read "probability of having a cavity given a toothache")

Applications

  • Diagnosis in engineering systems
  • Decision-making in uncertain environments
  • "rational" decision-making: take action that maximizes expected (weighted by probability) outcome/payoff


Definitions and Axioms

  • Pr[E] = Probability of an event E
  • 0Pr[E]1, and eiEPr[ei]=1
  • Pr[¬E]=1Pr[E]
  • Pr[AB]=Pr[A]+Pr[B]Pr[AB]
  • Pr[AB]=Pr[A,B]=Pr[B]Pr[AB]=Pr[A]Pr[BA] (joint probability; product rule) [1]

Interpretations

  • Frequentist: (Objectivist, Empiricist) probabilities are estimates of outcomes of repeated experiments
  • Subjective: beliefs and don't have to be tied to repeatable events
  • Stochastic: Lazy (don't want to quantify all relevant factors); ignorance


Example

3 Vars:

  • catch, cavity, and toothache
  • JPT enumerates all possibilities (23 for 3 binary variables) and their probability
  • Calculations
    1. Calculate Priors (e.g. Pr[cavity]=0.108+0.012+0.072+0.008=0.2): sum of all cells that satisfy probability independent of other variables
    2. Calculate Joints (e.g. Pr[catch,toothache]=0.108+0.016=0.124)
    3. Calculate Conditionals (e.g. Pr[cavity(catchtoothache)]=Pr[cavity,catch,toothache]Pr[catch,toothache]=0.1080.124=0.871
Joint Probability Table
  Toothache ¬Toothache
Catch ¬Catch Catch ¬Catch
Cavity 0.108 0.012 0.072 0.008
¬Cavity 0.016 0.064 0.144 0.576
Marginalization
"summing out" unknown variables
Normalization
Conditional probabilities are proportional to joint probabilities
Pr[AB]+Pr[¬AB]=1, so Pr[A,B]Pr[B]+Pr[¬A,B]Pr[B]=1Pr[B](Pr[A,B]+Pr[¬A,B])=1
Normalization constant α=1Pr[B]

In Practice

We can find

  • Pr[cavity]=0.2
  • Pr[toothachecavity]=0.6
  • Pr[catchcavity]=0.9

We have conditional probabilities as causal relationships, but we want them as diagnostic relationships: Pr[cavitytoothache]

  • We use Bayes' Rule for this: Pr[cavitytoothache]=Pr[toothachecavity]Pr[cavity]Pr[toothache]


Bayes' Rule

Pr[AB]=Pr[BA]Pr[A]Pr[B]

Proof

From product rule, we have Pr[A,B]=Pr[AB]Pr[B]=Pr[BA]Pr[A]

Take the second part of this equality and divide by B:

Pr[AB]=Pr[BA]Pr[A]Pr[B]

Q.E.D.

Conditional Independence Assumption

Pr[(A,B)C]=Pr[AC]Pr[BC]


Footnotes

  1. Pr[AB]Pr[A]Pr[B] (Depends on correlation)