Probabilistic and Fuzzy Reasoning in Expert Systems
Uncertainty in Logic and Probabilistic Reasoning
Limitation of Classical Logic: First-order logic assumes everything is certain (true or false). In reality, variables are often "general tendencies" rather than binary certainties (e.g., most birds fly, but not all; a topic might usually be harder if it has an exam).
Methods to Handle Uncertainty:
Probability.
Fuzzy Logic.
Probability Recap:
Events can be represented using Venn diagrams to show overlapping outcomes.
Example Table for Events X (Cloudy) and Y (Rain):
Cloudy and Raining ():
Cloudy and Not Raining ():
Not Cloudy but Raining ():
Not Cloudy and Not Raining ():
To find the total probability of an event like Cloudy (), we sum the relevant states: .
Notation:
Commas are often used as shorthand for AND: means .
Logical symbols: Upside-down "v" () for AND; regular "v" () for OR; line with a dip () for NOT.
Conditional Probability:
Formula:
This represents the probability of occurring given that we already know is true.
Applying Probability to Logic Rules
Real-World General Tendencies:
Instead of "If you are old, you have children," we use .
Probabilistic rules allow for a more nuanced representation based on data like census statistics.
Step-by-Step Calculation Example:
Knowledge Provided:
Question: What is the total probability that a random person has children ()?
Process:
Use the conditional rule:
Solve for AND:
Repeat for old:
Sum the totals:
Bayesian Networks (Belief Networks)
Definition: A graphical representation of dependencies between events where arrows indicate that one thing influences the likelihood of another.
Example Model (Cloudy/Sprinkler/Rain/Wet Grass):
Cloudy () is a parent to Sprinkler () and Rain ().
Sprinkler () and Rain () are parents to Wet Grass ().
Probabilities are conditional (e.g., the chance of the sprinkler being on depends on whether it is cloudy).
Bayes' Formula (Reverse Reasoning):
Formula:
Allows for deductive inference in reverse: if we know the outcome (effect), we can update the probability of the cause.
Example: If the Sprinkler is seen to be on, the probability of it being Cloudy drops (e.g., from to roughly ), because we are less likely to run sprinklers when it is cloudy.
Conditional Independence:
Rule: An event is conditionally independent of its non-descendants given its parent events.
Essentially, knowing the parent state breaks the dependency chain from the ancestors. If we already know for certain it is Cloudy (), then learning the Sprinkler is on does not further change the probability of Rain.
Explaining Away:
When the outcome (child) is known, it increases the likelihood of all parents. However, if we then discover one parent is definitely true, the likelihood of the other parents decreases.
Example: If the grass is wet (), the chances of Rain () and Sprinkler () both go up. If we then find out the Sprinkler () was definitely on, the probability that it rained () drops because the wet grass has been "explained away" by the sprinkler.
Fuzzy Logic and Fuzzy Sets
Motivation: Classical logic is too absolute. Concepts like "tall," "clever," or "warm" do not have hard boundaries.
Sorites Paradox (The Heap Paradox): One grain of sand is not a heap. Adding one more doesn't make it a heap. Yet, at some point, we have a heap. There is no precise definition (e.g., at exactly 100 grains).
Fuzzy Set Membership:
An object belongs to a set with a degree of membership .
Membership values range from (not in the set) to (absolutely/fully in the set).
Distinction from Probability: Probability represents the chance of an event happening. Fuzzy membership represents the certain degree to which something belongs to a class (e.g., a square might be definitively " black").
Membership Functions/Distributions:
Shapes can be linear slopes, triangles, or curves.
These are usually defined by an expert or derived from real-world data.
Example (Temperature): A temperature of might have a membership of in the "Cool" set and in the "Warm" set.
Fuzzy Operators and Reasoning
Logical Operations on Fuzzy Sets:
And (Intersection/Conjunction): The minimum of the two membership values. .
Or (Union/Disjunction): The maximum of the two membership values. .
Not (Negation): One minus the membership value. .
Set Size in Fuzzy Logic:
The size of a fuzzy set is the sum of the membership values of all members in that set.
Example (Smart Students): If individual memberships are ; the size is .
Fuzzy Control Systems Example (Self-Driving Car):
Rule: If Sunny () and Warm (), then drive Fast.
If Sunny membership is and Warm is , the membership in "Sunny and Warm" is (the minimum).
Defuzzification: The process of converting fuzzy membership values back into a single scalar value (e.g., a specific speed in ). This is done by reversing the distribution function—going from the Y-axis (membership) back to the X-axis (speed).
Questions & Discussion
Question from Audience: On the calculation of conditional probability, there was division in the initial step (), but the final solution seemed to be just multiplication. Why is that?
Response: The formula provided is the formal definition. It contains three variables. In the example, we were given and , so to find the unknown , we rearranged the formula (). It is just algebraic substitution.
Question from Audience (Bayesian Networks): If the Sprinkler and Cloudy status are both known, why doesn't the Sprinkler affect the Rain through the Wet Grass node?
Response: This relates to conditional independence. If the parent (Cloudy) is already known, the dependency chain between the two siblings (Sprinkler and Rain) is broken. The Sprinkler's state no longer informs us about Cloudy because Cloudiness is already a fixed known fact.
Question from Audience (Fuzzy Membership): Are these values percentages?
Response: No, they are degrees of membership between and . While the scale looks like percentages, they are definitive values of belonging, not the likelihood of belonging.
The Decline of Expert Systems
The Rise and Fall: Expert systems were highly popular in the 1980s and 1990s (e.g., the Japanese subway system control). The goal was to manually input every rule and fact into a knowledge base.
Limitations:
Knowledge Acquisition Bottleneck: It is intractable to manually write every fact and rule about the world for a general AI.
Explainability: While they solve problems, they aren't always intuitively explainable to non-experts.
Fragility/Brittleness: These systems lack "graceful degradation." A single error or typo in a probability or a logic rule can cause a catastrophic cascade that ruins the entire reasoning process.
Transition: Modern AI has moved from Expert Systems (predefined rules) toward data-driven Machine Learning and Generative AI, where the system learns the patterns from big data rather than being told them manually.