The Wayback Machine - https://web.archive.org/web/20240723103736/https://www.geeksforgeeks.org/decision-networks-in-ai/
Open In App

Decision Networks in AI

Last Updated : 28 May, 2024
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report

Decision networks, also known as influence diagrams, play a crucial role in artificial intelligence by providing a structured framework for making decisions under uncertainty. These graphical representations integrate decision theory and probability, enabling AI systems to systematically evaluate various actions and their potential outcomes. In this article, we will explore the components, structure, and applications of decision networks in AI.

What is a Decision Network?

Decision networks are graphical models used to represent and solve decision-making problems. They extend Bayesian networks by incorporating decision and utility nodes, allowing for a comprehensive analysis of decision scenarios.

Components of Decision Networks

A decision network consists of three types of nodes:

  • Chance Nodes: Represent random variables and their possible values, capturing the uncertainty in the decision-making process.


chanceNodesdrawio


  • Decision Nodes: Represent the choices available to the decision-maker.


decisionNodedrawio


  • Utility Nodes: Represent the utility or value of the outcomes, helping to evaluate and compare different decision paths.


utilityNodedrawio


Example of a Decision Network

Consider a simple medical diagnosis scenario where a doctor needs to decide whether to order a test for a patient based on the likelihood of a disease and the cost of the test. The decision network for this scenario might include:

  • Chance Nodes: Disease presence (Yes/No), Test result (Positive/Negative)
  • Decision Node: Order test (Yes/No)
  • Utility Node: Overall patient health outcome and cost

The doctor can use the decision network to evaluate the expected utility of ordering the test versus not ordering it, taking into account the probabilities of disease presence and test results, and the utility values associated with different outcomes.

Structure of Decision Networks

The structure of a decision network is typically represented as a directed acyclic graph (DAG), where:

  • Arcs (Edges): Indicate relationships between nodes. Arcs pointing to chance nodes signify dependencies between random variables, arcs pointing to decision nodes signify information available at the time of decision, and arcs pointing to utility nodes represent factors influencing the utility.

Representing a Decision Problem with a Decision Network

To represent a decision problem with a decision network, the primary step is to construct a graphical model capturing the relationship between random variables, decision variables, and utility functions. The decision network consists of nodes representing these elements and directed arcs depicting dependencies between them.

Arcs in the Graph

  • Arcs to Decision Nodes: Represent information available when the decision is made.
  • Arcs to Chance Nodes: Represent probabilistic dependence.
  • Arcs to Utility Nodes: Represent what the utility depends on.

How to Structure a Decision Network?

To structure a decision network, follow these key steps:

  1. Define Variables and Functions: Identify random variables, decision variables, and utility functions crucial for the decision problem.
  2. Node Representation: Represent random variables as chance nodes, decision variables as decision nodes, and utility functions as utility nodes.
  3. Connect Nodes: Use directed arcs to represent dependencies between variables.
  4. Directed Arcs:
    • Arcs to decision nodes represent available information.
    • Arcs to chance nodes represent probabilistic dependencies.
    • Arcs to utility nodes represent utility dependencies.
  5. Ensure DAG Structure: Avoid cycles or feedback loops in the arcs to maintain a directed acyclic graph.
  6. Define Domains: Specify the domain for each random variable and decision variable. Utility nodes do not have domains.
  7. Conditional Probability Distributions: Provide conditional probability distributions for each random variable given their parents in the network.
  8. Utility Function: Define the utility function mapping the values of the variables it relies on to a real number representing the decision-maker’s preferences.

Example of Representing a Decision Problem

Consider a simple decision network for deciding whether an agent should take an umbrella when going out. The agent’s utility depends on the weather and whether he takes an umbrella. The agent can only observe the forecast and does not observe the weather directly. The forecast depends on the weather.


decisionNetworkdrawio

Representing a Decision Problem


Variables and Domains

  • Weather: {norain, rain}
  • Forecast: {sunny, rainy, cloudy}
  • Umbrella: {take_it, leave_it}

Probabilities

  • P(Weather = rain) = 0.3
  • P(Forecast | Weather):
WeatherForecastProbability
norainsunny0.7
noraincloudy0.2
norainrainy0.1
rainsunny0.15
raincloudy0.25
rainrainy0.6

Utility Function

  • u(Weather, Umbrella):
WeatherUmbrellaUtility
noraintake_it20
norainleave_it100
raintake_it70
rainleave_it0

Maximum Expected Utility

MEU, i.e. Maximum Expected Utility, is a basic principle in decision theory and artificial intelligence. The MEU directs decision-making by suggesting to choose the option that maximizes the expected utility. The MEU suggests selecting the action that is expected to yield the highest utility value while considering the probabilities of different outcomes.

Assume an action (a), then the formula for the expected utility (EU) for that specific action is:

[Tex]EU(a) = Σ (U(s, a) * P(s | a))[/Tex]

where,

  • U(s, a) defines the utility of being in a state (s) after taking an action (a). The obtained value is numerical and it reflects preference for that action.
  • P(s | a) represents the probability of ending up in a state (s) given an already occured action (a).

MEU only takes the maximum of the expected utility for all possible actions that was calculated:

[Tex]MEU = max(EU(a_1), EU(a_2), ..., EU(a_n))[/Tex]

here a1, a2, a3, .., an are the available actions.

Steps to Calculate Expected Utility

  1. Specify Actions and States: Define likely actions and states for the decision network.
  2. Allocate Utility Values: Assign utility values to each state-action pair.
  3. Specify Probabilities: Use conditional probability relationships to specify the probability of each state occurring given a specific action.
  4. Multiply Utility and Probability: Multiply the utility of each action by its corresponding probability.
  5. Sum Products: Sum the products to find the expected utility of each action.
  6. Repeat: Repeat for all available actions.
  7. Select MEU: Choose the action with the highest expected utility..

No-Forgetting Agent and Decision Network

No-Forgetting Property

A no-forgetting agent remembers previous decisions and associated information, ensuring coherent decision-making in an ordered manner.

Characteristics

  • Ordered Decisions: Decisions are made in a specific order.
  • Memory: Stores information about past decisions.
  • Informed Choices: Considers past experiences to inform future choices.

Structure and Implications

  • Ordered Decision Nodes: Arranged in a specific sequence.
  • Parent-Child Relationships: Preceding decision nodes are parents of subsequent nodes.
  • Information Flow: Information flows through the network, influencing subsequent choices.

Evaluating Decision Networks

To ensure optimal functioning, evaluate decision networks using these steps:

  1. Verify Structure: Ensure the network structure accurately reflects the real-world problem.
  2. Sensitivity Analysis: Observe changes in output after modifying probabilities or utilities.
  3. Validate Recommendations: Compare network predictions with real-world data.
  4. Compare Networks: Analyze different decision networks for the same problem to find the most desirable outcomes.

Applications of Decision Networks in AI

Decision networks are widely used in various AI applications, including:

  • Medical Diagnosis: Assisting doctors in making diagnostic and treatment decisions.
  • Robotics: Enabling robots to make decisions in uncertain environments.
  • Finance: Helping financial analysts make investment decisions under uncertainty.
  • Game Theory: Analyzing strategic interactions in competitive environments.
  • Operations Research: Optimizing resource allocation and scheduling decisions.

Advantages of Decision Networks

  • Comprehensive Framework: Integrates probability and utility theory, providing a robust framework for decision-making under uncertainty.
  • Clarity and Visualization: Offers a clear visual representation of decision problems, making complex scenarios easier to understand and analyze.
  • Optimization: Facilitates the identification of optimal decision strategies by evaluating expected utilities.

Conclusion

Decision networks are powerful tools in AI, enabling systematic and informed decision-making in uncertain environments. By integrating chance, decision, and utility nodes, they provide a comprehensive framework for evaluating and optimizing decision strategies. From medical diagnosis to robotics and finance, decision networks have broad applications, making them an essential component of modern AI systems.



Similar Reads

How to Extract the Decision Rules from scikit-learn Decision-tree?
You might have already learned how to build a Decision-Tree Classifier, but might be wondering how the scikit-learn actually does that. So, in this article, we will cover this in a step-by-step manner. You can run the code in sequence, for better understanding. Decision-Tree uses tree-splitting criteria for splitting the nodes into sub-nodes until
4 min read
Signed Networks in Social Networks
Prerequisite: Introduction to Social Networks In Social Networks, Network is of 2 types- Unsigned Network and Signed Network. In the unsigned network, there are no signs between any nodes, and in the signed network, there is always a sign between 2 nodes either + or -. The '+' sign indicates friendship between 2 nodes and the '-' sign indicates enm
4 min read
Differences Between Bayesian Networks and Neural Networks
Bayesian networks and neural networks are two distinct types of graphical models used in machine learning and artificial intelligence. While both models are designed to handle complex data and make predictions, they differ significantly in their theoretical foundations, operational mechanisms, and applications. This article will delve into the diff
9 min read
Decision Threshold In Machine Learning
What is Decision Threshold ? sklearn does not let us set the decision threshold directly, but it gives us the access to decision scores ( Decision function o/p ) that is used to make the prediction. We can select the best score from decision function output and set it as Decision Threshold value and consider all those Decision score values which ar
4 min read
Python | Decision Tree Regression using sklearn
Decision Tree is a decision-making tool that uses a flowchart-like tree structure or is a model of decisions and all of their possible results, including outcomes, input costs, and utility.Decision-tree algorithm falls under the category of supervised learning algorithms. It works for both continuous as well as categorical output variables. The bra
4 min read
ML | Logistic Regression v/s Decision Tree Classification
Logistic Regression and Decision Tree classification are two of the most popular and basic classification algorithms being used today. None of the algorithms is better than the other and one's superior performance is often credited to the nature of the data being worked upon. We can compare the two algorithms on different categories - CriteriaLogis
2 min read
ML | Gini Impurity and Entropy in Decision Tree
Gini Index The Gini Index is the additional approach to dividing a decision tree.Purity and impurity in a junction are the primary focus of the Entropy and Information Gain framework.The Gini Index, also known as Impurity, calculates the likelihood that somehow a randomly picked instance would be erroneously cataloged. Machine Learning is a Compute
6 min read
Decision Tree Classifiers in R Programming
Classification is the task in which objects of several categories are categorized into their respective classes using the properties of classes. A classification model is typically used to, Predict the class label for a new unlabeled data objectProvide a descriptive model explaining what features characterize objects in each class There are various
4 min read
Importance of decision making
When we talk about decision making, so you actually don't realize that you are making decisions every day in your day to day life. Right from waking up and leaving at the back of the comfortable mattress in the morning till we retire for the day, the selections we make are what hold us thriving. It is estimated that a common human makes around 35,
4 min read
ML - Decision Function
Decision function is a method present in classifier{ SVC, Logistic Regression } class of sklearn machine learning framework. This method basically returns a Numpy array, In which each element represents whether a predicted sample for x_test by the classifier lies to the right or left side of the Hyperplane and also how far from the HyperPlane. It a
4 min read
three90RightbarBannerImg