Skip to content
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
∑ NumeriveMATH
LearningExamsFamily
Make learning comfortable
Changing style, motion, or reading speed keeps your current question, answers, homework, and saved progress. The school band still chooses your task layout. Saved to your learner profile across devices. All lessons and help stay available.
← Intermediate Counting and Probability levels

Intermediate Counting and Probability / LEVEL 3 · DIFFICULTY 3/5

Structured Paths and Conditioning

Separate prefix constraints from conditional sample spaces.

3 stages · 24 practice problems · two 6-question assessment forms

Choose a node to explore its lesson.

  1. 1MINI QUEST IC 3.1Prefix Constraints and Catalan NumbersRead the lesson
  2. 2MINI QUEST IC 3.2Conditional Sample SpacesRead the lesson
  3. 3MINI QUEST IC 3.3Reversing Conditional ProbabilityRead the lesson
  4. LEVEL CHECKCastle challenge

    6 questions across this level.

    Sign in for the level check →

STAGE IC 3.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Prefix Constraints and Catalan Numbers

Useful preparation: Recurrences from First Choices

The idea to remember

Catalan numbers count balanced paths that never cross the allowed boundary: Cn=C (2 n,n)n+1\displaystyle C_{n} = \frac{C\, \left(2\, n, n\right)}{n + 1}Cn​=n+1C(2n,n)​.

Remember with 2 flashcards →

Goal: Understand and apply prefix constraints and catalan numbers.

Before you begin: Recurrences from First Choices

Understand the idea

Balanced parentheses require equal final totals and also require every prefix to have at least as many opens as closes. The prefix condition excludes many strings with equal totals.

Cn=C (2 n,n)n+1\displaystyle C_{n} = \frac{C\, \left(2\, n, n\right)}{n + 1}Cn​=n+1C(2n,n)​

Choose and carry out a method

Count all equal-total strings, then subtract bad strings through a first-crossing reflection correspondence. The difference is C (2 n,n)−C (2 n,n+1)\displaystyle C\, \left(2\, n, n\right) - C\, \left(2\, n, n + 1\right)C(2n,n)−C(2n,n+1).

Check the reasoning

For one pair the count is one, and for two pairs it is two. A string beginning with a close is invalid regardless of its final totals.

WORKED EXAMPLE 1

How many balanced parenthesis strings have 3 pairs of parentheses?

  1. A valid prefix never has more closes than opens; reflect the first bad prefix to count the complement.
  2. C3=C (6,3)−C (6,4)=C (6,3)4\displaystyle C_{3} = C\, \left(6, 3\right) - C\, \left(6, 4\right) = \frac{C\, \left(6, 3\right)}{4}C3​=C(6,3)−C(6,4)=4C(6,3)​.
  3. The count is 5. Equal final totals alone do not guarantee valid prefixes.

5

WORKED EXAMPLE 2

How many balanced parenthesis strings have 4 pairs of parentheses?

  1. A valid prefix never has more closes than opens; reflect the first bad prefix to count the complement.
  2. C4=C (8,4)−C (8,5)=C (8,4)5\displaystyle C_{4} = C\, \left(8, 4\right) - C\, \left(8, 5\right) = \frac{C\, \left(8, 4\right)}{5}C4​=C(8,4)−C(8,5)=5C(8,4)​.
  3. The count is 14. Equal final totals alone do not guarantee valid prefixes.

14

Common pitfalls

Possible mix-up: Equal numbers of opens and closes guarantee validity.

Every prefix must also keep the open count at least the close count.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

Explain why ()() is valid but )( is not, despite balanced totals.

Discuss together

Invite your learner to explain: Explain why ()() is valid but )( is not, despite balanced totals. Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    How many balanced parenthesis strings have 6 pairs of parentheses?

    Practise this exact problem →
  2. Problem 2

    How many balanced parenthesis strings have 7 pairs of parentheses?

    Practise this exact problem →
  3. Problem 3

    How many balanced parenthesis strings have 8 pairs of parentheses?

    Practise this exact problem →
  4. Problem 4

    How many balanced parenthesis strings have 9 pairs of parentheses?

    Practise this exact problem →
  5. Problem 5

    How many balanced parenthesis strings have 10 pairs of parentheses?

    Practise this exact problem →
  6. Problem 6

    How many balanced parenthesis strings have 11 pairs of parentheses?

    Practise this exact problem →
  7. Problem 7New context

    A stack receives 12 pushes and 12 pops. A pop is forbidden when the stack is empty. How many push/pop patterns obey the rule?

    Practise this exact problem →
  8. Problem 8New context

    A stack receives 13 pushes and 13 pops. A pop is forbidden when the stack is empty. How many push/pop patterns obey the rule?

    Practise this exact problem →
Open stage IC 3.1 in the student workspace →

STAGE IC 3.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Conditional Sample Spaces

Useful preparation: Prefix Constraints and Catalan Numbers

The idea to remember

Conditioning restricts the sample space: P(A given B)=P(A∩B)/P(B), with P (B)>0\displaystyle P\, \left(B\right) > 0P(B)>0.

Remember with 2 flashcards →

Goal: Understand and apply conditional sample spaces.

Before you begin: Prefix Constraints and Catalan Numbers

Understand the idea

Conditioning on B means outcomes outside B are no longer possible for the question being asked. The favorable outcomes are those satisfying both A and B.

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

Choose and carry out a method

Restrict the denominator to B and the numerator to A∩B. For equally likely elementary outcomes, divide their counts.

Check the reasoning

P(A|B) and P(B|A) usually have different denominators and need not agree. Conditioning requires P (B)>0\displaystyle P\, \left(B\right) > 0P(B)>0.

WORKED EXAMPLE 1

Among 13 outcomes satisfying B, exactly 4 satisfy A as well. There are 21 other outcomes. All outcomes are equally likely. Find P(A|B).

  1. Conditioning restricts the sample space to B.
  2. P(A|B)=|A∩B|/∣B∣=413\displaystyle \left|B\right| = \frac{4}{13}∣B∣=134​.
  3. The answer is 413\displaystyle \frac{4}{13}134​; outcomes outside B do not belong in this denominator.

413\displaystyle \frac{4}{13}134​

WORKED EXAMPLE 2

Among 15 outcomes satisfying B, exactly 5 satisfy A as well. There are 22 other outcomes. All outcomes are equally likely. Find P(A|B).

  1. Conditioning restricts the sample space to B.
  2. P(A|B)=|A∩B|/∣B∣=515\displaystyle \left|B\right| = \frac{5}{15}∣B∣=155​.
  3. The answer is 13\displaystyle \frac{1}{3}31​; outcomes outside B do not belong in this denominator.

13\displaystyle \frac{1}{3}31​

Common pitfalls

Possible mix-up: Use the whole population in the denominator.

The condition restricts the population to B.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

Explain the difference between selecting a cyclist and selecting any respondent.

Discuss together

Invite your learner to explain: Explain the difference between selecting a cyclist and selecting any respondent. Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    Among 19 outcomes satisfying B, exactly 7 satisfy A as well. There are 24 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  2. Problem 2

    Among 21 outcomes satisfying B, exactly 8 satisfy A as well. There are 25 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  3. Problem 3

    Among 23 outcomes satisfying B, exactly 9 satisfy A as well. There are 26 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  4. Problem 4

    Among 25 outcomes satisfying B, exactly 10 satisfy A as well. There are 27 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  5. Problem 5

    Among 27 outcomes satisfying B, exactly 11 satisfy A as well. There are 28 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  6. Problem 6

    Among 29 outcomes satisfying B, exactly 12 satisfy A as well. There are 29 other outcomes. All outcomes are equally likely. Find P(A|B).

    Practise this exact problem →
  7. Problem 7New context

    A survey includes 31 cyclists, of whom 13 also swim, plus 30 noncyclists. A respondent is selected uniformly from cyclists. What is the probability they swim?

    Practise this exact problem →
  8. Problem 8New context

    A survey includes 33 cyclists, of whom 14 also swim, plus 31 noncyclists. A respondent is selected uniformly from cyclists. What is the probability they swim?

    Practise this exact problem →
Open stage IC 3.2 in the student workspace →

STAGE IC 3.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS

Reversing Conditional Probability

Useful preparation: Conditional Sample Spaces

The idea to remember

Bayes' rule reverses conditioning by combining likelihoods with prior probabilities and normalizing.

Remember with 2 flashcards →

Goal: Understand and apply reversing conditional probability.

Before you begin: Conditional Sample Spaces

Understand the idea

Observing an outcome changes the relative weights of possible sources. Each source’s updated weight is its prior probability multiplied by the chance of that outcome from that source.

P(A|R)=P(A)P(R|A)/∑s P (S) P\displaystyle \sum_{s}\, P\, \left(S\right)\, Ps∑​P(S)P(R|S)

Choose and carry out a method

Compute the joint weight for every source and the observation. Divide the target source’s weight by the sum of all such weights.

Check the reasoning

The posterior probabilities must add to one. A source with a high observation rate can still have a small posterior if it is rare initially.

WORKED EXAMPLE 1

A box is chosen: box A with probability 410\displaystyle \frac{4}{10}104​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

  1. Compare the joint probability for A and red with the total probability of red.
  2. Weights are 4⋅(12)\displaystyle 4 \cdot \left(\frac{1}{2}\right)4⋅(21​) and 6⋅(14)\displaystyle 6 \cdot \left(\frac{1}{4}\right)6⋅(41​); multiply both by 4 to get 8 and 6.
  3. The conditional probability is 88+6=47\displaystyle \frac{8}{8 + 6} = \frac{4}{7}8+68​=74​.

47\displaystyle \frac{4}{7}74​

WORKED EXAMPLE 2

A box is chosen: box A with probability 512\displaystyle \frac{5}{12}125​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

  1. Compare the joint probability for A and red with the total probability of red.
  2. Weights are 5⋅(12)\displaystyle 5 \cdot \left(\frac{1}{2}\right)5⋅(21​) and 7⋅(14)\displaystyle 7 \cdot \left(\frac{1}{4}\right)7⋅(41​); multiply both by 4 to get 10 and 7.
  3. The conditional probability is 1010+7=1017\displaystyle \frac{10}{10 + 7} = \frac{10}{17}10+710​=1710​.

1017\displaystyle \frac{10}{17}1710​

Common pitfalls

Possible mix-up: P(A|R) equals P(R|A).

Reverse conditioning requires prior weights and normalization.

Possible mix-up: A correct numerical answer alone explains the method.

State the governing relationship and check the conditions described above.

Explain it to yourself

How does doubling one source’s prior weight change its posterior odds?

Discuss together

Invite your learner to explain: How does doubling one source’s prior weight change its posterior odds? Use the worked examples to discuss their reasoning.

Preview the eight practice prompts
  1. Problem 1

    A box is chosen: box A with probability 716\displaystyle \frac{7}{16}167​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  2. Problem 2

    A box is chosen: box A with probability 818\displaystyle \frac{8}{18}188​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  3. Problem 3

    A box is chosen: box A with probability 920\displaystyle \frac{9}{20}209​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  4. Problem 4

    A box is chosen: box A with probability 1022\displaystyle \frac{10}{22}2210​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  5. Problem 5

    A box is chosen: box A with probability 1124\displaystyle \frac{11}{24}2411​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  6. Problem 6

    A box is chosen: box A with probability 1226\displaystyle \frac{12}{26}2612​, otherwise box B. P(red|A)=12\displaystyle \frac{1}{2}21​ and P(red|B)=14\displaystyle \frac{1}{4}41​. Given that a red token was drawn, find P(A|red).

    Practise this exact problem →
  7. Problem 7New context

    Machine A makes 13 batches for every 15 made by B. A batch from A passes a special test with probability 12\displaystyle \frac{1}{2}21​ and one from B with probability 14\displaystyle \frac{1}{4}41​. Given a passing batch, what is the probability it came from A?

    Practise this exact problem →
  8. Problem 8New context

    Machine A makes 14 batches for every 16 made by B. A batch from A passes a special test with probability 12\displaystyle \frac{1}{2}21​ and one from B with probability 14\displaystyle \frac{1}{4}41​. Given a passing batch, what is the probability it came from A?

    Practise this exact problem →
Open stage IC 3.3 in the student workspace →
Browse another level →
∑ Numerive

Learn

HomeTry a questionMy questsLearning SearchHomeworkUnderstand & rememberCurriculumFlashcardsUniversity

Exam preparation

Mock examsSATPSAT/NMSQTAMC 8 / 10 / 12

Your learning world

My characterAchievementsFriendsStudy groups

Family & help

Family workspace30-day reasoning planStudent sign inFor familiesContact & help
Structured Paths and Conditioning: lessons and practice | Numerive Math