Probability Formula Solver

Pick the right probability formula — addition, multiplication, complement, or conditional — and apply it step by step
P(heart or face card) from a standard 52-card deck
Draw 2 marbles without replacement from 5 red and 3 blue: P(both red)
P(at least one 6 in four rolls of a fair die)
60 take Spanish, 40 take art, 25 take both out of 100: find P(art | Spanish)

The Core Probability Formulas

Every probability question reduces to picking the right rule. For a sample space SS of equally likely outcomes:

P(A)=number of favourable outcomestotal number of outcomesP(A) = \frac{\text{number of favourable outcomes}}{\text{total number of outcomes}}

Complement rule — the fastest route to any "at least one" question:

P(Ac)=1P(A)P(A^c) = 1 - P(A)

Addition rule ("or"), which subtracts the double-counted overlap:

P(AB)=P(A)+P(B)P(AB)P(A \cup B) = P(A) + P(B) - P(A \cap B)

Multiplication rule ("and"), the general form:

P(AB)=P(A)P(BA)P(A \cap B) = P(A) \cdot P(B \mid A)

Conditional probability, valid whenever P(B)>0P(B) > 0:

P(AB)=P(AB)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}

Every probability satisfies 0P(A)10 \le P(A) \le 1, and the probabilities of all outcomes in SS sum to exactly 11.

Choosing the Right Formula

The rules simplify only when a specific condition holds — checking that condition is the whole skill.

ConditionWhat it meansSimplified rule
Mutually exclusiveAA and BB cannot both occur, P(AB)=0P(A \cap B) = 0P(AB)=P(A)+P(B)P(A \cup B) = P(A) + P(B)
IndependentBB happening does not change P(A)P(A), so P(AB)=P(A)P(A \mid B) = P(A)P(AB)=P(A)P(B)P(A \cap B) = P(A)P(B)

Mutually exclusive and independent are not the same thing — in fact two events with non-zero probability that are mutually exclusive are necessarily dependent, because one occurring drives the other's probability to zero.

Compound probability, in order

  1. Translate the words: "or" \to addition, "and" \to multiplication, "at least one" \to complement, "given that" \to conditional.
  2. Decide whether the trials are with or without replacement. With replacement keeps the events independent; without replacement changes the denominator on every draw.
  3. Apply the general rule, then simplify only if the condition genuinely holds.
  4. Sanity-check that the answer lies in [0,1][0, 1].

Conditions and Common Mistakes

The counting formula P(A)=favourable/totalP(A) = \text{favourable}/\text{total} assumes outcomes are equally likely. A loaded die or a biased coin breaks it, and you must then sum the individual outcome probabilities instead.

Frequent errors

  • Adding without subtracting the overlap. If AA and BB can co-occur, P(A)+P(B)P(A) + P(B) counts the intersection twice.
  • Multiplying dependent events as if independent. Drawing without replacement shrinks both the numerator and the denominator on the second draw.
  • Reversing the condition. P(AB)P(BA)P(A \mid B) \ne P(B \mid A) unless P(A)=P(B)P(A) = P(B); conflating them is the base-rate fallacy behind most medical-test puzzles.
  • Computing "at least one" term by term. Use 1P(none)1 - P(\text{none}); the direct sum has many more cases and far more room to slip.
  • Answering above 1. Any result outside [0,1][0, 1] means a rule was misapplied, usually addition where multiplication was needed.

示例题目

Step 1: P(heart)=13/52P(\text{heart}) = 13/52 and P(face)=12/52P(\text{face}) = 12/52 (J, Q, K in four suits)
Step 2: The events overlap: J, Q, K of hearts give P(heart and face)=3/52P(\text{heart and face}) = 3/52
Step 3: Addition rule: P=1352+1252352=2252P = \dfrac{13}{52} + \dfrac{12}{52} - \dfrac{3}{52} = \dfrac{22}{52}
Step 4: Simplify: 22/52=11/260.423122/52 = 11/26 \approx 0.4231
Answer: P=11260.423P = \dfrac{11}{26} \approx 0.423

Step 1: First draw: P(red)=5/8P(\text{red}) = 5/8
Step 2: Without replacement, 4 red remain out of 7 marbles: P(redred)=4/7P(\text{red} \mid \text{red}) = 4/7
Step 3: General multiplication rule: P=5847=2056P = \dfrac{5}{8} \cdot \dfrac{4}{7} = \dfrac{20}{56}
Step 4: Simplify: 20/56=5/140.357120/56 = 5/14 \approx 0.3571
Answer: P=5140.357P = \dfrac{5}{14} \approx 0.357

Step 1: Direct counting is messy — use the complement
Step 2: P(no 6 on one roll)=5/6P(\text{no } 6 \text{ on one roll}) = 5/6; the rolls are independent
Step 3: P(no 6 in four rolls)=(5/6)4=625/1296P(\text{no } 6 \text{ in four rolls}) = (5/6)^4 = 625/1296
Step 4: P(at least one 6)=16251296=6711296P(\text{at least one } 6) = 1 - \dfrac{625}{1296} = \dfrac{671}{1296}
Step 5: 671/12960.5177671/1296 \approx 0.5177
Answer: P=67112960.518P = \dfrac{671}{1296} \approx 0.518

常见问题

Mutually exclusive means the events cannot happen together, so P(A ∩ B) = 0. Independent means one event happening tells you nothing about the other, so P(A ∩ B) = P(A)P(B). They are opposites in practice: if two events with non-zero probability are mutually exclusive, then one occurring forces the other to zero, which makes them dependent.

Translate the connector first. "And" calls for the multiplication rule P(A ∩ B) = P(A)·P(B|A), "or" calls for the addition rule P(A) + P(B) − P(A ∩ B). Then check whether the trials are with or without replacement, because that decides whether P(B|A) equals P(B).

"At least one" covers many separate cases (exactly one, exactly two, and so on), while its complement is the single case "none". Computing 1 − P(none) replaces a long sum with one multiplication, and it is far harder to miscount.

The counting shortcut favourable/total only works when every outcome has the same chance. For a loaded die or weighted spinner you must add up the individual outcome probabilities that make up the event. The addition, multiplication, complement, and conditional rules themselves still hold in every case.

相关求解器

相关学习指南

免费试用 AI-Math

任何数学问题都能获得分步解答。拍照上传或输入问题即可。

开始解题