Uncertainty in AI: Sources and Dealing with Decision-Making
Classical logic-based AI assumes complete, certain knowledge - a statement is True or False, never "probably true." Real agents almost never have this luxury. Module 3 begins by cataloging why uncertainty arises and why probability theory, not logic alone, is the right mathematical tool.
Uncertainty in AI refers to the agent's lack of complete, accurate knowledge about the current state of the world, the outcomes of its actions, or both - preventing it from deducing a guaranteed-correct course of action using pure logical inference alone.
Sources of Uncertainty
| Source | Description | Example |
|---|---|---|
| Sensor noise/limitations | Physical sensors are imprecise or have limited range/resolution | A camera misjudging distance in fog |
| Partial observability | The agent cannot perceive the complete state of the environment | A poker player not seeing opponents' cards |
| Stochastic/non-deterministic effects | Actions don't always produce the same outcome | A robot's wheels slipping unpredictably |
| Incomplete or noisy data | Training/decision data has errors, gaps, or is unrepresentative | Missing fields in a patient's medical record |
| Theoretical ignorance | We may not even have a complete causal model of the domain | Imperfect models of disease progression |
| Practical/computational limits | Even with full information, exact reasoning may be computationally infeasible | Exact inference in large Bayesian networks is NP-hard |
Why Not Just Use Logic with "Maybe" Rules?
A natural first instinct is to write logical rules like "Toothache → Cavity." But this fails because the rule is neither always true (a toothache can have other causes) nor will adding more and more exception clauses (qualifications) ever produce a complete, manageable rule set - this is known as the qualification problem. Probability theory solves this elegantly by allowing degrees of belief rather than requiring exhaustive logical certainty.
Trying to list every possible exception to a logical rule (e.g., every possible cause of a "check engine" light besides the obvious one) is practically impossible - there are too many rare interacting causes to enumerate exhaustively. Probability sidesteps this by summarizing all that uncertainty into a single likelihood number instead of requiring a complete logical theory.
Probability as a Summary of Ignorance
A probability statement like P(Cavity | Toothache) = 0.6 doesn't claim cavities cause toothaches 60% of the time in some deep causal sense - it summarizes the agent's degree of belief given everything else it doesn't know, observe, or have bothered to model. This is the foundation for the rest of Module 3.
A self-driving car's perception system reports "80% confidence this is a pedestrian" rather than a binary yes/no - this probabilistic summary captures sensor noise, occlusion, and model uncertainty all at once, in a form the car's decision system can act on rationally.
Key Points
- Uncertainty arises from sensor noise, partial observability, stochastic effects, incomplete data, and computational limits.
- Pure logic fails due to the qualification problem - too many exceptions to enumerate.
- Probability theory provides a principled, compact way to reason under uncertainty.
Interview Questions
Logical rules like "Toothache → Cavity" are neither universally true (many things besides cavities cause toothaches) nor completable into an exhaustive exception-free rule set, due to the qualification problem. Probability lets us instead express a degree of belief, e.g., P(Cavity|Toothache)=0.6, compactly summarizing all the unlisted causes and uncertainty without needing to enumerate them.