The portal has been deactivated. Please contact your portal admin.

Video: Permutations and Combinations Part 2

Here, we explain how to use the combinations formula to calculate how many ways there are to arrange objects when their order is not important.


Video Transcript

In part one, we looked at how to count up the number of ways to arrange objects and use the factorial notation to produce a formula for this. We also looked at counting how many ways there are to pick a certain number of objects from a set and came up with the permutations formula, ๐‘› ๐‘ƒ ๐‘Ÿ. Now weโ€™re gonna use these things to count combinations of objects where their order isnโ€™t relevant and weโ€™re gonna use the combinations formula, ๐‘› ๐ถ ๐‘Ÿ in a few examples.

So remember, we learned last time that ๐‘› factorial means ๐‘› times ๐‘› minus one times ๐‘› minus two, and so on and so on, times three, times two, all the way down to times one. So, for example, five factorial means five times four times three times two times one. And we also learned the formula ๐‘› ๐‘ƒ ๐‘Ÿ, permutations formula, is equal to ๐‘› factorial over ๐‘› minus ๐‘Ÿ factorial, so weโ€™re picking ๐‘Ÿ objects from a set of ๐‘› objects. Now we did say that zero factorial is equal to one. So if ๐‘› and ๐‘Ÿ turn out to be equal, it would mean that with zero factorial on the bottom, weโ€™d just make that equal to one. Well an example of that is in the question how many ways are there to pick three letters from the letters ๐ด, ๐ต, ๐ถ, ๐ท.

So in this case ๐‘Ÿ would be equal to three cause thatโ€™s the number of letters weโ€™re choosing, and ๐‘› would be equal to four cause thatโ€™s the size of the set of letters that weโ€™re choosing from. So ๐‘Ÿ would be three because that is the number of letters weโ€™re choosing, and ๐‘› would be equal to four because thatโ€™s the size of the set of letters that weโ€™re choosing from. So the answer to the question would be four ๐‘ƒ three, so thatโ€™s four factorial over four minus three factorial, which of course is four factorial over one factorial. And when we worked that out, we get an answer of twenty-four. So the important thing about this is that the order of the letters was quite important because that twenty-four combinations there includes all of these ones here. And these are basically all variations on ๐ด, ๐ต, and ๐ถ, so just add the letters ๐ด, ๐ต, and ๐ถ in different orders. If it doesnโ€™t matter to you what order theyโ€™re in, effectively we can count all of those different combinations as one choice, just one option. And itโ€™s that process that weโ€™re going to look at in this video.

So, as weโ€™ve just seen, ๐‘› ๐‘ƒ ๐‘Ÿ tells us how many permutations there are for picking ๐‘Ÿ objects from a set of ๐‘› objects. And again, as weโ€™ve just seen, each group of ๐‘Ÿ letters โ€” so we have three letters in that example ๐ด, ๐ต, and, ๐ถ โ€” is written ๐‘Ÿ factorial different ways. So three factorial different ways. Thatโ€™s three times two times one is six different ways in the big list. So that big list contains a lot of repeats if youโ€™re not really interested in what order they appear in. So weโ€™re gonna look at how to work out how many different combinations we get when choosing ๐‘Ÿ objects from set of ๐‘› objects if we discard all the different rearrangements of the same letter. So ๐‘› ๐‘ƒ ๐‘Ÿ, as weโ€™ve said, told us how many unique permutations we had, and that list included ๐‘Ÿ factorial repeats of groups of three letters. So if we just want to know for example how many groups of three letters, or ๐‘Ÿ letters, that weโ€™ve got in a final answer, then what we need to do is take the answer ๐‘› ๐‘ƒ ๐‘Ÿ and divide it by ๐‘Ÿ factorial. So there we are, ๐‘› ๐ถ ๐‘Ÿ is ๐‘› ๐‘ƒ ๐‘Ÿ divided by ๐‘Ÿ factorial. So the formula for ๐‘› ๐‘ƒ ๐‘Ÿ, remember, was ๐‘› factorial over ๐‘› minus ๐‘Ÿ factorial. If we divide that by ๐‘Ÿ factorial, then itโ€™s the same as multiplying by one over ๐‘Ÿ factorial and that gives us this formula here, ๐‘› factorial over ๐‘Ÿ factorial ๐‘› minus ๐‘Ÿ factorial. So remember, ๐‘› ๐‘ƒ ๐‘Ÿ counts the permutations where different orders of the same group of letters count separately, so weโ€™ve kind of kept double, triple, quadruple counting things and so on. And ๐‘› ๐ถ ๐‘Ÿ counts the combinations where different orderings of the group are combined together. So in our last example, all the ๐ด๐ต๐ถ, ๐ด๐ถ๐ต, ๐ต๐ด๐ถ, and so on, that would count as multiple permutations in the ๐‘› ๐‘ƒ ๐‘Ÿ formula, but we would count all six of those variations just as one combination in the ๐‘› ๐ถ ๐‘Ÿ formula because they are all the same group of three letters.

Right, letโ€™s have a look at a couple of examples then.

So if weโ€™ve got ten discs labelled ๐ด up to ๐ฝ, we take three discs at random and set them down in the order that they were selected. How many permutations are there for this? So ๐‘› would be ten in this case because weโ€™ve got a set of ten letters to choose from. And ๐‘Ÿ will be three because weโ€™re picking three from that set. Now weโ€™re setting them down in order, so ๐ด๐ต๐ถ for example would not be equivalent to ๐ถ๐ต๐ด and so on, so we want to use the ๐‘› ๐‘ƒ ๐‘Ÿ formula.

And substituting in those values for ๐‘Ÿ and ๐‘›, weโ€™ve got ten ๐‘ƒ three, so thatโ€™s ten factorial over ten minus three factorial. And that gives us ten factorial over seven factorial. Now, obviously, we could just put that in our calculator and get our answer, but Iโ€™m just gonna write that out in full for a moment. And when we do that, we can see that we can do quite a lot of cancelling. So seven divided by seven is one, six divided by six is one, five divided by five is one, four divided by four is one, three divided by three is one, and so on. All of those cancel out, so weโ€™re ending up with just ten times nine times eight over one or just ten times nine times eight. So that gives us seven hundred and twenty different permutations that we can get. So thatโ€™s our answer. Now, just to sort of highlight the difference between ๐‘› ๐‘ƒ ๐‘Ÿ and ๐‘› ๐ถ ๐‘Ÿ, remember that seven hundred and twenty includes for every set of three letters like ๐ด๐ต๐ถ; weโ€™ve got six variations on that in there. And if weโ€™re prepared to say that theyโ€™re all equivalent cause theyโ€™re just combinations of the letters ๐ด, ๐ต, and ๐ถ, we can divide that seven hundred and twenty by six, in this case, three factorial because we had ๐‘Ÿ was equal to three to work out the number of combinations. So thereโ€™s the calculation then for ๐‘› ๐ถ ๐‘Ÿ. If we were looking for how many clusters of three letters, the answer would only be a hundred and twenty. But the question specifically asked for permutations and it said that the order was important, so we settled down in the order that they were selected. So this is the correct answer.

Just make sure that, on the page, weโ€™ve got the-the proper correct answer highlighted, and itโ€™s obvious that this other working out wasnโ€™t just another guess of what the answer might be.

Okay, letโ€™s look at this small essay for our next question.

In a lottery, we choose five letters of the alphabet. During the draw a machine loads twenty-six balls, each way- each one has one of the letters ๐ด to ๐‘ on them. It shuffles them and then it lets out five. It doesnโ€™t matter what order they were drawn in if our five chosen letters match the machines, then we win! How many combinations of five letters are there to choose from? So in this case the order doesnโ€™t matter, so weโ€™re gonna be using the ๐‘› ๐ถ ๐‘Ÿ combination. And there are twenty-six letters of the alphabet to choose from, so ๐‘› is equal to twenty-six. And weโ€™re choosing five of those letters, so ๐‘Ÿ is equal to five. So weโ€™re choosing five, ๐‘Ÿ equals five, from twenty-six, ๐‘› equals twenty-six. And it doesnโ€™t matter what order they were drawn in, so weโ€™re using the ๐‘› ๐ถ ๐‘Ÿ formula which is twenty-six ๐ถ five when we plug those values in for ๐‘› and ๐‘Ÿ. So that gives us twenty-six factorial over five factorial twenty-six minus five factorial, which is twenty-six factorial over five factorial twenty-one factorial. Now again we can just plug this number into a calculator and get our answer, but Iโ€™m just gonna take a little extra step here and just kind of split this out slightly. Sometimes the numbers that you get are too big to work on a calculator; but by spotting some things that you can cancel, you can actually generate numbers which are small enough that your calculator can still handle. And thatโ€™s, well, thatโ€™s not the case here. We can, you know, this-this number would work on a calculator, but letโ€™s see the technique anyway. So havenโ€™t quite got room to write out twenty-six factorial in full but I know itโ€™s twenty-six times twenty-five times twenty-four times twenty-three times twenty-two times twenty-one, and so on and so on. But of course this bit here, twenty-one times all the numbers down to one, is just twenty-one factorial. So weโ€™ve got this stuff here, times twenty-one factorial on there-on the top and on the denominator. Weโ€™ve got a twenty-one factorial, so in fact these twenty-one factorials will cancel out. So weโ€™ve got this divided by five factorial. So sixty-five thousand seven hundred and eighty, thatโ€™s the number of combinations that are there. So if this whole thing was done at random, thatโ€™s the number of different ways there are of choosing five letters, so weโ€™ve got one in sixty-five thousand seven hundred and eighty chance of winning this particular lottery. Now as a bit of an aside, if it did matter, if we had to match the order in which the letters came out as well, we wouldโ€™ve used the ๐‘› ๐‘ƒ ๐‘Ÿ formula. And of course weโ€™ve got groups of five, so thatโ€™s gonna five factorial sort of different combinations of each grouping of five letters, so the answer is gonna be five factorial times bigger than that: seven million eight hundred ninety-three thousand six hundred. So actually youโ€™ve got a far smaller chance of winning that particular lottery if it does matter what order the balls came out in, but of course thatโ€™s not the answer we were looking for in this particular case.

Okay, finally then, letโ€™s just use our combination counting techniques to calculate some probabilities. So weโ€™ve got a question here.

A bag contains five chocolate and fifteen strawberry sweets. If someone chooses a sweet at random, find the probability that they pick a chocolate one; and if two people choose a sweet, each at random, find the probability that they both get chocolate. So really weโ€™ve got two questions, letโ€™s call them ๐ด and ๐ต. Letโ€™s look at the first one first. Someone chooses a sweet at random, find the probability itโ€™s chocolate. Well, this is pretty straightforward. The probability you get a chocolate sweet is just the number of ways of getting a chocolate sweet divided by the number of ways of choosing a sweet of any sort. And of course there are five chocolate sweets and then there are fiv- fifteen strawberry sweets, so itโ€™s five divided by five plus fifteen, so thatโ€™s five over twenty. So our answer, the probability of getting a chocolate sweet, is just five over twenty. Okay, letโ€™s look at the second question. Now weโ€™re going to look at two different methods of doing this question. The first method, which is maybe the one that youโ€™ve already thought of, weโ€™ve got two events. So first of all person one gets a chocolate sweet and then person two gets a chocolate sweet. So for those two things to happen together, we have to have one and the other, weโ€™re going to multiply those probabilities together. So weโ€™ve just worked out that the probability of one person getting a chocolate sweet is five over twenty. And of course if theyโ€™ve picked a chocolate sweet, one, thereโ€™s just gonna be four chocolate sweets left, and the other thing, thereโ€™ll now only be nineteen sweets in total for them to choose from. So weโ€™re gonna end up with five-twentieths as the probability of the first person getting chocolate and four-ninetieths as a probability of the second person getting a chocolate. Multiply those two together, do a bit of cancelling, and we get one over nineteen. Again, in probability, youโ€™re not gonna get penalised if you donโ€™t cancel those numbers down. But in this case, this three hundred and eighty, has may be lost a little bit of its meaning, so itโ€™s probably more sensible to cancel down to those nice and simple numbers, one over nineteen. So method two then, the probability they both get chocolate is the number of ways that two people can choose chocolate divided by the number of ways that two people can just choose any sweet. So the number of ways that two people can choose chocolate is five ๐ถ two which would be choosing from five chocolates, and thereโ€™s two of them, so five ๐ถ two is that. And the number of ways that they can choose a sweet, but weโ€™ve got twenty sweets in total and thereโ€™s two of them choosing, so the total number of combinations of ways they can choose is twenty ๐ถ two. And if you do this on your calculator, five ๐ถ two turns out to be ten and twenty ๐ถ two turns out to be a hundred and ninety, which reassuringly when we cancel down we get the same answer as we did the other way, one over nineteen. So thereโ€™s a one in nineteen chance that both of them will get chocolate.

So just to summarise what weโ€™ve learned over the course of these two videos, weโ€™ve learned about ๐‘› factorial, which has got different ways of expressing it, but itโ€™s ๐‘› times the number one smaller times the number one smaller, and so on and so on, until we get down to one. And remember, weโ€™ve got that special definition of zero factorial is actually equal to one; so not entirely intuitive, but you have to remember that. Weโ€™ve learned about permutations, so ๐‘› ๐‘ƒ ๐‘Ÿ and the various different ways of notating that in different regions, ๐‘› factorial over ๐‘› minus ๐‘Ÿ factorial. Now this counts every different rearrangement of the same groupings as letters as individual cases, so we get quite a large number in that case. But if we want to merge together all different arrangement of the same letters that weโ€™ve chosen and get a smaller answer, we have to divide that by ๐‘Ÿ factorial. And because weโ€™ve got all those repeats of the same combinations of those letters or objects, we get combinations; we get the ๐‘› ๐ถ ๐‘Ÿ formula. And thereโ€™s different ways again of notating that, and that gives us the formula ๐‘› factorial over ๐‘Ÿ factorial ๐‘› minus ๐‘Ÿ factorial.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.