Difference between revisions of "AP Statistics Curriculum 2007 Prob Count"

From SOCR
Jump to: navigation, search
Line 32: Line 32:
 
When the order does not matter and an object can be chosen more than once, then the number of combinations is <math>{{(n + k - 1)!} \over {k!(n - 1)!}} = {{n + k - 1} \choose {k}} = {{n + k - 1} \choose {n - 1}}</math>, where n is the number of objects from which you can choose and k is the number to be chosen. For example, if you have ten types of donuts (n) on a menu to choose from and you want three donuts (k) there are (10 + 3 − 1)! / 3!(10 − 1)! = 220 ways to choose.
 
When the order does not matter and an object can be chosen more than once, then the number of combinations is <math>{{(n + k - 1)!} \over {k!(n - 1)!}} = {{n + k - 1} \choose {k}} = {{n + k - 1} \choose {n - 1}}</math>, where n is the number of objects from which you can choose and k is the number to be chosen. For example, if you have ten types of donuts (n) on a menu to choose from and you want three donuts (k) there are (10 + 3 − 1)! / 3!(10 − 1)! = 220 ways to choose.
  
 +
====Hands-on activity====
 +
The [[SOCR_EduMaterials_Activities_CardExperiment | SOCR Card Experiment]] allow us to see how the number of combinations may be used to estimate probabilities of various events (in terms of card hand outcomes). Suppose we are interested int he probability that all 5 cards in a randomly drawn hand are of the same suit (''flush'').
 +
* '''Theoretical calculation''': The exact probability of a flush (all 5 cards are from the same suit) is computed as follows: The number of ''flush hands'' is <math>{{4} \choose {1}} \times {{13} \choose {5}}= 4 \times 1,287 = 5,148</math>, which reflects the number of ways to select one of the 4 suits and the number of ways to select 5 from the 13 available card denominations. The total number of 5-card poker hands is <math>{{52}\choose{5}}= 2,598,960</math>. Therefore, the probability <math>P(flush) ={ \over 2,598,960} =0.00198079</math>.
 +
 +
* '''Approximation''': And we can also use the Card simulation to estimate this probability. For example, we can run the experiment 100 times. Let T be the number of 5-card hands that had all cards of the same suit (i.e., <math>Z_i=Z_j</math>, for all <math>1 \leq i,j \leq 5</math>). Then Z/100 gives a simulation-based estimate of the probability of the complex event of interest (at least one pair). Note that the values of <math>Z_i</math> are clubs (0), diamonds (1), hearts (2) and spades (3). Thus, T is the number of rows, in the output table, that have all Z-columns having the same value (0, 1, 2, or 3). In one experiment of 100 runs, we observed one 5-card hand where all cards had the same suit. Therefore the approximate probability of a ''flush'' (the event that in a randomly chosen 5-card hand, all cards are of the same suit) is 1/100 = 0.01.
 +
 +
<center>[[Image:SOCR_EBook_Dinov_Probability_012908_Fig4.jpg|400px]]</center>
 +
 +
* [http://www.math.hawaii.edu/~ramsey/Probability/PokerHands.html Additional information about other interesting 5-card arrrangements may be found here].
  
 
<hr>
 
<hr>

Revision as of 15:25, 29 January 2008

General Advance-Placement (AP) Statistics Curriculum - Counting Principles in Probability Theory

Counting Principles in Probability Theory

There are many useful counting principles to compute the number of ways that certain arrangements of objects can be formed. Examples of such problems are counting combinations or permutations of objects. For a given collection of objects {\(a_i\)}, counting methods help us describe protocols for computing numbers of arrangements of these objects when taken n at a time. For instance the number of different possible orderings of a deck of n cards is \(1\times 2\times 3 \times 4 \times \cdots \times n = n!\).

Permutations

Permutation is the rearrangement of objects or symbols into distinguishable sequences. Each unique ordering is called a permutation. For example, with the numbers {1, 2, 3, 4, 5, 6}, each possible ordering consists of a complete list of the numerals, without repetitions. There are 6!=720 total number of permutations of these numerals, one of which is: {6, 5, 4, 3, 2, 1}.

Permutations with repetitions

When the ordering of objects matters, and an object can be chosen more than once, the number of permutations is \(n^r\), where n is the number of objects from which you can choose and r is the number of objects we can choose (repetitions allowed). For example, if you have the letters A, B, C, and D and you wish to discover the number of ways to arrange them in three letter patterns, then there are \(4^3\) or 64 arrangements. Note that in this case:

  • order matters (e.g., A-B is different from B-A, both are included as possibilities);
  • an object can be chosen more than once (A-A possible).

This is because for the first slot you can choose any of the four values, for the second slot you can choose any of the four, and for the final slot you can choose any of the four letters. Multiplying them together gives the total.

Permutations without repetitions

When the order matters and each object can be chosen only once, then the number of permutations is \(n\times (n-1)\times (n-2) \times \cdots \times (n-r+1) = \frac{n!}{(n-r)!}\), where n is the number of objects from which you can choose, r is the number to be chosen and \(k! = 1\times 2\times 3 \times \cdots \times k\) is the factorial notation. For example, if we have 5 people and we choose 3 out of the 5, we have 5!/(5 − 3)! = 60 permutations.

  • If n = r (meaning the number of chosen elements is equal to the number of elements to choose from; we pick all 5 people) then the number of permutation becomes \(\frac{n!}{(n-n)!} = \frac{n!}{0!} = n!\), with 0! = 1 (by definition).
  • If we have 5 people and want to arrange them all, the number of possible arrangements (permutations) will be 5! or 5 × 4 × 3 × 2 × 1 = 120 ways. The reason for this is that you can choose from 5 for the initial slot, then you are left with only 4 to choose from for the second slot etc. Multiplying them together gives the total of 120.

Hands-on permutation activity

This SOCR Matching Experiment demonstrates the concept of permutation. This experiment allows us to randomly permute n balls, numbered 1 to n. A match occurs whenever the ball number and the position number agree. The matches are shown in red. The number of matches N is recorded on each update. The distribution and moments of N are shown in the distribution graph and the distribution table. The parameter n can be varied with a scroll bar.

SOCR EBook Dinov Probability 013008 Fig1.jpg

Combinations

An ordered collection of objects is a permutation. A combination is an un-ordered collection of unique objects. Given S, the set of all possible unique elements, a combination is a subset of the elements of S. The order of the elements in a combination is not important (two lists with the same elements in different orders are considered to be the same combination). Also, the elements cannot be repeated in a combination (every element appears uniquely once); i.e., we sample without replacement/repetition. Combinations are defined by the elements contained in them, thus the set {1,1,2} is the same as {2,1,1}. For example, from a 52-card deck any 5 cards can form a valid combination (a hand). The order of the cards doesn't matter and there can be no repetition of cards.

Combinations without repetitions

When the order does not matter and each object can be chosen only once, the number of combinations is the binomial coefficient\[{n\choose k} = {{n!} \over {k!(n - k)!}}\], where n is the number of objects from which you can choose and k is the number of chosen objects. For example, if you have ten numbers and wish to choose 5 you would have 10!/(5!(10 − 5)!) = 252 ways to choose. The binomial coefficient is also used to calculate the number of permutations in a lottery, as the order of the lottary numbers is irrelevant.

Combinations with repetitions

When the order does not matter and an object can be chosen more than once, then the number of combinations is \({{(n + k - 1)!} \over {k!(n - 1)!}} = {{n + k - 1} \choose {k}} = {{n + k - 1} \choose {n - 1}}\), where n is the number of objects from which you can choose and k is the number to be chosen. For example, if you have ten types of donuts (n) on a menu to choose from and you want three donuts (k) there are (10 + 3 − 1)! / 3!(10 − 1)! = 220 ways to choose.

Hands-on activity

The SOCR Card Experiment allow us to see how the number of combinations may be used to estimate probabilities of various events (in terms of card hand outcomes). Suppose we are interested int he probability that all 5 cards in a randomly drawn hand are of the same suit (flush).

  • Theoretical calculation: The exact probability of a flush (all 5 cards are from the same suit) is computed as follows: The number of flush hands is \({{4} \choose {1}} \times {{13} \choose {5}}= 4 \times 1,287 = 5,148\), which reflects the number of ways to select one of the 4 suits and the number of ways to select 5 from the 13 available card denominations. The total number of 5-card poker hands is \({{52}\choose{5}}= 2,598,960\). Therefore, the probability \(P(flush) ={ \over 2,598,960} =0.00198079\).
  • Approximation: And we can also use the Card simulation to estimate this probability. For example, we can run the experiment 100 times. Let T be the number of 5-card hands that had all cards of the same suit (i.e., \(Z_i=Z_j\), for all \(1 \leq i,j \leq 5\)). Then Z/100 gives a simulation-based estimate of the probability of the complex event of interest (at least one pair). Note that the values of \(Z_i\) are clubs (0), diamonds (1), hearts (2) and spades (3). Thus, T is the number of rows, in the output table, that have all Z-columns having the same value (0, 1, 2, or 3). In one experiment of 100 runs, we observed one 5-card hand where all cards had the same suit. Therefore the approximate probability of a flush (the event that in a randomly chosen 5-card hand, all cards are of the same suit) is 1/100 = 0.01.
SOCR EBook Dinov Probability 012908 Fig4.jpg

References




Translate this page:

(default)
Uk flag.gif

Deutsch
De flag.gif

Español
Es flag.gif

Français
Fr flag.gif

Italiano
It flag.gif

Português
Pt flag.gif

日本語
Jp flag.gif

България
Bg flag.gif

الامارات العربية المتحدة
Ae flag.gif

Suomi
Fi flag.gif

इस भाषा में
In flag.gif

Norge
No flag.png

한국어
Kr flag.gif

中文
Cn flag.gif

繁体中文
Cn flag.gif

Русский
Ru flag.gif

Nederlands
Nl flag.gif

Ελληνικά
Gr flag.gif

Hrvatska
Hr flag.gif

Česká republika
Cz flag.gif

Danmark
Dk flag.gif

Polska
Pl flag.png

România
Ro flag.png

Sverige
Se flag.gif