AI ct-1
AI ct-1
A Bayesian Network is a graphical model that represents variables and their conditional
dependencies using a Directed Acyclic Graph (DAG). It allows probabilistic inference and is
widely used in fields like AI, machine learning, and statistics.
Key Components:
1. Nodes: Represent random variables (discrete or continuous).
2. Edges: Directed arrows between nodes indicate conditional dependencies.
3. Conditional Probability Tables (CPTs): Quantify the effect of parent nodes on the current
node.
4. DAG (Directed Acyclic Graph): Shows relationships without cycles, ensuring clear
information flow.
Example:
Variables:
- A: Weather (Sunny, Rainy)
- B: Traffic (Heavy, Light)
- C: Accident (Yes, No)
3) What is fuzzy set? Explain degree of membership. How does are represent a fuzzy set
in a computer.
Definition: Fuzzy sets extend classical set theory by allowing varying degrees of
membership, with values ranging from 0 (not belonging) to 1 (fully belonging). This approach
helps manage uncertainty and ambiguity in real-world problems.
Key Features:
1. Partial Membership: Elements can belong to a set to varying degrees, rather than just being
in or out.
2. Membership Function: A function assigns a degree of membership (0 to 1) to each element,
indicating its strength of belonging.
3. Non-Binary Representation: Fuzzy sets are ideal for ambiguous categories (e.g., "tall,"
"hot"), capturing real-world nuances.
4. Flexibility: Supports approximate reasoning, allowing terms like "somewhat tall" to be
modeled effectively.
Degree of Membership:
- Values:
- 0: Not in the set.
- 1: Fully in the set.
- Between 0 and 1: Partial membership (e.g., height categorization).
- Example:
- "Tall People" Fuzzy Set:
- Person A (170 cm): 0.4 (somewhat tall)
- Person B (180 cm): 0.7 (tall)
- Person C (190 cm): 1.0 (very tall)
Computer Representation:
1. Fuzzy Set Definition: Stored in programming languages, with elements and their
membership values.
2. Membership Function: Calculates degrees of membership using rules or formulas.
3. Data Structures: Implemented using arrays, lists, or dictionaries.
4. Operations:
- Union: Max membership value.
- Intersection: Min membership value.
- Complement: 1 - membership value.
5. Fuzzy Logic Inference: Supports rules like “IF temperature is high THEN fan speed is fast.”
Advantages:
1. Handling Uncertainty: Effective in fields like control systems and decision-making.
2. Modeling Real-Life Scenarios: Ideal for phenomena without strict boundaries (e.g.,
temperature control).
3. Versatility: Applicable in AI, machine learning, medical diagnosis, and risk assessment.