Math Portfolio Docs
Math Portfolio Docs
What is Permutation?
A permutation is an arrangement, or listing, of objects in which the order is important.
In previous lessons, we looked at examples of the number of permutations of n things taken n at
a time. Permutation is used when we are counting without replacement and the order matters. If
the order does not matter then we can use combinations.
For example, suppose we have a set of three letters: A, B, and C. We might ask how many
ways we can arrange 2 letters from that set. Each possible arrangement would be an example of
a permutation. The complete list of possible permutations would be: AB, AC, BA, BC, CA, and CB.
When they refer to permutations, statisticians use a specific terminology. They describe
permutations as n distinct objects taken r at a time. Translation: n refers to the number of
objects from which the permutation is formed; and r refers to the number of objects used to form
the permutation. Consider the example from the previous paragraph. The permutation was
formed from 3 letters (A, B, and C), so n = 3; and the permutation consisted of 2 letters, so r = 2.
Example 1
ABC, ACB,
BAC, BCA,
CAB, CBA.
Example 2
4! = 24 ways
Derives Formula In Finding The Number Of
Permutation Of N Object Taken R At A Time
In general P(n, r) means that the number of permutations of n things taken r at a time. We
can either use reasoning to solve these types of permutation problems or we can use the
permutation formula.
Example:
A license plate begins with three letters. If the possible letters are A, B, C, D and E, how many
different permutations of these letters can be made if no letter is used more than once?
Solution:
Using reasoning:
For the first letter, there are 5 possible choices. After that letter is chosen, there are 4 possible
choices. Finally, there are 3 possible choices.
5 × 4 × 3 = 60
Permutations
There are basically two types of permutation:
More generally: choosing r of something that has n different types, the permutations are:
n × n × ... (r times)
(In other words, there are n possibilities for the first choice, THEN there are n possibilites for the
second choice, and so on, multplying each time.)
Example: in the lock above, there are 10 numbers to choose from (0,1,2,3,4,5,6,7,8,9) and we
choose 3 of them:
nr
So, our first choice has 16 possibilites, and our next choice has 15 possibilities, then 14, 13, 12,
11, ... etc. And the total permutations are:
16 × 15 × 14 × 13 × ... = 20,922,789,888,000
But maybe we don't want to choose them all, just 3 of them, and that is then:
16 × 15 × 14 = 3,360
In other words, there are 3,360 different ways that 3 pool balls could be arranged out of 16 balls.
But how do we write that mathematically? Answer: we use the " factorial function "
4! = 4 × 3 × 2 × 1 = 24
7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5,040
1! = 1
Note: it is generally agreed that 0! = 1. It may seem funny that multiplying no
numbers together gets us 1, but it helps simplify a lot of equations.
So, when we want to select all of the billiard balls the permutations are:
16! = 20,922,789,888,000
But when we want to select just 3 we don't want to multiply after 14. How do we do that? There is
a neat trick: we divide by 13!
That was neat. The 13 × 12 × ... etc gets "cancelled out", leaving only 16 × 15 × 14.
n!(n − r)!
16 20,922,789,888,
16!
! 000
=
= =
3,360
(16- 13
6,227,020,800
3)! !
Example: How many ways can first and second place be awarded to 10 people?
10 3,628,8
10!
! 00
=
= =
90
(10-
8! 40,320
2)!
Notation
Instead of writing the whole formula, people use different notations such as these:
Example: P(10,2) = 90
Example:
In how many ways can a president, a treasurer and a secretary be chosen from among 7
candidates?
Solution:
Using reasoning:
For the first position, there are 7 possible choices. After that candidate is chosen, there
are 6 possible choices. Finally, there are 5 possible choices.
7 × 6 × 5 = 210
Example:
A zip code contains 5 digits. How many different zip codes can be made with the digits 0–
9 if no digit is used more than once and the first digit is not 0?
Solution:
Using reasoning:
For the first position, there are 9 possible choices (since 0 is not allowed). After that
number is chosen, there are 9 possible choices (since 0 is now allowed). Then, there are
8 possible choices, 7 possible choices and 6 possible choices.
9 × 9 × 8 × 7 × 6 = 27,216
We can’t include the first digit in the formula because 0 is not allowed.
For the first position, there are 9 possible choices (since 0 is not allowed). For the next 4
positions, we are selecting from 9 digits.
Example: Find the number of words, with or without meaning, that can be formed with
the letters of the word ‘CHAIR’.
Solution:
‘CHAIR’ contains 5 letters.
Therefore, the number of words that can be formed with these 5 letters = 5! = 5*4*3*2*1
= 120.
Example: Find the number of words, with or without meaning, that can be formed with
the letters of the word ‘INDIA’.
Solution:
The word ‘INDIA’ contains 5 letters and ‘I’ comes twice.
When a letter occurs more than once in a word, we divide the factorial of the number of
all letters in the word by the number of occurrences of each letter.
Therefore, the number of words formed by ‘INDIA’ = 5!/2! = 60.
Example:Find the number of words, with or without meaning, that can be formed with
the letters of the word ‘SWIMMING?
Solution:
The word ‘SWIMMING contains 8 letters. Of which, I occurs twice and M occurs twice.
For example, suppose we have a set of three letters: A, B, and C. We might ask how
many ways we can select 2 letters from that set. Each possible selection would be an
example of a combination. The complete list of possible selections would be: AB, AC, and
BC.
Note that AB and BA are considered to be one combination, because the order in which
objects are selected does not matter. This is the key distinction between a combination
and a permutation. A combination focuses on the selection of objects without regard to
the order in which they are selected. A permutation, in contrast, focuses on the
arrangement of objects with regard to the order in which they are arranged.
Combinations
There are also two types of combinations (remember the order does not matter now):
This is how lotteries work. The numbers are drawn one at a time, and if we have the lucky numbers (no
matter what order) we win!
The easiest way to explain it is to:
Going back to our pool ball example, let's say we just want to know which 3 pool balls are chosen, not the
order.
But many of those are the same to us now, because we don't care what order!
For example, let us say balls 1, 2 and 3 are chosen. These are the possibilites:
1 2 3
1 3 2
2 1 3
123
2 3 1
3 1 2
3 2 1
In fact there is an easy way to work out how many ways "1 2 3" could be placed in order, and we have already
talked about it. The answer is:
3! = 3 × 2 × 1 = 6
(Another example: 4 things can be placed in 4! = 4 × 3 × 2 × 1 = 24 different ways, try it for yourself!)
So we adjust our permutations formula to reduce it by how many ways the objects could be in order
(because we aren't interested in their order any more):
That formula is so important it is often just written in big parentheses like this:
Notation
As well as the "big parentheses", people also use these notations:
16!3!(16−3)! = 16!3! × 13!
= 20,922,789,888,0006 × 6,227,020,800
= 560
16×15×143×2×1 = 33606 = 560
In other words choosing 3 balls out of 16, or choosing 13 balls out of 16 have the same number of
combinations.
Permutation:
abc acb
bac bca
cab cba
A formula for the number of possible permutations of k objects from a set of n. This is usually
written nPk .
Formula:
Combination
Note:
After knowing the basic definition and formulas we can remember the difference in the following
easy way :
Permutation sounds complicated — hence remember it like this that every detail matters . Jimmy ,
Jolly and Marshal are different from Jolly , Marshal and Jimmy .Combinations on the other hands
are easy going — Jimmy , Jolly and Marshal is same as Jolly , Marshal and Jimmy.
Hence , Permutation is used for lists (order matters) and Combination for groups (order doesn’t
matter) .
Famous joke for the difference is : A “combination lock” should really be called a “permutation
lock”. The order you put in the numbers of lock matters. For example a true “combination lock”
would accept both 17–01–24 and 24–17–01 as correct.
Conclusion
The combination expression is a permutation (the number of ways to get x occurances of the
selected event )relationship divided by x! (number of different orders in which x event could be
chosen assuming all are distinguishable ).
"My fruit salad is a combination of apples, grapes and bananas" We don't care what order the fruits
are in, they could also be "bananas, grapes and apples" or "grapes, apples and bananas", its the same fruit
salad.
"The combination to the safe is 472". Now we do care about the order. "724" won't work, nor will "247". It
has to be exactly 4-7-2.
A Permutation is an ordered Combination.
: A combination is the choice of r things from a set of n things without replacement. Order does
not matter in combination.
nCr=n!/(n−r)!r!=nPr/r!
nPr=nCr×r!
nCr=nPr/r!=n!/(n−r)!r!
Pascal's Triangle
We can also use Pascal's Triangle to find the values. Go down to row "n" (the top row is 0), and then along
"r" places and the value there is our answer. Here is an extract showing row 16:
1 14 91 364 ...
1 15 105 455 1365 ...
1 16 120 560 1820 4368 ...
Let us say there are five flavors of icecream: banana, chocolate, lemon, strawberry and vanilla.
We can have three scoops. How many variations will there be?
Let's use letters for the flavors: {b, c, l, s, v}. Example selections include
(And just to be clear: There are n=5 things to choose from, and we choose r=3 of them.
Order does not matter, and we can repeat!)
Now, I can't describe directly to you how to calculate this, but I can show you a special technique that lets
you work it out.
Think about the ice cream being in boxes, we could say "move past the first box, then take 3
scoops, then move along 3 more boxes to the end" and we will have 3 scoops of chocolate!
So it is like we are ordering a robot to get our ice cream, but it doesn't change anything, we still get what we
want.
OK, so instead of worrying about different flavors, we have a simpler question: "how many different ways can
we arrange arrows and circles?"
Notice that there are always 3 circles (3 scoops of ice cream) and 4 arrows (we need to move 4 times to go
from the 1st to 5th container).
So (being general here) there are r + (n−1) positions, and we want to choose r of them to have circles.
This is like saying "we have r + (n−1) pool balls and want to choose r of them". In other words it is now like
the pool balls question, but with slightly changed numbers. And we can write it like this:
Interestingly, we can look at the arrows instead of the circles, and say "we have r + (n−1) positions and want
to choose (n−1) of them to have arrows", and the answer is the same:
(3+5−1 504
7!
)! 0
=
= =
35
3! 3! 6×2
(5−1)! ×4! 4
Example : How many 2 digit numbers can you make using the digits 1, 2, 3 and 4 without
repeating the digits?
This time we want to use 2 digits at the time to make 2 digit numbers.
For the first digit we have 4 choices and for the second digit we have 3 choices (4 - 1
used already). Using the counting principle, the number of 2 digit numbers that we can
make using 4 digits is given by
4 × 3 = 12
The above problem is that of arranging 2 digits out of 4 in a specific order. This is also
called permutating.
The most important idea in permutations is that order is important. When you use the
digits 3 and 4 to make a number, the number 34 and 43 are different hence the order of
the digits 3 and 4 is important.
In general permutating r (2 digit in the above example) items out of a set of n (4 digits in
the above example) items is written as n P r and the formula is given by
n P r = n! / (n - r)!
Example : Calculate
4 P 2
6 P 5
4 P 4
Solution:
4 P 2 = 4! / (4 - 2)! = 24/2 = 12
IN COMBINATION:
Example : How many lines can you draw using 3 non collinear (not in a single line) points
A, B and C on a plane?
Solution:
You need two points to draw a line. The order is not important. Line AB is the same as
line BA. The problem is to select 2 points out of 3 to draw different lines. If we proceed
as we did with permutations, we get the following pairs of points to draw lines.
AB , AC
BA , BC
CA , CB
There is a problem: line AB is the same as line BA, same for lines AC and CA and BC and
CB.
The lines are: AB, BC and AC ; 3 lines only.
So in fact we can draw 3 lines and not 6 and that's because in this problem the order of
the points A, B and C is not important.
This is a combination problem: combining 2 items out of 3 and is written as follows:
C r = n! / [ (n - r)! r! ]
n
Example : Calculate
3 C 2
5 C 5
Solution:
3 C 2 = 3! / [ (3 - 2)!2! ] = 6 / [1 × 2] = 3 (problem of points and lines solved above in
example 6)
5 C 5 = 5! / [(5 - 5)!5! ] = 5! / [0!5!] = 5! / [1 × 5!] = 1 (there is only one way to select
(without order) 5 items from 5 items and to select all of them once!)
Example 8:We need to form a 5 a side team in a class of 12 students. How many different
teams can be formed?
Solution:
There is nothing that indicates that the order in which the team members are selected is
imoportant and therefore it is a combination problem. Hence the number of teams is
given by
12 C 5 = 12! / [ (12 - 5)!5! ] = 792
experiment.
For Example: if we are performing the experiment of throwing a dice then there can be
numerous events associated with it, one of which can be the number on top be a
multiple of 3.
There are different operations performed on events. Union is one of them. As the name
implies union means joining of two things irrespective of their individual behavior. The
Union of events simply mean the condition of occurrence of wither of the events. It is not
necessary that all events must hold true. The condition of at least one holds. More than
one or even all events under the union operation can be true simultaneously.
Formula
Suppose A and B are two events associated with a random experiment. Then the union
of A and B is represented by A ∪∪ B.
P(A∪B)P(A∪B) = P(A)+P(B)P(A)+P(B)
If we have more than two independent events say A, B & C, then in that case the union
probability is given by:
P(A∪B∪C)P(A∪B∪C) = P(A)+P(B)+P(C)P(A)+P(B)+P(C)
P(A∪B∪C)P(A∪B∪C) = P(A)+P(B)+P(C)P(A)+P(B)+P(C) – P(A∩B)–P(B∩C)–P(A∩C)P(A∩B)–
P(B∩C)–P(A∩C)
- P(A∩B∩C)P(A∩B∩C)
Examples
Some examples are illustrated on union of events:
Example 1: Consider the experiment of rolling a dice. Find the probability of getting an
even number of a number that is multiple of 3.
Solution:
P(A∩B)= P(A)xP(B)
The probability of the intersection of dependent events is:
P(A∩B)= P(A/B)xP(B)
Let's note that when the events are independent, P(A/B)xP(A) , then the second
formula in fact is always true.
KEY TAKEAWAYS
KEY POINTS
P(E∪F)=P(E)+P(F)−P(E∩F)
Suppose the spinner in Figure 2 is spun. We want to find the probability of spinning
orange or spinning a b
There are a total of 6 sections, and 3 of them are orange. So the probability of spinning orange is
3/6=1/2. There are a total of 6 sections, and 2 of them have a b. So the probability of spinning
a b is 2/6=1/3. If we added these two probabilities, we would be counting the sector that is both
orange and a b twice. To find the probability of spinning an orange or a b, we need to subtract
the probability that the sector is both orange and has a b.
1/2+1/3+-1/6=2/3
P(E∪F)=P(E)+P(F)−P(E∩F)
Illustrate Mutually Exclusive Events
If two events are mutually exclusive, it means that they cannot occur at the same time. For
example, the two possible outcomes of a coin flip are mutually exclusive; when you flip a coin, it
cannot land both heads and tails simultaneously. By contrast, rain and sunshine are not mutually
exclusive; while rare, it is possible to have a sunshower, when it rains while the sun still shines.
Let’s look at a few examples of mutual exclusivity involving playing cards. If we have a single
standard deck of 52 cards, which of the following pairs of events are mutually exclusive?
The correct answer is B). Drawing a red card and drawing a club
cannot occur at the same time, because all clubs are black; therefore, the outcomes drawing a
red card and drawing a club are mutually exclusive.
The other scenarios are not mutually exclusive, because the two characteristics listed can occur
together.
A) a card can be both red and a king (the king of hearts or the king of
diamonds)
C) a card can be both black and a spade (all spades in the deck are black)
D) a card can be both black and an ace (the ace of spades or the ace of clubs).
Buying ten lottery tickets and winning the lottery. The more tickets you buy, the
greater your odds of winning.
Driving a car and getting in a traffic accident.
Independent Events
Events can be " Independent ", meaning each event is not affected by any other events.
What it did in the past will not affect the current toss.
The chance is simply 1-in-2, or 50%, just like ANY toss of the coin.
Dependent Events
But events can also be "dependent" ... which means they can be affected by previous
events ...
if we got a red marble before, then the chance of a blue marble next is 2 in 4
if we got a blue marble before, then the chance of a blue marble next is 1 in 4
Replacement
Note: if we replace the marbles in the bag each time, then the chances do not change
and the events are independent :
Tree Diagram
A Tree Diagram : is a wonderful way to picture what is going on, so let's build one for
our marbles example.
There is a 2/5 chance of pulling out a Blue marble, and a 3/5 chance for Red:
We can go one step further and see what happens when we pick a second marble.
If a blue marble was selected first there is now a 1/4 chance of getting a blue marble and
a 3/4 chance of getting a red marble.
If a red marble was selected first there is now a 2/4 chance of getting a blue marble and
a 2/4 chance of getting a red marble.
Now we can answer questions like "What are the chances of drawing 2 blue marbles?"
Answer: it is a 2/5 chance followed by a 1/4 chance:
Did you see how we multiplied the chances? And got 1/10 as a result.
The chances of drawing 2 blue marbles is 1/10
Notation
We love notation in mathematics! It means we can then use the power of algebra to play
around with the ideas. So here is the notation for probability:
In our marbles example Event A is "get a Blue Marble first" with a probability of 2/5:
P(A) = 2/5
And Event B is "get a Blue Marble second" ... but for that we have 2 choices:
In other words, event A has already happened, now what is the chance of event B?
P(B|A) = 1/4
For the first card the chance of drawing a King is 4 out of 52 (there are 4 Kings in a deck
of 52 cards):
P(A) = 4/52
But after removing a King from the deck the probability of the 2nd card drawn
is less likely to be a King (only 3 of the 51 cards left are Kings):
P(B|A) = 3/51
And so:
Conditional Probability
The conditional probability of an event B is the probability that the event will occur given the
knowledge that an event A has already occurred. This probability is written P(B|A), notation for
the probability of B given A. In the case where events A and B are independent (where event A has no
effect on the probability of event B), the conditional probability of event B given event A is simply the
probability of event B, that is P(B).
From this definition, the conditional probability P(B|A) is easily obtained by dividing by P(A):
Examples
In a card game, suppose a player needs to draw two cards of the same suit in order to win. Of the 52
cards, there are 13 cards in each suit. Suppose first the player draws a heart. Now the player wishes to
draw a second heart. Since one heart has already been chosen, there are now 12 hearts remaining in a
deck of 51 cards. So the conditional probability P(Draw second heart|First card a heart) = 12/51.
Suppose an individual applying to a college determines that he has an 80% chance of being accepted,
and he knows that dormitory housing will only be provided for 60% of all of the accepted students.
The chance of the student being accepted and receiving dormitory housing is defined by
P(Accepted and Dormitory Housing) = P(Dormitory Housing|Accepted)P(Accepted) = (0.60)*(0.80)
= 0.48.
To calculate the probability of the intersection of more than two events, the conditional
probabilities of all of the preceding events must be considered. In the case of three events, A, B,
and C, the probability of the intersection P(A and B and C) = P(A)P(B|A)P(C|A and B).
Consider the college applicant who has determined that he has 0.80 probability of acceptance and that
only 60% of the accepted students will receive dormitory housing. Of the accepted students who
receive dormitory housing, 80% will have at least one roommate. The probability of being
accepted and receiving dormitory housing and having no roommates is calculated by:
P(Accepted and Dormitory Housing and No Roommates) = P(Accepted)P(Dormitory Housing|
Accepted)P(No Roomates|Dormitory Housing and Accepted) = (0.80)*(0.60)*(0.20) = 0.096. The
student has about a 10% chance of receiving a single room at the college.
Another important method for calculating conditional probabilities is given by Bayes's formula. The
formula is based on the expression P(B) = P(B|A)P(A) + P(B|Ac)P(Ac), which simply states that the
probability of event B is the sum of the conditional probabilities of event B given that event A has or
has not occurred. For independent events A and B, this is equal to P(B)P(A) + P(B)P(Ac) = P(B)(P(A)
+ P(Ac)) = P(B)(1) = P(B), since the probability of an event and its complement must always sum to
1. Bayes's formula is defined as follows: