NeuroNomixer logoNeuroNomixer
  • Home
  • Blog
  • Visual Guides
  • Authors
  • Contact
Sign InSign Up
NeuroNomixer logo
HomeBlogAuthorsContactPrivacy Policy

© 2026 NeuroNomixer — Built with Next.js & Tailwind CSS

Visual Guides/Conditional Probability
PROBABILITY

Conditional Probability & Independence

When you know Event B happened, how does that change the probability of Event A? Build trees, see how conditioning shrinks the sample space, and test if events are truly independent.

Scenarios explored: 1/3
Space filtered: 0/2
Path clicked
Independence checked

Sign in to track progress

Choose a Scenario

Scenario

Disease prevalence is 1%. A test has 95% sensitivity and 10% false-positive rate. Despite sounding accurate, a positive result only means ~8.8% chance of actually having the disease.

Probability Tree

0.010.990.950.050.100.90StartDisease0.01No Disease0.99Test+0.950.0095Test−0.050.0005Test+0.100.099Test−0.900.891

Click any node to highlight the path and see the calculation

Conditional Probability

Click a tree node to see the conditional probability calculation for this scenario.

Explanation

Why the Base Rate Matters

When a disease is rare (1% prevalence), most people who test positive are actually healthy, even when the test catches 95% of true cases (its sensitivity; overall accuracy here is about 90%). This is the "base rate fallacy": ignoring how common the condition is.

Step-by-Step

With 1000 people: ~10 have the disease. The test correctly identifies ~9.5 of them (Test+). But of the 990 healthy people, 10% also test positive: that is ~99 false positives. So of ~108 total positives, only ~9 are true positives.

P(Disease | Test+) ≈ 8.8%, not 95%. Rare events require tests with very low false-positive rates to avoid being swamped by false positives.

Tip: Click any tree node above to see how the sample space shrinks.

Sample Space

Full sample space: 100 squares. Click a tree node to filter.
Showing100/ 100
Disease + Test+
Disease + Test−
Healthy + Test+
Healthy + Test−

Independence Checker

Two events A and B are independent if P(A|B) = P(A). Knowing B happened does not change the probability of A.

Core Concepts

Conditional Probability

P(A|B)

The probability of A given that B has already occurred. Conditioning on B restricts the sample space to only events where B is true.

Multiplication Rule

P(A ∩ B) = P(B) × P(A|B)

Joint probability equals the probability of B times the conditional probability of A given B. This is what each tree path computes.

Independence

P(A|B) = P(A)

Events are independent when knowing B happened gives no information about A. Otherwise they are dependent: knowledge of one updates the other.

← Previous: Probability FundamentalsNext: Bayes Theorem →