AP Statistics Curriculum 2007 Prob Count
From Socr
m (→Counting Principles in Probability Theory) |
|||
(5 intermediate revisions not shown) | |||
Line 2: | Line 2: | ||
=== 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 {<math>a_i</math>}, 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 <math>1\times 2\times 3 \times 4 \times \cdots \times n = n!</math> | + | 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 {<math>a_i</math>}, 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 <math>1\times 2\times 3 \times 4 \times \cdots \times n = n!</math> (i.e., as \(n \longrightarrow \infty\)). |
* [http://en.wikipedia.org/wiki/Stirling%27s_approximation Sterling Formula] for asymptotic behavior of n! | * [http://en.wikipedia.org/wiki/Stirling%27s_approximation Sterling Formula] for asymptotic behavior of n! | ||
Line 41: | Line 41: | ||
: Example selection: <math>\{1 1, 0 , 1, 0, 0, 0, 0, 0, 0, 0\}</math> (one repetition). | : Example selection: <math>\{1 1, 0 , 1, 0, 0, 0, 0, 0, 0, 0\}</math> (one repetition). | ||
: Another selection: <math>\{0 , 0 , 1, 0, 0, 1, 0, 0, 0, 1\}</math> (no repetitions). | : Another selection: <math>\{0 , 0 , 1, 0, 0, 1, 0, 0, 0, 1\}</math> (no repetitions). | ||
- | Now let's list | + | Now let's list these arrangements as strings of 1's and 0's, where ones indicate doughnuts of the specified type, and zeros indicate spaces between doughnut categories (types): |
: <math>\{1 1 0 0 1 0 0 0 0 0 0 0\}</math>, first arrangement of 3 doughnuts containing two doughnuts of Type 1, one of Type 3, where the nine zeros represent the nine boundaries between the 10 doughnut types. | : <math>\{1 1 0 0 1 0 0 0 0 0 0 0\}</math>, first arrangement of 3 doughnuts containing two doughnuts of Type 1, one of Type 3, where the nine zeros represent the nine boundaries between the 10 doughnut types. | ||
: <math>\{0 0 1 0 1 0 1 0 0 0 0 0\}</math>, second arrangement of 3 doughnuts containing one doughnut of Type 3, one of Type 4, and one of Type 5. | : <math>\{0 0 1 0 1 0 1 0 0 0 0 0\}</math>, second arrangement of 3 doughnuts containing one doughnut of Type 3, one of Type 4, and one of Type 5. | ||
Line 55: | Line 55: | ||
<center>[[Image:SOCR_EBook_Dinov_Probability_012908_Fig4.jpg|400px]]</center> | <center>[[Image:SOCR_EBook_Dinov_Probability_012908_Fig4.jpg|400px]]</center> | ||
- | * '''Alternative Approximation''': | + | * '''Alternative Approximation''': We can also use the [http://socr.ucla.edu/htmls/exp/Poker_Experiment.html Poker Experiment] to estimate the probability of a flush (V=5). Choose a stopping criterion of ''V=5'' (this is flush). Then run the experiment. It will stop the first time you observe a ''flush''. Therefore, 1/(number of experiments) is an '''estimate''' of the desired probability of observing a flush (see image below) - in this case '''1/1,234.''' |
<center>[[Image:SOCR_EBook_Dinov_Probability_101708_Fig5.jpg|400px]]</center> | <center>[[Image:SOCR_EBook_Dinov_Probability_101708_Fig5.jpg|400px]]</center> | ||
* [http://www.math.hawaii.edu/~ramsey/Probability/PokerHands.html Additional information about other interesting 5-card arrangements may be found here]. | * [http://www.math.hawaii.edu/~ramsey/Probability/PokerHands.html Additional information about other interesting 5-card arrangements may be found here]. | ||
+ | |||
+ | ====[[SOCR_EduMaterials_Activities_PokerExperiment | Poker Game]] Calculations==== | ||
+ | There is a variety of events that may be of interest for 5-card (poker) games (see also [[AP_Statistics_Curriculum_2007_Prob_Count#Hands-on_combination_activity | this section on card games]]. Some of these are: | ||
+ | * '''A single Pair Match''': For instance, the hand with the pattern AABCD, where A, B, C and D are from the distinct kinds (denominations) of cards: aces, twos, threes, tens, jacks, queens, and kings (there are 13 denominations, and four suits, in the standard 52 card deck). The number of such hands is <math>{13 \choose 1}{4\choose 2}{12\choose 3}{4\choose 1}^3</math>. If all hands are equally likely, the probability of a single pair is obtained by dividing this number by the total number of 5-card hands possible (<math>{52\choose 5}=2,598,960</math>). Thus, P(1 pair only) = 0.422569. | ||
+ | |||
+ | * '''Two pairs''': For instance, the pattern AABBC where A, B, and C are from distinct kinds. The number of such hands is <math>{13\choose 2}{4\choose 2}{4\choose 2}{11\choose 1}{4\choose 1}</math>. And therefore, dividing by <math>{52\choose 5}=2,598,960</math>, the P(2 pairs) = 0.047539. | ||
+ | |||
+ | * '''One triple''': For example, the pattern AAABC where A, B, and C are from distinct kinds. The number of such hands is <math>{13\choose 1}{4\choose 3}{12\choose 2}{4\choose 1}^2</math>. Thus, the P(1 triple) = 0.021128. | ||
+ | |||
+ | * '''A Full House''': This includes patterns like AAABB where A and B are from distinct kinds. The number of such hands is <math>{13\choose 1}{4\choose 3}{12\choose 1}{4\choose 2}</math>. Thus, P(Full House)=0.001441. | ||
+ | |||
+ | * '''Four of a kind''': For instance, the pattern AAAAB where A and B are from distinct kinds. The number of such hands is <math>{13\choose 1}{4\choose 4}{12\choose 1}{4\choose 1}</math>. The P(4-of-a-kind)=0.000240. | ||
+ | |||
+ | * '''A straight''': Five cards in a sequence (e.g., 4,5,6,7,8), with aces allowed to be either 1 or 13 (low or high) and with the cards allowed to be of the same suit (e.g., all hearts) or from some different suits. The number of such hands is <math>10*{4\choose 1}^5</math>. Thus, P(A Straight)=0.003940. But if you exclude Straight-Flushes AND Royal Flushes, the number of such hands is <math>10*{4\choose 1}^5 - 36 - 4 = 10200</math>, the corresponding probability P(A Straight, but not a Straight or Royal Flush)=0.00392465. | ||
+ | |||
+ | * '''A Straight Flush''': All 5 cards are from the same suit and they form a straight. The number of such hands is 4*10, and P(Straight Flush)=0.0000153908. | ||
+ | |||
+ | * '''A Royal Flush''': This consists of the ten, jack, queen, king, and ace all in one suit. There are only 4 such hands. Thus, P(Royal Flush)=0.00000153908. | ||
+ | |||
+ | <center>[[Image:SOCR_EBook_Dinov_Probability_013008_Fig2.jpg|400px]]</center> | ||
===Applications=== | ===Applications=== | ||
====Number of integer solutions to linear equations==== | ====Number of integer solutions to linear equations==== | ||
* Preview: Suppose we have ''n'' balls that we want to randomly position in ''r'' distinguishable urns, assume <math>n\ge r</math>. What is the number of possible arrangements of these balls? | * Preview: Suppose we have ''n'' balls that we want to randomly position in ''r'' distinguishable urns, assume <math>n\ge r</math>. What is the number of possible arrangements of these balls? | ||
- | ** If the balls are distinguishable (labeled): <math>n^r</math> possible outcomes, where empty urns are permitted. | + | ** If the balls are distinguishable (labeled): <math>n^r</math> possible outcomes, where empty urns are permitted. Each of the ''n'' balls can be placed in any of the ''r'' urns. |
** If the balls are indistinguishable: no empty urns are allowed – select ''r-1'' of all possible ''n-1'' dividing points between the ''n'' balls. Empty urns are allowed. | ** If the balls are indistinguishable: no empty urns are allowed – select ''r-1'' of all possible ''n-1'' dividing points between the ''n'' balls. Empty urns are allowed. | ||
Line 77: | Line 97: | ||
: If not all the money needs to be invested, let ''x_5'' be the left over money, then <math>x_1+x_2+x_3+x_4+x_5=20</math>: | : If not all the money needs to be invested, let ''x_5'' be the left over money, then <math>x_1+x_2+x_3+x_4+x_5=20</math>: | ||
:: <math>{{24} \choose {4}} = 10,626.</math> | :: <math>{{24} \choose {4}} = 10,626.</math> | ||
+ | |||
+ | ===See also (Multinomial)=== | ||
+ | The [[AP_Statistics_Curriculum_2007_Distrib_Multinomial|EBook Chapter on multinomial arrangements and counting]] provides an extension to the binomial counting principles discussed above int the case of 3 or more possible outcomes. | ||
===[[EBook_Problems_Prob_Count|Problems]]=== | ===[[EBook_Problems_Prob_Count|Problems]]=== |
Current revision as of 01:46, 17 April 2013
Contents |
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 (i.e., as \(n \longrightarrow \infty\)).
- Sterling Formula for asymptotic behavior of 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 , where n is the number of objects from which you can choose, r is the number to be chosen and 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 , 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. Two derivations of the matching problem probabilities using permutations can be found here.
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: , 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 lottery numbers is irrelevant. You can use this combinations calculator to compute the combinations for .
Combinations with repetitions
When the order does not matter and an object can be chosen more than once, then the number of combinations is , 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 doughnuts (n) on a menu to choose from and you want three doughnuts (k) there are (10 + 3 − 1)! / 3!(10 − 1)! = 220 ways to choose.
To understand this formula, consider the n=10 doughnuts as 10 categories , and the combination of 3 doughnuts , with repetitions, as arrangements. So several examples include:
- Doughnut types: {D_{1},D_{2},D_{3},D_{4},D_{5},D_{6},D_{7},D_{8},D_{9},D_{10}}
- Example selection: {11,0,1,0,0,0,0,0,0,0} (one repetition).
- Another selection: {0,0,1,0,0,1,0,0,0,1} (no repetitions).
Now let's list these arrangements as strings of 1's and 0's, where ones indicate doughnuts of the specified type, and zeros indicate spaces between doughnut categories (types):
- {110010000000}, first arrangement of 3 doughnuts containing two doughnuts of Type 1, one of Type 3, where the nine zeros represent the nine boundaries between the 10 doughnut types.
- {001010100000}, second arrangement of 3 doughnuts containing one doughnut of Type 3, one of Type 4, and one of Type 5.
- etc.
We set an order of the categories and count how many from each category are chosen. Each combination will contain three 1’s, and nine 0's (between doughnut-group category divisions). We use 0's to track the transitions between doughnut types. Thus, associated with each event is a binary string of 1’s (doughnut types to be chosen) and 0’s (9 transitions between the 10 doughnut categories). Hence we have combinations (with possible doughnut type repetitions).
Hands-on combination activity
The SOCR Card Experiment allows 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 in the 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 , 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 . Therefore, the probability . See also this section on poker game odds calculations.
- Approximation: And we can also use the Card Experiment 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 ). 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. This can be done by copying from the SOCR Card Applet all the rows of the output table (CNT-C) and pasting these data in an Excel spreadsheet. Then use the following function IF(MIN(C2, E2, G2, I2, K2)-MAX(C2, E2, G2,I2, K2)=0,1,0), to construct a new column (L) that looks at the Z (suit) columns and assigns 1 (5 matching suits, flush) or 0 (no flush) for each 5-card hand. At the end, the sum of the values in this column (=SUM(L2:L101)) will represent the frequency of occurrence of a flush in the sample (in this case one-hundred 5-card hands).
- Alternative Approximation: We can also use the Poker Experiment to estimate the probability of a flush (V=5). Choose a stopping criterion of V=5 (this is flush). Then run the experiment. It will stop the first time you observe a flush. Therefore, 1/(number of experiments) is an estimate of the desired probability of observing a flush (see image below) - in this case 1/1,234.
Poker Game Calculations
There is a variety of events that may be of interest for 5-card (poker) games (see also this section on card games. Some of these are:
- A single Pair Match: For instance, the hand with the pattern AABCD, where A, B, C and D are from the distinct kinds (denominations) of cards: aces, twos, threes, tens, jacks, queens, and kings (there are 13 denominations, and four suits, in the standard 52 card deck). The number of such hands is . If all hands are equally likely, the probability of a single pair is obtained by dividing this number by the total number of 5-card hands possible (). Thus, P(1 pair only) = 0.422569.
- Two pairs: For instance, the pattern AABBC where A, B, and C are from distinct kinds. The number of such hands is . And therefore, dividing by , the P(2 pairs) = 0.047539.
- One triple: For example, the pattern AAABC where A, B, and C are from distinct kinds. The number of such hands is . Thus, the P(1 triple) = 0.021128.
- A Full House: This includes patterns like AAABB where A and B are from distinct kinds. The number of such hands is . Thus, P(Full House)=0.001441.
- Four of a kind: For instance, the pattern AAAAB where A and B are from distinct kinds. The number of such hands is . The P(4-of-a-kind)=0.000240.
- A straight: Five cards in a sequence (e.g., 4,5,6,7,8), with aces allowed to be either 1 or 13 (low or high) and with the cards allowed to be of the same suit (e.g., all hearts) or from some different suits. The number of such hands is . Thus, P(A Straight)=0.003940. But if you exclude Straight-Flushes AND Royal Flushes, the number of such hands is , the corresponding probability P(A Straight, but not a Straight or Royal Flush)=0.00392465.
- A Straight Flush: All 5 cards are from the same suit and they form a straight. The number of such hands is 4*10, and P(Straight Flush)=0.0000153908.
- A Royal Flush: This consists of the ten, jack, queen, king, and ace all in one suit. There are only 4 such hands. Thus, P(Royal Flush)=0.00000153908.
Applications
Number of integer solutions to linear equations
- Preview: Suppose we have n balls that we want to randomly position in r distinguishable urns, assume . What is the number of possible arrangements of these balls?
- If the balls are distinguishable (labeled): n^{r} possible outcomes, where empty urns are permitted. Each of the n balls can be placed in any of the r urns.
- If the balls are indistinguishable: no empty urns are allowed – select r-1 of all possible n-1 dividing points between the n balls. Empty urns are allowed.
- There are distinct positive integer-valued vectors satisfying:
- , where x_{i} > 0, for .
2) Suppose now the values are non-negative. Since there are n+r-1 possible positions for the dividing splitters (or by letting y_{i} = x_{i} + 1 in the previous bullet, the right-hand-size becomes equal to n+r). There are distinct positive integer-valued vectors satisfying:
- , where , for .
- Example: An investor has $20K (n) to invest in 4 (r) potential stocks. To minimize transaction fees, each investment is in increments of $1k. In how many different ways can the money be invested?
- x_{1} + x_{2} + x_{3} + x_{4} = 20,
- If not all the money needs to be invested, let x_5 be the left over money, then x_{1} + x_{2} + x_{3} + x_{4} + x_{5} = 20:
See also (Multinomial)
The EBook Chapter on multinomial arrangements and counting provides an extension to the binomial counting principles discussed above int the case of 3 or more possible outcomes.
Problems
References
- SOCR Home page: http://www.socr.ucla.edu
Translate this page: