Artificial IntelligenceArtificial Intelligence

Probabilistic Reasoning in AI

Understanding Uncertainty, Bayes' Theorem, Bayesian Networks, and Markov Decision Processes (MDPs).

Probabilistic Reasoning in AI

Artificial Intelligence often operates in environments that are partially observable, non-deterministic, or dynamic. In such scenarios, absolute certainty is impossible. Probabilistic reasoning provides a formal mathematical framework for managing uncertainty and making rational decisions based on available evidence.

Uncertainty in AI

Uncertainty arises from various sources, including noisy sensor data, incomplete information, and inherent stochasticity in the environment.

Probabilistic models allow AI agents to express their degree of belief in various states of the world, represented as values between 0 and 1.

Bayes' Theorem

At the core of probabilistic reasoning is Bayes' Theorem, which describes how to update the probability of a hypothesis as more evidence or information becomes available.

P(A∣B)=P(B∣A)P(A)P(B)P(A|B) = \frac{P(B|A)P(A)}{P(B)}

Where:

  • P(A∣B)P(A|B) is the posterior probability: the probability of hypothesis A given evidence B.
  • P(B∣A)P(B|A) is the likelihood: the probability of evidence B given that hypothesis A is true.
  • P(A)P(A) is the prior probability: the initial probability of hypothesis A before observing evidence.
  • P(B)P(B) is the marginal likelihood: the total probability of observing the evidence.

Bayesian Networks

Bayesian Networks, also known as belief networks, are directed acyclic graphs (DAGs) that represent a set of variables and their conditional dependencies.

  • Nodes: Represent random variables (e.g., Burglary, Earthquake).
  • Edges: Represent conditional dependencies.

Bayesian Networks dramatically reduce the computational complexity of representing joint probability distributions by exploiting conditional independence between variables.

Markov Decision Processes (MDPs)

While Bayesian Networks model beliefs, Markov Decision Processes (MDPs) provide a framework for decision-making under uncertainty.

An MDP is defined by a tuple \{S, A, P, R, \gamma\}:

ComponentSymbolDescription
StatesSA finite set of states in the environment.
ActionsAA set of available actions the agent can take.
TransitionsPP(s′∥s,a)P(s'\|s, a) is the probability of moving to state s′s' after taking action aa in state ss.
RewardsRR(s,a,s′)R(s, a, s') is the immediate reward received after transitioning.
Discountγ\gammaA factor between 0 and 1 that discounts future rewards.

The goal of solving an MDP is to find an optimal policy, π∗\pi^*, which maps states to actions in a way that maximizes the expected cumulative reward.

The Markov Property states that the future is independent of the past given the present. This means the transition probabilities depend only on the current state and action.

AI Knowledge Assistant

สวัสดีครับ! ผมคือ AI Assistant ประจำเว็บไซต์

คุณสามารถสอบถามข้อมูลด้าน Computer Science, Business, หรือ Finance ได้เลยครับ