Last Time | Next Time |
I replied "Well, it was a homework question," and the student said "We have homework?!"
Whoops! Yes, you have homework. You can access this off our homepage, under "Schedule and Assignments".
and that it's more generally called Pascal's triangle today (after Blaise Pascal, who studied it to death!).
Question of the Day:
Pascal used "his" triangle to compute probabilities, in part because of his interest in gaming and gambling. It turns out that this "arithmetic triangle" (as he called it) is very useful for counting things.
Now, if each vertex represents a unique individual (we name them), then Pascal's triangle tells us all the different Facebooks possible, of each type. If everyone's friends with everyone else, then the graphs we can get will look like these, the complete graphs:
Now how many different Facebook configurations are there for, say
|
|
Each choice of a different set of friendships results in a different Facebook. So we begin by asking how many arcs X are possible, and then asking how many ways can we pick Y arcs from X?
How do we use Pascal's triangle to find the answer for a given number of people? We first find the number of arcs for the given number of people (the appropriate triangular number), and then read off the number of different ways of having a given number of Facebook friendships from the "arc row" of the table.
The same process works if we want to decide questions like Pascal's about boys and girls, such as
You have four extra tickets to a concert; in how many ways could you choose a set of four friends from your seven favorite friends? (Notice that it's the same number of ways as the number of ways of excluding three friends: the table is symmetric!)
There is actually a formula for computing the entry in any row of Pascal's triangle. Note that we count the entries across a row starting from 0 (choose 0, choose 1, ..., choose \(n\))
It's represented in different ways, but my favorite is \[ C^n_p = \frac{n!}{p!(n-p)!} \] (because these entries are called combinations); another common notation is \[ {n \choose p} \]
(and we say "\(n\) choose \(p\)").
That's a daunting formula! So let's see how it works. That exclamation point (!) means to multiply all the natural numbers from \(n\) down to 1. So \(6! = 6 \cdot 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1 = 720\). We define \(1! = 1\).
Oddly enough, we also define \(0! = 1\). That should just tell you that mathematicians have very odd senses of humor.
The triangular numbers are what we get from "choosing 2": \[ C^n_2 = \frac{n!}{2!(n-2)!} = \frac{n \cdot (n-1) \cdot (n-2) \cdot (n-3) \ldots \cdot 2 \cdot 1}{2!(n-2) \cdot (n-3) \ldots \cdot 2 \cdot 1} \] so there's a whole bunch of cancellation, and
\[ C^n_2 = \frac{n!}{2!(n-2)!} = \frac{n \cdot (n-1)}{2!} = \frac{n \cdot (n-1)}{2!} \]
These are the triangular numbers: plugging in 2, 3, 4, 5, and 6 for \(n\), we get the usual suspects: \[ \begin{array}{c} C^2_2 = 1\cr C^3_2 = 3\cr C^4_2 = 6\cr C^5_2 = 10\cr C^6_2 = 15 \end{array} \]
\[ (a+b)^n \]
So, for example,
\[ (a+b)^0=1 \] \[ (a+b)^1=1a+1b \] \[ (a+b)^2=1a^2+2ab+1b^2 \] \[ (a+b)^3=1a^3+3a^2b+3ab^2+1b^3 \] \[ (a+b)^4=1a^4+4a^3b+6a^2b^2+4ab^3+1b^4 \]
(see your assigned reading).
I hope that you noticed Pascal's triangle peeking out from the right hand sides above!
Do you remember that the Chinese translation of Yang Hui's triangle has the words "to the 4th power" (etc.) in it? These are the powers, of these "binomials".
If it's a fair six-sided die, the probability of rolling a six is 1/6. The probability of rolling a six is \(a=1/6\); then the probability that you don't roll a six is \(b=5/6\).
Let's roll four time:
\[ (a+b)^4=1a^4+4a^3b+6a^2b^2+4ab^3+1b^4 \] Then \[ (\frac{1}{6}+\frac{5}{6})^4=1\left(\frac{1}{6}\right)^4+4\left(\frac{1}{6}\right)^3\left(\frac{5}{6}\right)+6\left(\frac{1}{6}\right)^2\left(\frac{5}{6}\right)^2+4\left(\frac{1}{6}\right)\left(\frac{5}{6}\right)^3+1\left(\frac{5}{6}\right)^4 \]
Since every denominator has a \(6^4=1296\) in it, we can re-write the probabilities in perhaps a more intuitive way. (In class)
For example, suppose that the probability that you have a cold on a given winter day is \(a=1/100\); then the probability that you don't have a cold is \(b=99/100\).
Let's suppose that winter is 90 days long. What is the probability that you have a cold-free winter? We need to compute the 90th row in the table, which has some really big numbers!
\[ \left(\frac{1}{100}+\frac{99}{100}\right)^{90} \]
If you're wondering where that 4005 comes from, it's the triangular entry of the 90th row of Pascal's triangle (third entry from the left, choosing 2): \[ C^{90}_2 = \frac{90!}{2!88!} = \frac{90 \cdot 89}{2} = 4005 \]
The tetrahedral entry of the 90th row of Pascal's triangle: \[ C^{90}_3 = \frac{90!}{3!87!} = \frac{90 \cdot 89 \cdot 88}{3 \cdot 2} = 117480 \]
Watch Dave Brubeck's leg, counting out the rhythm....