Probabilistic Reasoning: How AI Handles 'Maybe' and Uncertainty
AI কীভাবে 'হতেও পারে' নিয়ে কাজ করে? প্রোবাবিলিটি ও বেইজ থিওরেম!

In the real world, things aren't just true or false. Discover how AI uses Probability and Bayes' Theorem to make smart decisions when dealing with uncertainty!
বাস্তব জীবনে সবকিছু ১০০% নিশ্চিত হওয়া যায় না। চলো দেখি AI কীভাবে প্রোবাবিলিটি এবং বেইজ থিওরেম ব্যবহার করে অনিশ্চয়তার মধ্যেও দারুণ সিদ্ধান্ত নেয়!

Hello there! Today we are going to dive into a very important and fascinating topic in Artificial Intelligence — Probabilistic reasoning. To put it simply, we will learn how AI makes decisions in uncertain situations, much like how humans deal with "it might or might not happen."

1. Uncertainty

  • What it is: In standard logic, we use if-then rules like $A \rightarrow B$. This means if $A$ is true, $B$ is true. But in the real world, we can rarely be 100% sure if $A$ is true or false. This state is called Uncertainty.
  • How it works: When we aren't completely sure about a piece of information, standard logic fails. To represent and process this uncertain knowledge, we rely on Uncertain reasoning or Probabilistic reasoning.
  • Why it matters: Flawless, 100% accurate data is nearly impossible to find in the real world. If AI only relied on absolute 'yes' or 'no', it wouldn't be able to solve complex, real-world problems.

Causes of Uncertainty

Uncertainty in data can arise from various factors:

  1. Information from unreliable sources
  2. Experimental Errors during data collection
  3. Equipment fault in sensors or machinery
  4. Temperature variation
  5. Climate change effects

2. Probabilistic Reasoning

  • What it is: It is a way of knowledge representation where we apply Probability to indicate uncertainty in information.
  • How it works: We combine Probability theory with Logic to beautifully handle uncertainty. For example, statements like "It might rain today" or "Who will win the match?" are probable events.
  • Need in AI: It is required when:
    • The output is entirely unpredictable.
    • The number of possibilities is too large to handle.
    • An unknown error occurs during an experiment.
  • The two main tools for solving such problems are Bayes' rule and Bayesian Statistics.

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Uncertainty and Probabilistic Reasoning Key Point 1: Uncertainty arises when the system cannot confidently state whether a predicate or event is true or false. Key Point 2: Probabilistic reasoning combines logic with probability theory to effectively represent and process uncertain real-world knowledge. Advantage: Enables AI systems to operate successfully in unpredictable environments and handle incomplete or noisy data. Disadvantage: Computation can become highly complex when the number of possibilities and predicates grows excessively large.


3. Fundamentals of Probability

Let's quickly revise what Probability actually is and its basic terms.

  • What it is: The chance or likelihood of an uncertain event occurring is called Probability. It is a numerical measure of likelihood.
  • How it works: The value always lies between 0 and 1. Mathematically: $0 \le P(A) \le 1$.
    • If $P(A) = 0$, it means Total uncertainty (the event has zero chance of happening).
    • If $P(A) = 1$, it means Total certainty (the event will definitely happen).
  • The Formula: The general formula is: $$\text{Probability} = \frac{\text{Number of desired outcomes}}{\text{Total number of outcomes}}$$
  • The probability of an event not occurring is $P(\neg A)$. The sum is always 1: $P(\neg A) + P(A) = 1$.

Important Probability Terms

  • Event: Each possible outcome of a variable.
  • Sample space: The collection of all possible events.
  • Random variables: Used to mathematically represent objects and events in the real world.
  • Prior probability: The probability calculated before observing any new information or evidence.
  • Posterior Probability: The probability calculated after taking all new evidence into account. It's a combination of prior probability and new information.

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Fundamentals of Probability Key Point 1: Probability values always range between 0 (absolute impossibility) and 1 (absolute certainty). Key Point 2: Prior probability is computed before looking at new evidence, while posterior probability is calculated after incorporating new data. Advantage: Provides a rigorous mathematical framework to quantify and reason about chances and risks. Disadvantage: Requires precise historical data or accurate initial assumptions to estimate prior probabilities effectively.


4. Conditional Probability and Venn Diagram

Conditional Probability

  • What it is: The probability of an event happening, given that another event has already happened.
  • How it works: If event $B$ has already occurred, the probability of event $A$ occurring is written as $P(A|B)$. $$P(A|B) = \frac{P(A \wedge B)}{P(B)}$$ Here, $P(A \wedge B)$ is the Joint probability of both occurring, and $P(B)$ is the Marginal probability of $B$.

Real-life Example

Imagine a class where 70% of students like English ($B$) and 40% like both English and Math ($A \wedge B$). What percentage of students who like English also like Math? We need $P(A|B)$.

  • English lovers: $P(B) = 0.7$
  • Both lovers: $P(A \wedge B) = 0.4$
  • $P(A|B) = \frac{0.4}{0.7} = 0.57$ or $57%$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Conditional Probability & Venn Diagrams Key Point 1: Conditional probability measures the likelihood of an event occurring given that another event has already occurred. Key Point 2: The intersection area ($A \wedge B$) in a Venn diagram represents the joint probability of both events happening simultaneously. Advantage: Allows updating probabilities dynamically based on existing context or conditions. Disadvantage: Cannot be computed if the conditioning event has a marginal probability of zero ($P(B) = 0$) as it leads to division by zero.


5. Bayes' Theorem

Now for the hero of this chapter—Bayes' theorem! Modern AI probabilistic inference is heavily based on this.

  • What it is: A mathematical rule that helps determine the probability of an event using uncertain knowledge, named after British mathematician Thomas Bayes.
  • How it works: It connects conditional and marginal probabilities. If we know $P(A|B)$, we can easily calculate the reverse, $P(B|A)$. It helps update our previous predictions based on new real-world data.

Derivation

Using the product rule of conditional probability:

  1. $P(A \wedge B) = P(A|B)P(B)$
  2. $P(A \wedge B) = P(B|A)P(A)$ Equating both sides gives us the main formula: $$P(A|B) = \frac{P(B|A)P(A)}{P(B)}$$

Terminology

  • $P(A|B)$ (Posterior): What we want to find. The probability of hypothesis $A$ after evidence $B$ occurs.
  • $P(B|A)$ (Likelihood): The probability of evidence $B$ occurring if hypothesis $A$ is true.
  • $P(A)$ (Prior probability): The general probability of the hypothesis before considering evidence.
  • $P(B)$ (Marginal probability): The pure total probability of the evidence occurring.

Cause and Effect

When we see an effect and want to guess the unknown cause: $$P(\text{cause}|\text{effect}) = \frac{P(\text{effect}|\text{cause}) \times P(\text{cause})}{P(\text{effect})}$$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Bayes' Theorem Key Point 1: It maps the inverse relationship between conditional probabilities: calculating $P(B|A)$ using $P(A|B)$. Key Point 2: The rule is expressed as $\text{Posterior} = \frac{\text{Likelihood} \times \text{Prior}}{\text{Marginal}}$. Advantage: Forms the foundation for modern AI probabilistic inference and allows systems to learn/update from new real-world data. Disadvantage: Computing the marginal probability denominator can become computationally intractable when dealing with a vast number of multiple conditions.


6. Practice Examples of Bayes' Rule

Example 1: Medical Diagnosis (Meningitis & Stiff Neck)

  • Question: A patient has a stiff neck. What is the probability they have meningitis?
  • Given Data:
    • Meningitis causes a stiff neck 80% of the time: $P(\text{stiff neck}|\text{meningitis}) = 0.8$
    • General probability of having meningitis: $P(\text{meningitis}) = 1/30,000$
    • General probability of having a stiff neck: $P(\text{stiff neck}) = 0.02$
  • Calculation: $$P(\text{meningitis}|\text{stiff neck}) = \frac{0.8 \times (1/30000)}{0.02} \approx 0.00133$$
  • Conclusion: Only about 1 in 750 patients with a stiff neck actually has meningitis. AI does the math so we don't panic!

Example 2: Playing Cards

  • Question: You draw a card. If it's a Face card, what's the probability it is a King?
  • Given Data:
    • $P(\text{King}) = 4/52 = 1/13$
    • $P(\text{Face}) = 12/52 = 3/13$
    • $P(\text{Face}|\text{King}) = 1$ (All Kings are face cards)
  • Calculation: $$P(\text{King}|\text{Face}) = \frac{1 \times (1/13)}{3/13} = 1/3$$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Application Examples of Bayes' Theorem Key Point 1: Medical diagnosis uses Bayes' rule to filter high-probability symptoms down to the actual low-probability disease causes. Key Point 2: Card problem demonstrates that restricting the sample space to a known subset (Face cards) changes the total outcome distribution. Advantage: Translates subjective medical or situational observations into precise, actionable numerical probabilities.


7. Bayesian Belief Networks (BBN)

Where is Bayes' Theorem used? In Robotics, Weather forecasting, and solving the famous Monty Hall Problem! All of this powers Bayesian Belief Networks (BBN).

  • What it is: A probabilistic graphical model representing variables and their conditional dependencies via a Directed Acyclic Graph (DAG).
  • How it works: It uses probability distributions for prediction, anomaly detection, and decision-making under uncertainty.
  • Nodes & Arcs: Nodes represent random variables, and arrows (Arcs) represent causal relationships. If Node A has an arrow pointing to Node B, A is the Parent of B.

Detailed Example: The Burglary-Alarm Problem

Imagine a house with an Alarm (A). The alarm can be triggered by a Burglary (B) or a Fire (F). When the alarm rings, Neighbor 1 (P1) and Neighbor 2 (P2) might call you. However, P1 is forgetful, and P2 listens to loud music.

Question: What is the joint probability that the alarm rings, both P1 and P2 call, but there was NO burglary and NO fire? ($P(P1, P2, A, \neg B, \neg F)$) Using the BBN chain rule and Conditional Probability Tables (CPTs): $$= P(P1|A) \times P(P2|A) \times P(A|\neg B, \neg F) \times P(\neg B) \times P(\neg F)$$ $$= 0.95 \times 0.80 \times 0.001 \times 0.999 \times 0.998 = 0.00075$$

The probability of this entire specific scenario happening is incredibly low: 0.00075!

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Bayesian Belief Network (BBN) Key Point 1: BBN is a probabilistic graphical model representing variables as nodes and conditional dependencies as directed edges (Arcs) in a Directed Acyclic Graph (DAG). Key Point 2: Joint probability of a specific configuration in BBN is calculated by multiplying the conditional probabilities of all nodes given their specific parents' states. Advantage: Simplifies massive global probability combinations by breaking them into localized parent-child interactions found in the CPTs.

কিরে দোস্ত! আজকে আমরা AI-এর একটা খুবই গুরুত্বপূর্ণ এবং চমৎকার টপিক নিয়ে আলোচনা করব, সেটা হলো Probabilistic reasoning in Artificial intelligence (আর্টিফিশিয়াল ইন্টেলিজেন্সে সম্ভাব্যতাভিত্তিক যুক্তি)। সহজ ভাষায় বলতে গেলে, AI কীভাবে আমাদের মতো করে "হতেও পারে, আবার নাও হতে পারে" এই ধরণের অনিশ্চিত পরিস্থিতিতে সিদ্ধান্ত নেয়, সেটাই আমরা সহজভাবে শিখব।

১. Uncertainty (অনিশ্চয়তা)

  • What it is: সাধারণ লজিকে আমরা যদি ইফ-দেন (if-then) রুল ব্যবহার করি, তবে লিখি $A \rightarrow B$। এর মানে হলো যদি $A$ সত্য হয় তবে $B$ সত্য হবে। কিন্তু বাস্তব দুনিয়ায় অনেক সময় আমরা নিশ্চিত হতে পারি না যে $A$ আদৌ সত্য নাকি মিথ্যা। এই অবস্থাকেই বলা হয় Uncertainty বা অনিশ্চয়তা।
  • How it works: যখন আমরা কোনো তথ্যের ব্যাপারে পুরোপুরি নিশ্চিত হতে পারি না, তখন সাধারণ লজিক বা রুল কাজ করে না। তখন আমাদের এই জ্ঞানকে প্রসেস করার জন্য Uncertain reasoning বা Probabilistic reasoning-এর সাহায্য নিতে হয়।
  • Why it matters: বাস্তব জীবনে নিখুঁত এবং ১০০% সঠিক ডেটা পাওয়া প্রায় অসম্ভব। তাই AI যদি শুধু 'হ্যাঁ' অথবা 'না'-তে আটকে থাকে, তবে সে বাস্তব সমস্যার সমাধান করতে পারবে না।

অনিশ্চয়তার কারণসমূহ

বাস্তবে বিভিন্ন কারণে তথ্যের মধ্যে অনিশ্চয়তা তৈরি হতে পারে: ১. Information from unreliable sources (নির্ভরযোগ্য নয় এমন উৎস) ২. Experimental Errors (পরীক্ষা-নিরীক্ষায় ভুল) ৩. Equipment fault (যন্ত্রপাতির ত্রুটি) ৪. Temperature variation (তাপমাত্রার পরিবর্তন) ৫. Climate change (জলবায়ু পরিবর্তন)

২. Probabilistic Reasoning (সম্ভাব্যতাভিত্তিক যুক্তি)

  • What it is: এটি হলো নলেজ রিপ্রেজেন্টেশনের এমন একটি উপায়, যেখানে অনিশ্চয়তা বোঝানোর জন্য আমরা Probability বা সম্ভাব্যতা অ্যাপ্লাই করি।
  • How it works: এখানে আমরা Probability theory-এর সাথে Logic-কে কম্বাইন করি। যেমন: "আজ বৃষ্টি হতে পারে" বা "দুটো দলের খেলায় কে জিতবে" — এগুলো সবই প্রবাবেল ঘটনা।
  • Need in AI: AI-তে এটি প্রয়োজন কারণ:
    • যখন ফলাফল পুরোপুরি আনপ্রেডিক্টেবল (unpredictable) হয়।
    • সম্ভাবনার সংখ্যা অনেক বেশি বড় হয়ে যায়।
    • অজানা এরর (unknown error) চলে আসে।
  • সমাধানের প্রধান পথ হলো Bayes' rule এবং Bayesian Statistics

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Uncertainty and Probabilistic Reasoning Key Point 1: Uncertainty arises when the system cannot confidently state whether a predicate or event is true or false. Key Point 2: Probabilistic reasoning combines logic with probability theory to effectively represent and process uncertain real-world knowledge. Advantage: Enables AI systems to operate successfully in unpredictable environments and handle incomplete or noisy data. Disadvantage: Computation can become highly complex when the number of possibilities and predicates grows excessively large.


৩. Fundamentals of Probability

এবার চল একটু রিভিশন দেওয়া যাক যে Probability বা সম্ভাব্যতা জিনিসটা আসলে কী।

  • What it is: কোনো অনিশ্চিত ঘটনা ঘটার সম্ভাবনাকে Probability বলা হয়। এটি মূলত কোনো ঘটনা ঘটার একটি সংখ্যাসূচক পরিমাপ (numerical measure)।
  • How it works: প্রোবাবিলিটির মান সবসময় $0$ থেকে $1$-এর মধ্যে থাকে ($0 \le P(A) \le 1$)।
    • $P(A) = 0$ মানে ঘটনাটি ঘটার কোনো চান্সই নেই (Total uncertainty)।
    • $P(A) = 1$ মানে ঘটনাটি অবশ্যই ঘটবে (Total certainty)।
  • The Formula: $$\text{Probability} = \frac{\text{কাঙ্ক্ষিত ফলাফল}}{\text{মোট সম্ভাব্য ফলাফল}}$$
  • ঘটনা না ঘটার প্রোবাবিলিটি হলো $P(\neg A)$। অর্থাৎ, $P(\neg A) + P(A) = 1$।

গুরুত্বপূর্ণ কিছু টার্মস

  • Event: একটি ভ্যারিয়েবলের প্রতিটি সম্ভাব্য ফলাফল।
  • Sample space: সমস্ত সম্ভাব্য ইভেন্টের কালেকশন।
  • Random variables: ইভেন্টগুলোকে ম্যাথমেটিক্যালি রিপ্রেজেন্ট করার চলক।
  • Prior probability: নতুন কোনো তথ্য পর্যবেক্ষণ করার আগে যে প্রোবাবিলিটি হিসাব করা থাকে।
  • Posterior Probability: নতুন ইনফরমেশনকে বিবেচনায় নেওয়ার পরে যে প্রোবাবিলিটি গণনা করা হয়।

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Fundamentals of Probability Key Point 1: Probability values always range between 0 (absolute impossibility) and 1 (absolute certainty). Key Point 2: Prior probability is computed before looking at new evidence, while posterior probability is calculated after incorporating new data. Advantage: Provides a rigorous mathematical framework to quantify and reason about chances and risks.


৪. Conditional Probability and Venn Diagram

Conditional Probability (শর্তাধীন সম্ভাব্যতা)

  • What it is: একটা ঘটনা ইতিমধ্যে ঘটে গেছে, এই শর্তের ওপর ভিত্তি করে অন্য আরেকটি ঘটনা ঘটার সম্ভাবনা।
  • How it works: $B$ ঘটনাটি ঘটে গেছে, এই শর্তে $A$ ঘটার সম্ভাবনা হলো $P(A|B)$। $$P(A|B) = \frac{P(A \wedge B)}{P(B)}$$ এখানে, $P(A \wedge B)$ হলো $A$ এবং $B$-এর যৌথ সম্ভাবনা (Joint probability) এবং $P(B)$ হলো $B$-এর একক সম্ভাবনা।

উদাহরণ

একটি ক্লাসে ৭০% স্টুডেন্ট ইংলিশ পছন্দ করে ($B$) এবং ৪০% স্টুডেন্ট ইংলিশ ও ম্যাথ দুটোই পছন্দ করে ($A \wedge B$)। যারা ইংলিশ পছন্দ করে তাদের মধ্যে কত শতাংশ ম্যাথও পছন্দ করে?

  • $P(B) = 0.7$
  • $P(A \wedge B) = 0.4$
  • $P(A|B) = \frac{0.4}{0.7} = 0.57$ বা $57%$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Conditional Probability & Venn Diagrams Key Point 1: Conditional probability measures the likelihood of an event occurring given that another event has already occurred. Key Point 2: The intersection area ($A \wedge B$) in a Venn diagram represents the joint probability of both events happening simultaneously. Advantage: Allows updating probabilities dynamically based on existing context or conditions.


৫. Bayes' Theorem

এবার এই চ্যাপ্টারের সবচেয়ে হিরো টপিক—Bayes' theorem বা বেইজ উপপাদ্য!

  • What it is: অনিশ্চিত জ্ঞান দিয়ে কোনো ঘটনার প্রোবাবিলিটি নির্ধারণ করার নিয়ম। ব্রিটিশ গণিতবিদ থমাস বেইজ-এর নামানুসারে এর নামকরণ করা হয়েছে।
  • How it works: যদি আমাদের কাছে $P(A|B)$-এর জ্ঞান থাকে, তবে তার সাহায্যে আমরা খুব সহজে উল্টোটা অর্থাৎ $P(B|A)$ ক্যালকুলেট করতে পারি।

Derivation (প্রতিপাদন)

প্রডাক্ট রুল ব্যবহার করে:

  1. $P(A \wedge B) = P(A|B)P(B)$
  2. $P(A \wedge B) = P(B|A)P(A)$ দুটো সমান লিখে আমরা পাই প্রধান সূত্রটি: $$P(A|B) = \frac{P(B|A)P(A)}{P(B)}$$

টার্মিনোলজি

  • $P(A|B)$ (Posterior): এভিডেন্স $B$ ঘটার পর হাইপোথিসিস $A$-এর সম্ভাবনা।
  • $P(B|A)$ (Likelihood): হাইপোথিসিস সত্য হলে এভিডেন্স ঘটার সম্ভাবনা।
  • $P(A)$ (Prior probability): এভিডেন্স বিবেচনা করার আগে সাধারণ সম্ভাবনা।
  • $P(B)$ (Marginal probability): এভিডেন্সটি ঘটার মোট সম্ভাবনা।

Cause and Effect (কারণ ও ফলাফল)

অজানা কারণের ফলে সৃষ্ট প্রভাব দেখতে পেলে বেইজ রুল দাঁড়ায়: $$P(\text{cause}|\text{effect}) = \frac{P(\text{effect}|\text{cause}) \times P(\text{cause})}{P(\text{effect})}$$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Bayes' Theorem Key Point 1: It maps the inverse relationship between conditional probabilities: calculating $P(B|A)$ using $P(A|B)$. Key Point 2: The rule is expressed as $\text{Posterior} = \frac{\text{Likelihood} \times \text{Prior}}{\text{Marginal}}$. Advantage: Forms the foundation for modern AI probabilistic inference and allows systems to learn/update from new real-world data.


৬. Practice Examples of Bayes' Rule

Example-1: চিকিৎসাক্ষেত্রে (Meningitis ও Stiff Neck)

  • Question: একজন পেশেন্টের ঘাড় শক্ত (stiff neck)। তার মেনিঞ্জাইটিস হওয়ার সম্ভাবনা কত?
  • Given Data:
    • মেনিঞ্জাইটিস হলে ঘাড় শক্ত হয় ৮০% ক্ষেত্রে: $P(a|b) = 0.8$
    • মেনিঞ্জাইটিসের সাধারণ সম্ভাবনা: $P(b) = 1/30,000$
    • যেকোনো মানুষের ঘাড় শক্ত হওয়ার সাধারণ সম্ভাবনা: $P(a) = 0.02$
  • Calculation: $$P(b|a) = \frac{0.8 \times (1/30000)}{0.02} = 0.00133$$
  • Conclusion: ঘাড় শক্ত হওয়া ৭৫০ জন রোগীর মধ্যে গড়ে মাত্র ১ জনের মেনিঞ্জাইটিস থাকার সম্ভাবনা আছে। AI বেইজ রুল দিয়ে নিখুঁত হিসাব করে দিল!

Example-2: তাসের কার্ড

  • Question: একটি তাস টানা হলো। কার্ডটি ফেস কার্ড (Face card) হলে সেটি রাজা (King) হওয়ার সম্ভাবনা কত?
  • Given Data:
    • $P(\text{King}) = 4/52 = 1/13$
    • $P(\text{Face}) = 12/52 = 3/13$
    • $P(\text{Face}|\text{King}) = 1$
  • Calculation: $$P(\text{King}|\text{Face}) = \frac{1 \times (1/13)}{3/13} = 1/3$$

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Application Examples of Bayes' Theorem Key Point 1: Medical diagnosis uses Bayes' rule to filter high-probability symptoms down to the actual low-probability disease causes. Advantage: Translates subjective medical or situational observations into precise, actionable numerical probabilities.


৭. Bayesian Belief Network (BBN)

রোবোটিক্স, আবহাওয়া পূর্বাভাস বা মন্টি হল প্রবলেমে বেইজ থিওরেম প্রচুর ব্যবহৃত হয়। এর ওপর ভিত্তি করেই তৈরি হয় Bayesian Belief Network (BBN)

  • What it is: এটি একটি প্রোবাবিলিস্টিক গ্রাফিক্যাল মডেল যা ভ্যারিয়েবল এবং তাদের নির্ভরশীলতাকে একটি Directed Acyclic Graph (DAG) এর মাধ্যমে রিপ্রেজেন্ট করে।
  • Nodes & Arcs: প্রতিটি নোড এক একটি Random Variable। আর তীর চিহ্ন বা Arcs গুলো তাদের মধ্যকার সরাসরি সম্পর্ক বা কন্ডিশনাল প্রোবাবিলিটি নির্দেশ করে। তীর চিহ্ন যেদিক থেকে যায় সে হলো Parent।

Detailed Example: 'Burglary-Alarm' প্রবলেম

একটি বাড়িতে একটি অ্যালার্ম (A) লাগানো আছে। এর পেছনে দুটি কারণ আছে—চুরি (B) অথবা আগুন (F)। অ্যালার্ম বাজলে প্রতিবেশী P1 এবং P2 ফোন দেয়। কিন্তু P1 মাঝে মাঝে ভুলে যায়, আর P2 দূরে থাকে বলে শব্দ শোনে না।

Question: অ্যালার্ম বেজেছে, P1 এবং P2 ফোন দিয়েছে, কিন্তু চুরি হয়নি ($\neg B$) এবং আগুনও লাগেনি ($\neg F$) — এই পরিস্থিতির জয়েন্ট প্রোবাবিলিটি কত? বেইজিয়ান চেইন রুল এবং টেবিল অনুযায়ী: $$= P(P1|A) \times P(P2|A) \times P(A|\neg B, \neg F) \times P(\neg B) \times P(\neg F)$$ $$= 0.95 \times 0.80 \times 0.001 \times 0.999 \times 0.998 = 0.00075$$

এই পরিস্থিতি ঘটার সম্ভাবনা হলো খুবই সামান্য: মাত্র ০.০০০৭৫!

[!NOTE] IMPORTANT NOTES FOR NOTEBOOK Concept: Bayesian Belief Network (BBN) Key Point 1: BBN is a probabilistic graphical model representing variables as nodes and conditional dependencies as directed edges (Arcs) in a Directed Acyclic Graph (DAG). Key Point 2: Joint probability of a specific configuration in BBN is calculated by multiplying the conditional probabilities of all nodes given their specific parents' states. Advantage: Breaks down a complex global joint probability distribution into smaller, manageable local conditional calculations.