Arithly

← All maths topics

Conditional probability

A conditional probability answers a question inside a smaller world: P(A given B) is the probability of A when B is already known to have happened. The condition shrinks the sample space — outcomes that contradict B are thrown away — and the probability is recomputed among the survivors only: P(A|B) = P(A and B) / P(B).

For two balls drawn without replacement, counting pairs makes it concrete. There are C(10, 2) = 45 equally likely pairs in a 4-red, 6-blue bag. 'Given that at least one is red' deletes the C(6, 2) = 15 all-blue pairs, leaving 30 pairs; 'both red' accounts for C(4, 2) = 6 of them, so the answer is 6/30 = 1/5. The method never changes: count the pairs the condition allows, then count the favourable ones among them.

Think first

Before reading the solution, try to answer these — they are the hints Arithly itself gives:

Worked example

A bag contains 4 red balls and 6 blue balls. Two balls are drawn at random without replacement. Given that at least one is red, find the probability that both balls are red

  1. The bag contains 4 red, 6 blue balls — 10 in total.
  2. This is a CONDITIONAL probability: "given that at least one is red" shrinks the sample space to only those draws.
  3. Formula — conditional probability: P(A given B) = P(A and B) ÷ P(B), where A is "both are red" and B, the condition, is "at least one is red". Here every draw where both are red also fits the condition, so "A and B" is just A.
  4. P(both are red and at least one is red) = 12/90 = 2/15 (counting every ordered draw).
  5. P(at least one is red) = 60/90 = 2/3.
  6. P(both are red given at least one is red) = 2/15 ÷ 2/3 = 1/5.

Answer: 1/5

Practice

Try these yourself. Each one opens in Arithly with the question already filled in — solve it there and check your working:

Related topics

Probability: Combined Events

The AND/OR machinery that conditional probability refines.

Sets and Venn Diagrams

Venn diagrams make “given that” visible.

Permutations & Combinations

Counting the outcomes inside each condition.

Probability Basics

Chance as a number between 0 and 1, built from counting outcomes.

Binomial Distribution

Repeated trials where each result reshapes the next question.

More topics: all maths topics · Next topic: Recurring decimals to fractions

© 2026 Arithly. Content: CC BY-NC 4.0 · Code & solver: all rights reserved.