Uncertainty, Probability Theory, and Bayesian Inference
Foundations of Uncertainty and Probability
Nature of Uncertainty in Intelligent Systems:
Real-world environments are inherently non-deterministic, partially observable, and noisy.
Artificial intelligence agents must handle uncertainty due to incomplete information, imperfect sensors, and unpredictable environmental dynamics.
Planetary rovers navigating extraterrestrial terrain exemplify systems operating under uncertainty, where terrain roughness, mechanical slippage, and sensor degradation require probabilistic planning.

Real-World Forecasting Applications:
Weather forecasting models quantify uncertainty through probability values associated with future states.
A 36-hour predictive weather horizon tracks temperature and precipitation probabilities across successive observation windows:
Tonight: Clear, Low , chance of precipitation.
Thursday: High , chance of precipitation.
Thursday Night: Low , chance of precipitation.
Friday: High , chance of precipitation.
Friday Night: Low , chance of precipitation.

Possible Worlds, Sample Spaces, and Discrete Probability Models
Formal Definitions of Probability Theory:
Possible World (): A formal state or atomic configuration of the universe representing one specific outcome.
Sample Space (): The set containing all possible worlds .
Probability Function (): A real-valued assignment mapping each possible world to a numerical degree of belief.
Axiomatic Foundations of Probability:
Non-negativity and Boundedness: The probability assigned to any possible world must lie strictly within the range zero to one:
Total Probability across the Sample Space: The sum of probabilities assigned to all possible worlds within the universe must equal exactly one:
Single Die Roll Model:
For a standard, fair six-sided die, the sample space consists of six mutually exclusive possible worlds:
By symmetry and the total probability axiom, each world has equal probability:
Two-Dice Combination Model:
Rolling two fair dice yields an atomic sample space consisting of equally likely possible worlds:
Each individual pair outcome has a joint probability:
The sums of outcomes form distinct events:
Sum equal to : The only valid outcome is , yielding a probability of .
Sum equal to : There are favorable outcomes—, , , , , and . The probability is:
Sum equal to : The only favorable outcome is , yielding a probability of:
Conditional Probability and the Product Rule
Unconditional Probability (Prior Probability):
Verbatim Definition: The degree of belief in a proposition in the absence of any other evidence.
Expressed as , where no prior conditions or new observations have modified belief.
Conditional Probability (Posterior Probability):
Verbatim Definition: The degree of belief in a proposition given some evidence that has already been revealed.
Expressed notationally as , pronounced "the probability of given ".
Common real-world instances of conditional beliefs include:
Meteorological persistence:
Dynamic navigation:
Medical diagnostics:
Mathematical Formulation:
Conditional probability is defined formally as the joint probability of both events occurring divided by the probability of the evidence event:
This definition is strictly valid when .
The Product Rule:
Rearranging the conditional probability definition yields the product rule, expressing joint probabilities as a product of prior and conditional terms:
Worked Two-Dice Conditional Probability Scenario:
Unconditional Prior: Prior to any rolling, the probability of rolling a sum of with two fair dice is:
Evidence Revealing Condition: Suppose the first die is rolled and reveals the value (event ).
Probability of the Evidence: Six out of the possible configurations have as the first die: , , , , , and .
Joint Outcome: Only the world satisfies both rolling a sum of and having as the first die:
Posterior Probability Calculation: Applying the definition of conditional probability:
The revelation of evidence updates the probability from to .
Random Variables and Probability Distributions
Random Variable Definition:
Verbatim Definition: A variable in probability theory with a domain of possible values it can take on.
Denoted by capital letters (e.g., , , ), while specific values in their domain are denoted by lowercase letters (e.g., , ).
Domains of Random Variables:
Discrete random variables have defined, countable state spaces:
Probability Distributions:
A probability distribution assigns probabilities across every possible outcome in the domain of a random variable.
Example distribution for :
Distributions are compactly represented as ordered vectors:
The elements of a valid probability distribution vector must sum to :
Statistical Independence
Formal Definition:
Verbatim Definition: The knowledge that one event occurs does not affect the probability of the other event.
Formally, event is independent of event if:
Mathematical Product Property of Independence:
Under the product rule, .
When independence holds, substituting yields:
Dice Examples of Independence vs. Mutually Exclusive Events:
Independent Rolls: Consider two separate dice, Red and Blue.
The probability of Red showing and Blue showing is computed via independent multiplication:
The probability of Red showing and Blue showing :
Dependent / Mutually Exclusive Outcomes: Consider two conflicting outcomes for the same die roll.
Red showing and Red showing on the same roll cannot co-occur:
Testing the independence product formula gives:
Because , outcomes of the same variable are strongly dependent rather than independent.
Bayes' Rule: Formulation, Derivation, and Inference
Mathematical Derivation of Bayes' Rule:
By the product rule, the joint probability can be expanded in two equivalent ways:
Equating both expressions gives:
Dividing both sides by yields Bayes' Rule:
Philosophical and Structural Significance:
Bayes' Rule provides a rigorous mechanism for inverting conditional probabilities.
It converts the likelihood of observing evidence given a hypothesis into the posterior probability of the hypothesis given that evidence:
Domain applications across reasoning tasks:
Meteorology: Knowing enables calculating .
Medicine: Knowing enables calculating .
Forensics / Law Enforcement: Knowing enables calculating .
Step-by-Step Meteorological Case Study:
Problem Statement: Given that the morning is cloudy, what is the probability that it will rain in the afternoon?
Known Statistical Premises:
of rainy afternoons begin with cloudy mornings:
of all days have cloudy mornings:
of all days have rainy afternoons:
Bayes' Rule Computation:
Conclusion: There is a () probability of afternoon rain given morning clouds.
Joint Probability Distributions and Normalization
Joint Probability Representation:
A joint probability distribution captures the probabilities of all simultaneous assignments to a set of random variables.
For the binary variables (Morning Clouds: vs. ) and (Afternoon Rain: vs. ), the full joint distribution contains four atomic worlds.

Numerical Breakdown of the Joint Distribution:
Sum of All Joint Probabilities:
Conditional Inference Using Normalization Constant ():
To compute the conditional distribution , observe that the conditioning event isolates the column where :
The denominator acts as a normalizing scalar :
Vector formulation using the normalization constant:
Resulting Posterior Beliefs:
General Rules of Probability
The Negation Rule:
The probability of an event not occurring is equal to one minus the probability of the event occurring:
The Inclusion-Exclusion Principle:
For any two events and , the probability of either event occurring is the sum of their individual probabilities minus the joint probability of both occurring (to prevent double-counting the intersection):
Marginalization (Summing Out):
Binary Form: The marginal prior probability of an event is determined by summing its joint occurrences across all possible states of an auxiliary variable :
General Form for Discrete Random Variables: Summing over all possible values in the domain of random variable :
Empirical Demonstration Using Weather Table:
Conditioning (Law of Total Probability):
Binary Form: Expresses the marginal probability of an event as a weighted average of conditional probabilities conditioned on a partition of the space:
General Form for Discrete Random Variables: Conditioning across all outcomes of a random variable :
Conditioning is derived directly by applying the product rule () inside the marginalization summation.