- Home
- >
- Factorial – Explanation & Examples
JUMP TO TOPIC [show]
Factorial – Explanation & Examples
In probability theory, there are many scenarios in which we have to calculate all the possible arrangements of a given set.
For example, if we toss a coin
Or if we want to select a team of
A factorial (denoted by ‘ ! ‘) is defined as the product of all positive integers that are less than or equal to a given positive integer.
After reading this article, you should understand:
- Factorial
- How to calculate factorials
- How factorials are used to evaluate permutations
- How factorials are used to evaluate combinations
- How factorials are used to find probabilities
It would be advisable to refresh the following topics:
1. Fundamental counting principle
2. Permutations
3. Combinations
What Is a Factorial
The factorial of a positive integer
Example 1:
What is the factorial of
Solution:
The numbers less than or equal to
Example 2: Evaluate
Solution:
=
=
Factorial Formula:
For any integer
We can also use the product notation, i.e.,
Factorial Rules
Let us tabulate the factorials of the first few numbers in the table below:
It becomes obvious from the above table that the factorial of any integer
The factorial rule simplifies the calculations of complex expressions involving factorials. An interesting application of the factorial rule is in the evaluation of
However, from the formula of the factorials, it is obvious that
This means that
How to Do Factorials
When doing factorials, it is advisable to apply the factorial rule whenever possible to simplify expressions, as shown in the examples below
Example 3: Evaluate
Solution:
Using the factorial rule, we can write
However, we have
Example 4: Evaluate
Solution:
=
Applications of Factorials:
In probability theory, factorials are extensively used in the evaluation of permutations and combinations. We discuss both these applications below:
Factorials and Permutations:
The possible arrangements of a given set of objects are called permutations. For instance, let’s suppose we have a set of three numbers
1. Permutations in which we can repeat the objects from the available set.
2. Permutations in which repetitions are not allowed.
We will focus on the second type of permutations only as these are the ones that involve factorials.
Permutations Without Repetition:
Let us suppose we have
Once the first item has been selected, there are
Similarly, there are
Using the fundamental counting principle, the total permutations are
We multiply and divide the above expression with
From the factorial rule discussed above, we note that
Hence, the formula for
Example 5: How many 4 letters words can be formed out of the letters of the word “Employ” when repetition is not allowed?
Solution:
The word “employ” has six letters so
Example 6: How many
Solution:
We have seven digit in total and we choose 5 digits for the permutations, hence
Permutations with non-distinct objects:
In some situations, we have a set of non-distinct objects, and we are interested in finding the possible permutations. For instance, in how many different ways can we arrange the letters in the word MISSISSIPPI? In total we have 11 letters, so
If all letters had been distinct, we would have gotten
Rearranging the above equation
Generally, if we have a set of
Example 7:
In how many different ways can we arrange the letters in the word
Solution:
There are
Example 8:
How many
Solution:
In this case,
Factorials and Combinations:
The evaluation of possible combinations is another interesting application of the factorial. Similar to permutations, combinations are possible arrangements of a set of given items. The difference between permutations and combinations is that, in combinations, the order of the arrangements does not matter, whereas, in permutations, the order of the arrangement matters.
For instance, let us suppose we are interested in possible arrangements of the numbers
There are many scenarios when order naturally does not matter when arranging a set of objects. For example, let’s say we have a group of four people. Let’s call those Jack, Jill, Liz, and Henry. We wish to make the team consisting of three people using the available group. How many distinct teams can we make? Note that in this scenario, it does not make sense to treat
Combinations Formula:
Let us suppose we have a set of
Similar to the case of permutations, there are
Therefore,
Now multiplying and dividing the right-hand-side of the equation by
Using the factorial rule, we can write
We will use the notation
Example 8: We have a group of four people. Let’s call those Jack, Jill, Liz, and Henry. We wish to make the team consisting of three people using the available group. How many distinct teams can we make?
Solution:
We have already discussed that in this scenario, order of the arrangements does not matter and hence we are dealing with possible combinations with
Example 9: A soccer team consisting of
Solution:
Since we have to include the captain in every team, so essentially, we have a pool of 14 players and 10 places in the team. When we are selecting a team of individuals, it does not matter in which order the members were selected, and we get the same team if we have the same members. Therefore, we are dealing with combinations in this question, and the possible ways in which a team can be selected are
Factorials and Probabilities
Factorials help us evaluate permutations and combinations. Let us see some examples of how permutations and combinations (and hence factorials) appear in probability questions.
Example 10:
Suppose we randomly pick four alphabets without repetition to form a word. What is the probability that the word does not contain a vowel?
Solution:
Since we are randomly picking up alphabets, so all four-letter words (whether meaningful or not) are equally likely. Let us first calculate how many possible words we can make, i.e., the total number of elements in the sample space of our experiment. Since there are
Now we want to find the total number of words without vowels. There are
Hence the probability of randomly choosing a four letter word that does not contain a vowel is
Example 10:
We have a class of nine students, five boys and four girls. We randomly choose to make a team of 4 people. What is the probability that the team will contain only one boy?
Solution:
Let us first find the total number of possible teams, i.e., the number of elements in our sample space. Since we are dealing with a team of people, so the order in which the members are chosen does not matter, and we would get the same team. Hence, the total number of possible teams would be
Now there are
Using the fundamental counting principle(link), there are
Practice Questions:
Find the following factorials
1.
a)
b)
c)
d)
2. How many different signals can be given by 4 LEDs of different colors while using 3 LEDs at the same time?
3. An internet account is locked with a four-digit password. The password only contains numbers from 0-6.
a) How many different password options will you have if the order of numbers does that matter.
b) How many different password options will you have if the order of numbers matters.
4. Suppose we randomly pick four alphabets without repetition to form a word. What is the probability that the word does not contain “IT” in it?
5. We have a class of
6. Show that
Answer Key
1.
a) 24
b) 40320
c) 1680
d) 0.875
2. 24
3.
a) 35
b) 840
4. 0.36%
5. 99.5%