AI Notes
Master reasoning under uncertainty. Probability, Bayes. AI 2024.
Why Uncertainty in AI?
Classical logic assumes complete, certain knowledge: every statement is definitively true or false. But the real world is full of uncertainty—medical tests have false positives, weather forecasts are probabilistic, and sensor readings are noisy. An AI system that demands certainty before acting would be paralyzed by the complexity of real-world decision-making.
Uncertain reasoning provides formal frameworks for making rational decisions despite incomplete, ambiguous, or probabilistic information. These frameworks determine how to combine uncertain evidence, update beliefs as new information arrives, and choose actions that maximize expected utility.
Sources of Uncertainty
| 1. Incomplete information | Patient hasn't had all tests yet |
| 2. Noisy sensors | Camera image is blurry, microphone has static |
| 3. Inherently stochastic events | Dice rolls, quantum phenomena |
| 4. Modeling limitations | Simplified models miss real-world complexity |
| 5. Adversarial uncertainty | Other agents' unpredictable behavior |
| 6. Ambiguity | "The bank is closed" — financial or river? |
Probability Theory: The Foundation
Bayes' Theorem
Medical Diagnosis Example
| Disease prevalence | P(Disease) = 0.001 (1 in 1000) |
| Test sensitivity | P(Positive|Disease) = 0.99 (catches 99% of sick) |
| Test specificity | P(Negative|Healthy) = 0.95 (5% false positive rate) |
Bayesian Networks
Structure
A Bayesian network is a directed acyclic graph where:
- Nodes represent random variables
- Edges represent direct probabilistic dependencies
- Each node stores conditional probability tables (CPTs)
Inference in Bayesian Networks
| Query | P(Burglary | JohnCalls=true, MaryCalls=true) |
| Without evidence | P(B) = 0.001 |
| With both calling | P(B|j,m) = 0.284 |
Certainty Factors (MYCIN Approach)
MYCIN used certainty factors (CF) instead of probability:
| If evidence is certain (CF=1) | CF(flu) = 0.8 × 1.0 = 0.8 |
| If evidence is uncertain (CF=0.6) | CF(flu) = 0.8 × 0.6 = 0.48 |
| Combined | 0.7 + 0.5×(1-0.7) = 0.7 + 0.15 = 0.85 |
Dempster-Shafer Theory
Handles ignorance explicitly (unlike probability which assigns it implicitly):
| Frame of discernment | Θ = {disease_A, disease_B, disease_C} |
| Belief | Bel(A) = sum of masses of all subsets ⊆ {A} |
| Plausibility | Pl(A) = 1 - Bel(¬A) |
Fuzzy Logic for Uncertainty
Decision Theory: Acting Under Uncertainty
| Example | Umbrella decision |
| Decision | Don't bring umbrella (EU=7.0 > 6.6) |
| But close! If P(rain) = 0.4 | EU(umbrella) wins |
Comparison of Uncertainty Methods
| Method | Handles | Foundation | Advantage |
|---|---|---|---|
| Probability | Randomness | Axioms of probability | Mathematically rigorous |
| Bayesian Networks | Complex dependencies | Conditional probability | Efficient inference |
| Certainty Factors | Expert confidence | Heuristic combination | Simple, intuitive |
| Dempster-Shafer | Ignorance | Mass functions | Distinguishes unknown from improbable |
| Fuzzy Logic | Vagueness | Membership functions | Handles imprecise concepts |
Interview Questions
Q: Why not just use probability for everything? A: Probability struggles with ignorance vs. disbelief. P(A) = 0.5 could mean "equally likely true/false" (coin flip) or "I have no idea" (complete ignorance). Dempster-Shafer distinguishes these. Also, acquiring precise probabilities from experts is difficult—certainty factors and fuzzy values are more elicitable.
Q: What is the difference between a Bayesian network and a neural network? A: Bayesian networks encode explicit causal/probabilistic relationships (interpretable structure). Neural networks learn implicit patterns from data (black box). BNs require expert-designed structure + probability tables; NNs require only data. BNs give calibrated uncertainty; NNs need special techniques (dropout, ensembles) for uncertainty.
Q: How do you choose between uncertainty frameworks? A: Use probability/Bayesian networks when you have good data and need calibrated predictions. Use certainty factors when building expert systems with human-elicited confidence. Use Dempster-Shafer when distinguishing ignorance matters (sensor fusion). Use fuzzy logic when concepts are inherently vague rather than random.
Exam Focus
Revise definitions, diagrams, examples, and short-answer points for Uncertain Reasoning - Probabilistic AI.
Interview Use
Prepare one clear explanation, one practical example, and one common mistake for this Artificial Intelligence topic.
Search Terms
artificial-intelligence, artificial intelligence, artificial, intelligence, reasoning, and, inference, uncertain
Related Artificial Intelligence Topics