Fun with Learning Technology
LearnCoursesQuestionsTracksToolsNewsExplorePractice
Fun with Learning Technology

A new problem, explained clearly, every day.

Subscribe
Learn
  • Lessons
  • Topics
  • News
  • Tools
  • Courses
  • Career tracks
  • Everything
Site
  • About
  • Contact
  • Support
  • Privacy
  • Terms
Get the daily one

One email per new problem. No spam.

Request a tutorial

Requests shape what gets made next.

© 2026 Fun with Learning TechnologyRSS
Home›Courses›Reasoning›Probability and Uncertainty in Decision Making

Critical Thinking and Analysis

Probability and Uncertainty in Decision Making

Probability and uncertainty are fundamental tools for making rational decisions under incomplete information. They matter because real-world problems rarely offer perfect clarity, and these concepts help quantify risks and trade-offs. You reach for them when evaluating options, predicting outcomes, or deciding between competing hypotheses in ambiguous situations.

Understanding Basic Probability

Probability is the mathematical language of uncertainty. It quantifies how likely an event is to occur, expressed as a number between 0 (impossible) and 1 (certain). For example, the probability of flipping a fair coin and getting heads is 0.5 because there are two equally likely outcomes. This framework is powerful because it forces you to explicitly consider all possible outcomes and their relative likelihoods, rather than relying on intuition alone. When faced with a decision, assigning probabilities to different scenarios helps you compare them objectively. For instance, if you estimate a 70% chance of success for Plan A and a 40% chance for Plan B, the numbers make the trade-off clear. The key insight is that probability isn’t about predicting the future with certainty—it’s about making the best possible decision given the information you have. Even in simple cases, this approach reduces cognitive bias by replacing vague feelings like 'this seems risky' with concrete values.

# Calculate the probability of drawing a red card from a standard deck
# A standard deck has 52 cards: 26 red (hearts and diamonds) and 26 black
red_cards = 26
total_cards = 52
probability_red = red_cards / total_cards

# Print the result with context
print(f"Probability of drawing a red card: {probability_red:.2f} or {probability_red * 100:.0f}%")
# Output: Probability of drawing a red card: 0.50 or 50%

# Why this works: The probability is the ratio of favorable outcomes to total possible outcomes.
# This formula generalizes to any scenario where outcomes are equally likely.

Independent vs. Dependent Events

Events are independent if the outcome of one doesn’t affect the other, like flipping a coin twice—the first flip doesn’t change the probability of the second. Dependent events, however, are linked; for example, drawing two cards from a deck without replacement changes the probabilities because the deck’s composition changes after the first draw. Recognizing independence is crucial because it simplifies calculations. For independent events, you multiply their probabilities to find the chance of both occurring (e.g., 0.5 * 0.5 = 0.25 for two heads in a row). For dependent events, you must adjust the probabilities after each step. This distinction matters in decision-making because it forces you to ask: 'Does this action change the conditions for future actions?' For example, if you’re debugging code, fixing one bug might reveal others (dependent), whereas running unrelated tests might not (independent). The key takeaway is to always question whether events influence each other before combining their probabilities.

# Independent events: Flipping two coins
prob_heads = 0.5
prob_two_heads = prob_heads * prob_heads  # Independent
print(f"Probability of two heads (independent): {prob_two_heads:.2f}")
# Output: 0.25

# Dependent events: Drawing two aces from a deck without replacement
total_cards = 52
aces = 4
prob_first_ace = aces / total_cards
prob_second_ace = (aces - 1) / (total_cards - 1)  # Deck changes
prob_two_aces = prob_first_ace * prob_second_ace
print(f"Probability of two aces (dependent): {prob_two_aces:.4f}")
# Output: ~0.0045 (0.45%)

# Why this works: Independent events use multiplication directly; dependent events require adjusting probabilities after each step.

Expected Value: Balancing Risk and Reward

Expected value is the average outcome you’d expect if you repeated a decision many times, weighted by the probabilities of each outcome. It’s calculated by multiplying each possible outcome by its probability and summing the results. For example, if a lottery ticket costs $1 and gives you a 1% chance to win $50, the expected value is (0.01 * $50) + (0.99 * -$1) = -$0.49. This negative value tells you that, on average, you lose money per ticket. Expected value is invaluable for decision-making because it translates uncertainty into a single number, allowing you to compare options objectively. It’s not about predicting a single outcome but about understanding the long-term consequences of your choices. For instance, in software testing, you might weigh the cost of running a test (time) against the probability of catching a bug (value). The key insight is that expected value helps you avoid decisions that seem appealing in the short term but are costly over time.

# Expected value of a simple lottery
lottery_cost = 1  # $1 per ticket
win_probability = 0.01  # 1% chance to win
win_amount = 50  # $50 prize

# Calculate expected value: (probability * outcome) for each scenario
expected_value = (win_probability * win_amount) + ((1 - win_probability) * -lottery_cost)
print(f"Expected value of buying one ticket: ${expected_value:.2f}")
# Output: -$0.49 (you lose 49 cents on average per ticket)

# Why this works: Expected value averages all possible outcomes, weighted by their probabilities.
# It reveals the long-term cost or benefit of a decision.

Bayes’ Theorem: Updating Beliefs with New Evidence

Bayes’ Theorem is a formula for updating your beliefs when you receive new evidence. It connects the probability of evidence given a hypothesis (likelihood) with the probability of the hypothesis itself (prior). The theorem is written as P(H|E) = [P(E|H) * P(H)] / P(E), where P(H|E) is the probability of the hypothesis given the evidence. For example, if a medical test is 95% accurate and 1% of people have a disease, Bayes’ Theorem helps you calculate the probability that someone who tests positive actually has the disease. This is critical in decision-making because it forces you to combine prior knowledge with new data, rather than overreacting to the latest information. In debugging, for instance, you might start with a prior belief about the likelihood of a bug in a module, then update that belief as you gather test results. The key insight is that Bayes’ Theorem prevents you from ignoring base rates (prior probabilities) or overvaluing new evidence, leading to more rational decisions.

# Bayes' Theorem: Medical test example
# Prior probability of disease: 1% (0.01)
p_disease = 0.01
# Test accuracy: 95% true positive rate, 5% false positive rate
p_positive_given_disease = 0.95
p_positive_given_no_disease = 0.05

# Calculate P(Positive), the total probability of testing positive
p_positive = (p_positive_given_disease * p_disease) + (p_positive_given_no_disease * (1 - p_disease))

# Apply Bayes' Theorem to find P(Disease|Positive)
p_disease_given_positive = (p_positive_given_disease * p_disease) / p_positive
print(f"Probability of disease given a positive test: {p_disease_given_positive:.2f} or {p_disease_given_positive * 100:.0f}%")
# Output: ~0.16 or 16% (surprisingly low due to the low prior probability)

# Why this works: Bayes' Theorem combines prior knowledge with new evidence to update beliefs.
# It corrects for overestimating the impact of new data.

Decision Trees: Visualizing Uncertainty

Decision trees are a tool for mapping out choices and their possible consequences under uncertainty. Each branch represents a decision or an uncertain event, with probabilities assigned to outcomes. For example, a tree might split into 'invest in Project A' or 'invest in Project B,' with each branch further splitting into 'success' or 'failure' with associated probabilities and payoffs. The value of a decision tree is that it forces you to explicitly consider all possible paths and their likelihoods, making it easier to spot overlooked risks or opportunities. To evaluate a tree, you calculate the expected value of each branch and work backward from the outcomes to the initial decision. This is especially useful in complex scenarios where intuition fails, such as prioritizing features in a product roadmap. The key insight is that decision trees break down overwhelming problems into manageable parts, allowing you to compare options systematically. They also reveal the sensitivity of your decision to changes in probabilities or payoffs.

# Decision tree for choosing between two projects
# Project A: 60% chance of $100k profit, 40% chance of $20k loss
project_a_success_prob = 0.6
project_a_success_value = 100000
project_a_failure_value = -20000
project_a_expected_value = (project_a_success_prob * project_a_success_value) + ((1 - project_a_success_prob) * project_a_failure_value)

# Project B: 30% chance of $200k profit, 70% chance of $10k loss
project_b_success_prob = 0.3
project_b_success_value = 200000
project_b_failure_value = -10000
project_b_expected_value = (project_b_success_prob * project_b_success_value) + ((1 - project_b_success_prob) * project_b_failure_value)

print(f"Project A expected value: ${project_a_expected_value:,.0f}")
print(f"Project B expected value: ${project_b_expected_value:,.0f}")
# Output: Project A: $52,000, Project B: $53,000

# Why this works: Decision trees decompose complex choices into expected values for each path.
# They reveal which option is optimal under uncertainty.

Key points

  • Probability quantifies uncertainty by assigning a number between 0 and 1 to the likelihood of an event, helping you compare outcomes objectively.
  • Independent events do not influence each other’s probabilities, while dependent events require adjusting probabilities after each step.
  • Expected value averages all possible outcomes weighted by their probabilities, revealing the long-term cost or benefit of a decision.
  • Bayes’ Theorem updates your beliefs by combining prior knowledge with new evidence, preventing overreaction to the latest information.
  • Decision trees map out choices and their consequences under uncertainty, making it easier to compare options systematically.
  • Always question whether events are independent or dependent before combining their probabilities to avoid calculation errors.
  • Expected value is not about predicting a single outcome but about understanding the average result of repeated decisions.
  • Decision trees break down complex problems into manageable parts, revealing overlooked risks or opportunities in uncertain scenarios.

Common mistakes

  • Mistake: Ignoring base rates when updating beliefs. Why it's wrong: People often focus only on new evidence and forget the prior probability, leading to incorrect posterior estimates. Fix: Always combine prior probabilities with likelihoods using Bayes' theorem.
  • Mistake: Confusing independence of events with mutual exclusivity. Why it's wrong: Independent events can occur simultaneously (P(A∩B) = P(A)P(B)), while mutually exclusive events cannot (P(A∩B) = 0). Fix: Check whether P(A∩B) equals P(A)P(B) or zero before assuming either property.
  • Mistake: Overestimating the probability of conjunctive events. Why it's wrong: People often assume multiple conditions are more likely than they are (e.g., P(A∩B) > P(A)), violating probability laws. Fix: Remember that P(A∩B) ≤ P(A) and P(A∩B) ≤ P(B) for any events A and B.
  • Mistake: Treating conditional probabilities as symmetric. Why it's wrong: P(A|B) is not equal to P(B|A), but people often assume they are. Fix: Use Bayes' theorem to relate P(A|B) and P(B|A) explicitly, accounting for base rates.
  • Mistake: Misapplying the law of large numbers to small samples. Why it's wrong: People expect short-term outcomes to reflect long-term probabilities (e.g., 'the coin must balance out soon'). Fix: Recognize that the law of large numbers applies only to large samples, not individual trials or small sequences.

Interview questions

What is probability, and why is it important in decision making?

Probability is a measure of how likely an event is to occur, expressed as a number between 0 and 1, where 0 means impossibility and 1 means certainty. In decision making, probability helps quantify uncertainty, allowing us to make informed choices even when outcomes are not guaranteed. For example, if a weather forecast says there's a 70% chance of rain, we might decide to carry an umbrella. Probability provides a framework to weigh risks and benefits systematically. Without it, decisions would rely purely on intuition, which can be unreliable. In reasoning, probability helps model real-world scenarios where outcomes are uncertain, enabling better predictions and strategies.

Explain the difference between independent and dependent events with an example.

Independent events are those where the outcome of one event does not affect the outcome of another. For example, flipping a coin and rolling a die are independent because the result of the coin flip doesn’t influence the die roll. Dependent events, on the other hand, are connected; the outcome of one affects the other. For instance, drawing two cards from a deck without replacement is dependent because the first draw changes the probability of the second. If you draw an Ace first, the probability of drawing another Ace decreases. Understanding this distinction is crucial in reasoning because it helps us calculate joint probabilities correctly. For independent events, we multiply their probabilities (P(A and B) = P(A) * P(B)), while for dependent events, we adjust the probability of the second event based on the outcome of the first.

How do you calculate the expected value of a decision, and why is it useful?

The expected value is calculated by multiplying each possible outcome of a decision by its probability and then summing these products. For example, if you have a 60% chance of winning $100 and a 40% chance of losing $50, the expected value is (0.6 * 100) + (0.4 * -50) = 60 - 20 = $40. Expected value is useful because it provides a single number to compare different decisions under uncertainty. It helps quantify the average outcome if a decision were repeated many times, making it easier to choose the option with the highest expected benefit. In reasoning, expected value is a foundational tool for evaluating risks and rewards, especially in scenarios like investments, games, or resource allocation.

Compare Bayesian reasoning with frequentist reasoning. Which one would you use for updating beliefs, and why?

Bayesian reasoning treats probability as a degree of belief and updates it as new evidence becomes available. It starts with a prior probability, incorporates new data using Bayes' Theorem, and produces a posterior probability. Frequentist reasoning, on the other hand, defines probability as the long-run frequency of events and relies on fixed data sets without incorporating prior beliefs. For updating beliefs, Bayesian reasoning is more suitable because it directly models how evidence should change our confidence in a hypothesis. For example, if you’re testing a medical treatment, Bayesian methods allow you to update your belief about its effectiveness as new patient data comes in. Frequentist methods, like p-values, don’t account for prior knowledge, making them less flexible for dynamic decision-making. Bayesian reasoning aligns better with how humans naturally update their beliefs.

How would you use probability to model uncertainty in a real-world decision, such as launching a new product?

To model uncertainty in launching a new product, I would first identify key uncertain factors, such as market demand, production costs, and competitor responses. For each factor, I’d assign probability distributions based on historical data, expert opinions, or market research. For example, I might estimate a 50% chance of high demand, 30% chance of medium demand, and 20% chance of low demand. Next, I’d simulate possible outcomes using these probabilities, perhaps with a Monte Carlo simulation. This involves running thousands of trials where each trial randomly samples from the probability distributions and calculates the resulting profit or loss. The output would show the range of possible outcomes and their likelihoods, helping me assess risks. For instance, if 90% of simulations show a profit, I might proceed with the launch. This approach quantifies uncertainty and provides a data-driven basis for decision-making.

Explain how conditional probability and Bayes' Theorem can be used to diagnose a rare disease. Walk through the calculations.

Conditional probability and Bayes' Theorem are essential for diagnosing rare diseases because they allow us to update the probability of a disease given a test result. Let’s say a disease affects 1% of the population (prior probability P(D) = 0.01), and a test for it has a 95% true positive rate (P(T+|D) = 0.95) and a 5% false positive rate (P(T+|¬D) = 0.05). Bayes' Theorem helps us find P(D|T+), the probability of having the disease given a positive test. The formula is: P(D|T+) = [P(T+|D) * P(D)] / P(T+), where P(T+) is the total probability of testing positive, calculated as P(T+|D)*P(D) + P(T+|¬D)*P(¬D). Plugging in the numbers: P(T+) = (0.95 * 0.01) + (0.05 * 0.99) = 0.0095 + 0.0495 = 0.059. Then, P(D|T+) = (0.95 * 0.01) / 0.059 ≈ 0.161, or 16.1%. Even with a positive test, the probability of having the disease is only 16.1% because the disease is rare. This shows why follow-up tests are often needed. Bayes' Theorem helps avoid overestimating the likelihood of rare conditions based on a single test.

All Reasoning interview questions →

Check yourself

1. You flip a fair coin 10 times and get heads every time. What is the probability of getting tails on the next flip?

  • A.Less than 0.5, because tails is 'due'
  • B.Exactly 0.5, because each flip is independent
  • C.Greater than 0.5, because the coin is biased toward tails now
  • D.Cannot be determined without knowing the coin's history
Show answer

B. Exactly 0.5, because each flip is independent
The correct answer is 0.5 because each coin flip is independent. The previous outcomes do not affect the next flip (gambler's fallacy). The other options incorrectly assume dependence between flips or bias introduced by prior outcomes.

2. A disease affects 1% of a population. A test for the disease is 99% accurate (i.e., 99% true positive rate and 99% true negative rate). If a randomly selected person tests positive, what is the probability they actually have the disease?

  • A.99%, because the test is highly accurate
  • B.98%, because the test is nearly perfect
  • C.50%, because the test is equally likely to be right or wrong
  • D.About 50%, because the base rate is low
Show answer

D. About 50%, because the base rate is low
The correct answer is about 50% due to the low base rate (1%). Using Bayes' theorem: P(Disease|Positive) = (0.01 * 0.99) / (0.01 * 0.99 + 0.99 * 0.01) ≈ 0.5. The other options ignore the base rate or misapply the test's accuracy.

3. You roll two fair six-sided dice. What is the probability that the sum is 7, given that at least one die shows a 4?

  • A.1/6, because there are 6 possible sums
  • B.1/11, because there are 11 outcomes where at least one die is 4
  • C.2/11, because two outcomes sum to 7 (4+3 and 3+4)
  • D.1/3, because the other die can be 1, 2, or 3
Show answer

C. 2/11, because two outcomes sum to 7 (4+3 and 3+4)
The correct answer is 2/11. There are 11 outcomes where at least one die is 4 (not 12, because (4,4) is counted once), and only 2 of these sum to 7: (4,3) and (3,4). The other options miscount the possible outcomes or ignore the conditional constraint.

4. You are told that a family has two children, and at least one is a boy. What is the probability that both children are boys?

  • A.1/2, because the other child is equally likely to be a boy or girl
  • B.1/3, because the possible combinations are BB, BG, and GB
  • C.1/4, because the probability of two boys is 1/4
  • D.2/3, because there are two boys in the sample space
Show answer

B. 1/3, because the possible combinations are BB, BG, and GB
The correct answer is 1/3. The possible equally likely combinations are BB, BG, and GB (GG is excluded by the condition). Only BB satisfies both children being boys. The other options miscount the sample space or assume independence where it doesn't apply.

5. A jar contains 3 red marbles and 2 blue marbles. You draw two marbles without replacement. What is the probability that both are red?

  • A.3/5 * 2/4 = 3/10, because the draws are dependent
  • B.3/5 * 3/5 = 9/25, because the draws are independent
  • C.3/5 + 2/4 = 11/10, because probabilities add
  • D.3/5, because the first draw determines the second
Show answer

A. 3/5 * 2/4 = 3/10, because the draws are dependent
The correct answer is 3/10. The probability of the first marble being red is 3/5, and the second is 2/4 (since one red marble is already drawn). The other options incorrectly assume independence, add probabilities, or ignore the without-replacement condition.

Take the full Reasoning quiz →

← PreviousThe Scientific Method and ReasoningNext →Ethical Reasoning and Moral Dilemmas

Reasoning

36 lessons, free to read.

All lessons →

Track your progress

Sign in to mark lessons done, score quizzes and keep notes.

Open in the app