If event_1 can occur in x_1 ways, event_2 in x_2 ways, event_3 in x_3 ways, ... , and event_n in x_n ways, then all the events can occur together in x_1\cdot x_2\cdot x_3\cdot ... \cdot x_n ways.
|
|
|
|
|
|
|
|
There are n! permutations (arrangements) of n distinct objects.
Why? Because there are n ways to arrange the first object, n-1 ways to arrange the second, etc.
|
|
|
|
factorial is in Sage:
|
|
|
|
|
|
|
|
There are \frac{n!}{n_1!n_2!n_3!...n_k!} distinguishable permutations of n objects with frequencies n_1+n_2+n_3+...+n_k = n.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There are \frac{n!}{(n-r)!} distinguishable permutations of r objects taken from a set of n objects.
We represent this as _{n}P_{r}.
|
|
|
|
|
|
|
|
There are _nC_r combinations of r objects taken from a set of n objects.
The number of permutations of these groups is _nC_r \cdot r! This is equivalent to _nP_r.
Therefore, _nC_r = \frac{_nP_r}{r!} = \frac{n!}{(n-r)! \cdot r!}.
_nC_r is also known as a binomial coefficient and is often expressed as \binom {n} {r}.
|
|
|
|
The function binomial() is in Sage:
|
|
|
|
|
|
|
|
|
|
|
|
There are 2^n possible subsets of a set containing n objects.
|
|
|
|
|
|
\sum_{r=0}^{n} _{n} C _{r} = 2^{n}
|
|
|
|
|
|
|
|
|
|
|
|
|
|