Probability & Counting
This guide will introduce some techniques and examples of probability and counting problems that are common in competition math, up to some of the most advanced concepts for high school level. I'm assuming you already have a working knowledge of probability basics.
Sets
Probability can be represented using sets of desired outcomes and total outcomes, and several concepts are derived from this representation.
\subsection{Set Properties}
When the complement of an event
is easier to calculate, it is helpful to use this property to find it instead and subtract from 1 to get
.
Note that the complement or negation of A can be written several ways: , etc.\\
These properties can be used to simplify calculating probability:
\paragraph{De Morgan's laws}
\paragraph{Distributive laws}
\subsection{Principle of Inclusion-Exclusion}
Two events often have overlap, for example when finding the probability that a drawn card is a heart or a king, one must be sure not to count the king of hearts twice. The Principal of Inclusion-Exclusion is used to account for the overlap.
This is illustrated by Vinn diagrams. It can also be extended for more than two events. For three events:
And so on, alternating between addition and subtraction when permutating an increasing number of events.
\subsection{Terminology}
\begin{enumerate}
\item Sample space: the set of all possible outcomes. For rolling two dice, the sample space of the possible sums is {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} . So the size of the sample space is 11, not 36, because some of the outcomes overlap.
\item Disjoint or mutually exclusive: Two events are mutually exclusive if . In other words, by the Principal of Inclusion-Exclusion,
, or in a Vinn diagram, the two events are non-overlapping.
\item Independent: Two events are independent if . This is typically the case unless event A increases or decreases the chances of event B or vice versa. For example the probability of getting a cat is 1/5, and the probability of getting a dog is 1/10; however, the probability of getting both is less than 1/50 because your parents think they will fight. Thus the events are dependent.
\end{enumerate}
\subsection{Subsets}
A quick bit about subsets. A subset of set
that does not include every element of
is called a proper subset and is denoted by
, whereas if
may include all elements of
it is denoted by
and when it does include all elements, it is called the improper subset. \\
The total number of all subsets of a set with a cardinality (number of elements) of is
. This is because each element has two possible states: included in the set or not included. This also illustrates the fact that
if we were to break down each of the subsets into the number of elements it contains.\\
(MA Alpha Probability 2005)
Tools
\subsection{Combinations and Permutations}
When first doing probability most people are tempted to approach problems like this by dealing with one case at a time and multiplying and adding the results.\\
Probability of drawing ace-ace-not ace:
Probability of drawing ace-not ace-ace:
Probability of drawing not ace-ace-ace:
Probability of drawing ace-ace-not ace or ace-not ace-ace or not ace-ace-ace:
Combinations and permutations greatly simplify this process. For this problem we will focus on combinations. Instead of doing case work, we will count everything we need and put it in one fraction.
Each represents one combination.\\
Ways to draw one other card: choose one out of 48 other cards, .
Ways to draw three cards: choose three out of 52 cards, .
The key is first setting up the problem,and then knowing that choosing out of
items has a total of
possibilities. Using the same technique, it isn't much harder to solve much more complex problems.\\
Combinations are used on a set of elements when order doesn't matter or when one specific order must be maintained. Permutations work similarly but they additionally count the number of ways to arrange the elements.
\subsection{Bijection}
Bijection is just a fancy name for a simple concept. If two sets are isomorphic (each unique element in set A can be mapped to a unique element in set B), then counting one set is equivalent to counting another. So you can get really good at counting one type of set, and bijection is what allows you to apply it to all isomorphic sets. In particular, you will learn how to apply the `balls-in-urns' method to many types of problems.
\subsection{Balls-in-urns Formula}
The number of ways to place indistinguishable balls into
distinguishable urns is given by the balls-in-urns formula:
The applications of this formula are numerous. Here are a few examples to illustrate how the formula can be applied.\\
\begin{enumerate}
\item
\\So 28 solutions of triples.
\item What if it asked for positive integers ,
, and
? Since each urn must have at least one ball, we can immediately place one in each, leaving three balls left over. The remaining three can then be placed in any urn. So
and
:
\item (MA Probability and Statistics 1992)
Now we can stick the remaining six chairs in any location before or after everyone, or between any two people. There are six such locations. The locations are distinguishable because different numbers of empty chairs create unique outcomes, and chairs are indistinguishable. So we have
The total possible outcomes are given by choosing five of the fifteen chairs. So our probability is
\end{enumerate}
\subsection{Conditional Probability}
Conditional probability is given by the formula
which is read: the probability of A given B equals the probability of A and B divided by the probability of B. Let's jump right into a problem to show how this works. \\
\begin{enumerate}
\item (MA Theta Probability and Statistics 1996)
A common approach this type of problem is drawing out a tree for each cases and combining the relevant problems. That's good for learning how it works, and it works the same way. We'll just make this quick by using the formula.\\
\item (MA
This is just our formula mixed up plus some of the set properties from earlier. Note that `the probability of event
\begin{eqnarray*}
P(\overline{A} \cap \overline{B}) &=& P\overline{(A \cup B)} \\
&=& 1 - P(A \cup B) \\
&=& 1 - (P(A) + P(B) - P(A \cap B)) \\
&=& 1 - (\frac{5}{12} + \frac{7}{12} - \frac{1}{3}) \\
&=& \frac{1}{3}
\end{eqnarray*}
\end{enumerate}
\subsection{Geometric Probability}
This is a problem type that occurs frequently with very little variation.\\
(MA Probability and Statistics 1992)
Since this deals with an infinite number of cases (each infinitesimal unit of time) our traditional approaches to probability won't work. A bit of analytic geometry, however, can take care of it.\\
\includegraphics*[viewport=0 0 296 294]{geomprob1}
The shaded region is the time in which the man and the taxi meet, so our probability is that area over the total area of the square.
That's almost exactly how you'll see geometric probability 90\% of the time.
\subsection{Recursion}
Many difficult-sounding probability or counting problems are simple cases of recursion. Recursive sequences give their value in terms of the value of other terms of the same sequence. The Fibonacci sequence is defined recursively: . (In fact, many problems have recursive functions that resemble the Fibonacci sequence. A fact to note is that the ratio of consecutive Fibonacci terms,
, approaches
as
approaches infinity.)\\
Some examples:
\begin{enumerate}
\item (Mathew Crawford)
This is just the 14th term of the Fibonacci sequence: 610.
\item (ARML Team 2006)
The elevator can't have 3 people until after opening on floor 4, so we can start there, using the definitions above.
\begin{eqnarray*}
P(3,4) &=& \frac{1}{2} * P(2,5) \\
&=& \frac{1}{2} * \frac{1}{2} * P(1,6) \\
&=& \frac{1}{2} * \frac{1}{2} * \frac{1}{2} \\
&=& \frac{1}{8}
\end{eqnarray*}
\begin{eqnarray*}
P(3,3) &=& \frac{1}{2} * P(2,4) \\
&=& \frac{1}{2} * \frac{1}{2} * P(1,5) \\
&=& \frac{1}{2} * \frac{1}{2} * \left(\frac{1}{2} * P(0,6) + \frac{1}{2} * P(2,6) \right) \\
&=& \frac{1}{2} * \frac{1}{2} * \left(\frac{1}{2} * \frac{1}{2} + \frac{1}{2} * 0 \right)\\
&=& \frac{1}{16}
\end{eqnarray*}
\begin{eqnarray*}
P(3,2) &=& \frac{1}{2} * P(2,3) \\
&=& \frac{1}{2} * \frac{1}{2} * P(1,4) \\
&=& \frac{1}{2} * \frac{1}{2} * \left(\frac{1}{2} * P(0,5) + \frac{1}{2} * P(2,5) \right) \\
&=& \frac{1}{2} * \frac{1}{2} * \left[ \frac{1}{2} * \left(\frac{1}{2} * P(0,6) + \frac{1}{2} * P(1,6) \right) + \frac{1}{2} * \frac{1}{2} * P(1,6) \right]\\
&=& \frac{1}{2} * \frac{1}{2} * \left[\frac{1}{2} \left(\frac{1}{2} *\frac{1}{2} + \frac{1}{2} * \frac{1}{2} \right) + \frac{1}{2} * \frac{1}{2} * \frac{1}{2} \right] \\
&=& \frac{3}{32}
\end{eqnarray*}
The total probability is .
\end{enumerate}
Additional Problem Examples
\subsection{}
(MA Theta Individual 2004)
\subsection{}
\subsection{}
(MA Theta Probability 2001)
Likewise for the number of paths between and
and between
and
. They are each
. If I can choose among
paths from
to
and among
paths from
to
, then I can choose a total of
paths from
to
that pass through
.\\
The probability is
Conclusion
You are now equipped to tackle just about any competition probability problem. The more difficult problems will involve looking for patterns, trying simpler cases, applying these tools in creative ways, and crossing over into other areas of math (frequently number theory and geometry); it's up to you. Good luck!