I'm doing some regents practice questions, and one of them asked
In a family with 3 children, what is the probability that they have 2 boys and 1 girl?
And the answer choices are
- 3/8
- 1/4
- 1/8
- 1/2
My teacher said the answer was choice one but I'm having trouble understanding why.
My approach was to draw out the probabilities, since we have 3 children, and we are looking for 2 boys and 1 girl, the probabilities can be Boy-Boy-Girl, Boy-Girl-Boy, and Girl-Boy-Boy. So a 2/3 chance, but I don't get how it's a 3/8 chance. Any help is appreciated.
$\endgroup$ 58 Answers
$\begingroup$No, the possible outcomes are $$\mathsf{BBB, \boxed{\mathsf{BBG}}, \boxed{\mathsf{BGB}}, \boxed{\mathsf{GBB}}, BGG,\mathsf{GBG}, GGB, GGG}$$ wherein $3$ meet the requirement. There are $8$ possible outcomes, all equally likely (if we assume each gender is equally likely). Hence the choice is $3/8$.
We can also think about it in at least one more way: You identified all the possible ways to get 2 boys and one girl. Since the events are disjoint, we can add up the probabilities \begin{align*} P(\text{2 boys, 1 girl}) &= P(\mathsf{BBG})+P(\mathsf{BGB})+P(\mathsf{GBB}) \\ &= \frac{1}{2}\frac{1}{2}\frac{1}{2}+\frac{1}{2}\frac{1}{2}\frac{1}{2}+\frac{1}{2}\frac{1}{2}\frac{1}{2} \\ &= \frac{3}{8}. \end{align*}
$\endgroup$ 4 $\begingroup$Since there are two genders and three children, that's $2^3=8$ permutations. You had three permutations. They would be BBB, BBG, BGB, BGG, GBB, GBG, GGB, and GGG. Out of those, the permutations with two boys and one girl are BBG, BGB, and GBB. The answer is the ratio of how many choices fit your conditions to the total number of possibilities, $\frac{3}{8}$.
$\endgroup$ 5 $\begingroup$I drew it out this way:
So the answer is $\frac{3}{8}$.
Another way to think about it. After a first boy we need one of each (50%). After a first girl we must have only boys (25%). So the probability is $.5*\frac{1}{2} + .25*\frac{1}{2} = .375$ which is also equal to $\frac{3}{8}$.
$\endgroup$ $\begingroup$Combinations vs Permutations
In case this is causing confusion, combinations don't depend on order. So if you had a lottery ticket, it matters whether you had the right combination of numbers. Or in this case, we are asking for the number of boys and girls, rather than the order that they appeared. The Permutations do consider order, so that would be more like a code for a safe that must be done in order, or the letters in a password, or in this case the sequence of genders where BGB would be a different sequence to GBB.
So a combination is like the list of stuff at the beginning of a recipe, and the permutation is the order that you add the ingredients. You can take the same list of things and add them in different amounts and different orders, and it will likely make a big difference to the result.
Working from combinations
Just to add that you can do it via combinations, as you originally thought, but you have to take into account the relative probabilities of those combinations, which derive from the set of permutations. As we have seen from the other answers, there are 3 permutations out of 8 which contain 2 boys and a girl.
But what if we looked at the combinations instead? The combinations of 2 genders among 3 children are:
- 3 girls
- 2 girls, 1 boy
- 1 girl, 2 boys
- 3 boys
Now for the frequencies
- 3 girls can only be arranged 1 way, so this is a frequency of 1
- 2 girls, 1 boy can be rearranged, and the boy can have 3 positions (youngest, middle or oldest). Once we have the position of the boy, the girls are known, so there are 3 positions
- 1 girl, 2 boys: same logic as above, frequency of 3
- 3 boys: as with 3 girls, frequency of 1
The total of them all is 8, and the number matching our requirement is 3, giving 3/8ths.
In this question, the easiest and clearest approach was to list out the permutations and count how many matched our requirement. For larger problems, it can be simpler to either quickly collect the easy cases and then look at the permutations for a restricted set, or focus on the possible combinations. This is particularly true when there are more complex options in the construction of the set.
Edit: More on Combinations and Permutations
@WoJ has a question: why does order matter? Suppose they were triplets?
I'm not saying that the chronological order of birth is what matters, only that you have to label them. We generally write permutations as a sequence which maps to an ordering of the variables; if I flip a coin 3 times and the result is HTH then I'm implicitly saying that the sequence represents the flips ordered chronologically. But we could flip 3 coins and order them by size, or by the age of the coin; it's just a way of identifying the different flips so that we can correctly account for the possibilities.
But! You must label them before you consider how they landed. Arranging heads first then tails is already turning the result from a permutation to a combination, and making things much harder by making the result dependent on the values, when they were independent variables at the beginning. So to assess the relationship between the original tosses and the resulting combinations we have to label them first or we'll give ourselves a headache.
We can see that it is the permutations that matter rather than the combinations for random independent coin flips by doing this experiment: flip 2 coins, and if they land the same (2H or 2T), then mark 1 in the 'Same' column. If they land differently (1H 1T) then mark 1 in the 'Diff' column. If the probability is determined by the combinations, then there is only 1 combination (1H 1T) that will give a 'Diff' result, vs 2 (2H and 2T) that give a 'Same' result, and after a few rounds of flips we should see twice as many marks in the 'Diff' column. Feel free to try the experiment; run it maybe 20 times so that it is clear whether the answer is more like 2:1 or like 1:1.
I predict that the result will be 1:1, because the probability is in the coin flip, so we have to look there for the statistical basis of our calculations. The probability is 50/50 of a single independent coin flip. So the first flip (or the flip of the biggest or oldest coin) is 50/50 H or T. Now, given that the first flip was a Head, what will the second be? These are independent coin flips, so the chances are still 50/50. This gives us a second value. Since these are independent flips, we label them differently and draw up either a table of their values, or a list of the permutations:
First H T
2nd H 0.25 0.25 T 0.25 0.25Now we can look at the categorisation of these permutations as combinations:
H T H 2H 1H 1T T 1H 1T 2TSo although there are 3 labelled combinations (2H, 2T, 1H 1T), they are not evenly spread among the permutations (HH, TT, HT, TH), and we have already said that in this case the probability is being driven by the permutations, not the combinations. So to correctly account for the probabilities assigned to those combinations, we have to start from the permutations and see how they map to combinations; 2 go to becoming '1H 1T', and one each to '2H' and '2T'. How do they then map to the categories of 'Same' and 'Diff'?
H T 1H 1T Diff = 0.25+0.25 H Same Diff or 2H Same = 0.25 T Diff Same 2T Same = 0.25And thus we have P(Same) = 0.25+0.25 = 0.5 and P(Diff) = 0.25+0.25 = 0.5.
At no point have we cared how we ordered the coins, only that we could identify them separately because they have independent probabilities assigned to their flips.
Are there cases where you can't get the answer by just looking at the permutations? Yes, absolutely. For example, the permutations are not always neatly equally likely as we have in these constructed problems. The possible colours of socks in my drawer might be Yellow, Green and Black, but I have a lot more Black socks because the world doesn't share my fascination with Green yet. If we looked at the permutations of 2 socks picked from the drawer, we would get YY, YG, YB, GY, GG, GB, BY, BG, BB. If we just naively looked at the permutations we might imagine the chance of getting a matched pair was 3/9, or 1/3. But it is not, because there are a lot more black socks.
We might instead have a lottery ticket, which only matters what the combination is; then looking at the permutations would be a fruitless exercise, as the drawing process enforces the relationship between probability and combination rather than permutation.
Triplets by combination
Do demonstrate the problems of arranging the triplet birth result into combinations before applying the probabilities, let's actually calculate it that way around. We flip 3 coins, and ignoring the chronology arrange them with heads first. The possible results are HHH, HHT, HTT, TTT. 4 combinations.
But how can we apply our probability that each birth is 50/50? By rearranging the order, we are breaking the mapping between an individual birth and the item in the combination; you can see that straight away in that the only way the first coin in our rearranged set can be a T is if all 3 coins came up T, and we know intuitively that that's much less likely than the probability for any given toss being T. Can we still do it? Well, yes, but it's tricky.
The first combination is HHH. What is the chance of throwing HHH? The flips are independent, and these coins can be rearranged however you like, but it will always have to be 0.5 x 0.5 x 0.5 = 0.125. So immediately the HHH combination has a chance of 0.125 instead of 0.25. Just because we have 4 categories, doesn't mean the probability relates to that number in any way.
The same argument applies for TTT. So now we have accounted for 0.25 of the probability out of half the combinations.
What of HHT and HTT? Well, since the chances of H and T are equal, we could relabel H as T and T as H, or call the sides A and B without any loss of generality, so the probabilities must be equal here too; both combinations are 2 of one and 1 of the other. So the remaining 6/8 of the probability give us 3/8 for each option.
What if H and T were not interchangeable? Suppose P(H) was 3/5, not 1/2? We can see that the combinations don't give us a straight answer because they are unchanged (3H, 2H, 1H, 0H) but we know intuitively that the chances of getting 2H must depend on the bias of the coin flip. Here we would have a remaining probability of 1 - 0.4*0.4*0.4 - 0.6*0.6*0.6 = 0.72. The two remaining combinations are HTT and HHT. So we know that the first and last of those coins came out the same, and this is the set of tosses which contain one head and one tail. Removing that head and tail leaves the outcome of a single coin. It doesn't matter which order the coins were tossed in, or even how we reordered them afterwards. The final coin has P(H)=0.6 and P(T)=0.4, so P(H)/P(T) = 1.5. We already have the other two coins, so we have P(2H 1T)/P(1H 2T) = 1.5. Distributing the remaining probability of 0.72 gives us P(2H 1T)+P(1H 2T)=0.72, and we can then substitute to get P(2H 1T)+P(2H 1T)/1.5=0.72, so P(2H 1T)=0.432.
By contrast, to calculate that from the original tosses, we have:
P(2H,1T) = P(HHT)+P(HTH)+P(THH) = .6*.6*.4 + .6*.4*.6 + .4*.6*.6 = 0.144 * 3 = 0.432So if we have independent variables (births, coin tosses), it is easiest to look at the permutations and collect the probabilities of the permutations we want than to start from the combinations and work backwards to figure out how their probabilities relate to the individual variable probabilities. But it is not impossible, and in some cases preferable.
TLDR: The important thing is to look at the mechanism by which randomness appears in the system, and to then measure the probabilities from there either in terms of combinations or permutations, but not blindly applying either as the method entirely depends on the mechanism of the randomness. Both approaches can be made to work, but only if you correctly account for the probabilities according to the system you are considering.
$\endgroup$ 3 $\begingroup$A systematic way to calculate @probablyme s answer to encode the letters B (boy) and G (girl) as a 3 digit binary number with the logical value 1 for true and 0 for false ( that the digit represents a boy ).
Then we loop through all combinations, for example by incrementing by 1 each step.$$000\to001\to010\to011\to100\to 101\to110\to111$$
We then count the total number of "ones" equals 2. This is the same as the "population count" function used in this question and answer.
The output of the function would be: $$0\to1\to1\to2\to1\to2\to2\to3$$
And as we can see, for 3 of the 8 states the function evaluates to 2. This means that after counting all possibilities, we found that 3 of the 8 equiprobable states correspond to two boys. This gives a probability of $\frac{3}{8}$.
The strength of this approach is of course that if we modify the question to account for more advanced things, these can be included with fast logical bit-wise operations on the numbers!
$\endgroup$ $\begingroup$Since the question does not mention the order, the possible combinations are
- 3 Boys
- 2 Boys and 1 Girl (3 ways to do it)
- 1 Boy and 2 Girls (3 ways to do it)
- 3 Girls
That means the correct answer is 37,5% or 3/8
$\endgroup$ 2 $\begingroup$because 'not a boy' is same as a girl (opposite), it could be calculated like this.
$ \binom{3}{2} (\frac{1}{2})^2(\frac{1}{2})^{2-1} = 0.375 $
$ \binom{n}{k} (p)^k(1-p)^{n-k} $
$\endgroup$ $\begingroup$The following method avoids any need to consider the number of permutations with 2 boys and 1 girl.
3 children must include either at least 2 boys or at least 2 girls (but not both). Hence:
P($\geq 2$ boys) + P($\geq 2$ girls) = $1$.
By symmetry, P($\geq 2$ boys) = P($\geq 2$ girls) = $1/2$.
P(3 boys) = $(1/2)^3 = 1/8$.
Hence P(2 boys, 1 girl) = P($\geq 2$ boys) - P(3 boys) = $1/2 - 1/8 = 3/8$.
$\endgroup$