Make learning comfortable
Intermediate Counting and Probability / LEVEL 3 · DIFFICULTY 3/5
Structured Paths and Conditioning
Separate prefix constraints from conditional sample spaces.
Choose a node to explore its lesson.
STAGE IC 3.1 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Prefix Constraints and Catalan Numbers
Useful preparation: Recurrences from First Choices
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.
Choose and carry out a method
Count all equal-total strings, then subtract bad strings through a first-crossing reflection correspondence. The difference is .
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.
How many balanced parenthesis strings have 3 pairs of parentheses?
- A valid prefix never has more closes than opens; reflect the first bad prefix to count the complement.
- .
- The count is 5. Equal final totals alone do not guarantee valid prefixes.
5
How many balanced parenthesis strings have 4 pairs of parentheses?
- A valid prefix never has more closes than opens; reflect the first bad prefix to count the complement.
- .
- 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.
Preview the eight practice prompts
How many balanced parenthesis strings have 6 pairs of parentheses?
How many balanced parenthesis strings have 7 pairs of parentheses?
How many balanced parenthesis strings have 8 pairs of parentheses?
How many balanced parenthesis strings have 9 pairs of parentheses?
How many balanced parenthesis strings have 10 pairs of parentheses?
How many balanced parenthesis strings have 11 pairs of parentheses?
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?
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?
STAGE IC 3.2 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Conditional Sample Spaces
Useful preparation: Prefix Constraints and Catalan Numbers
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.
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 .
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).
- Conditioning restricts the sample space to B.
- P(A|B)=|A∩B|/.
- The answer is ; outcomes outside B do not belong in this denominator.
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).
- Conditioning restricts the sample space to B.
- P(A|B)=|A∩B|/.
- The answer is ; outcomes outside B do not belong in this denominator.
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.
Preview the eight practice prompts
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).
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).
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).
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).
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).
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).
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?
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?
STAGE IC 3.3 · 8 PRACTICE PROBLEMS · 2 NEW-CONTEXT APPLICATIONS
Reversing Conditional Probability
Useful preparation: Conditional Sample Spaces
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.
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.
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
- Compare the joint probability for A and red with the total probability of red.
- Weights are and ; multiply both by 4 to get 8 and 6.
- The conditional probability is .
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
- Compare the joint probability for A and red with the total probability of red.
- Weights are and ; multiply both by 4 to get 10 and 7.
- The conditional probability is .
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?
Preview the eight practice prompts
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
A box is chosen: box A with probability , otherwise box B. P(red|A)= and P(red|B)=. Given that a red token was drawn, find P(A|red).
Machine A makes 13 batches for every 15 made by B. A batch from A passes a special test with probability and one from B with probability . Given a passing batch, what is the probability it came from A?
Machine A makes 14 batches for every 16 made by B. A batch from A passes a special test with probability and one from B with probability . Given a passing batch, what is the probability it came from A?

