Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated:
1
00:00:00,005 --> 00:00:01,007
- [Instructor] In the previous movie,
2
00:00:01,007 --> 00:00:03,007
I described how to calculate the number
3
00:00:03,007 --> 00:00:06,003
of possible combinations that are allowed
4
00:00:06,003 --> 00:00:08,001
from a set of items
5
00:00:08,001 --> 00:00:10,008
when you select a subset.
6
00:00:10,008 --> 00:00:13,009
However, we assumed that duplication was not allowed.
7
00:00:13,009 --> 00:00:16,004
So you couldn't pick two of the same thing.
8
00:00:16,004 --> 00:00:17,004
In this movie,
9
00:00:17,004 --> 00:00:19,009
I will show you how to calculate combinations
10
00:00:19,009 --> 00:00:21,007
where duplication is allowed.
11
00:00:21,007 --> 00:00:25,009
So you can select two or more of the same item.
12
00:00:25,009 --> 00:00:30,003
As an example, if we have a gift basket with three items,
13
00:00:30,003 --> 00:00:34,000
instead of having your employee grab three distinct items
14
00:00:34,000 --> 00:00:35,005
and making sure they're all different,
15
00:00:35,005 --> 00:00:37,002
they could grab anything they wanted.
16
00:00:37,002 --> 00:00:41,001
So they could have two or even three of the same thing.
17
00:00:41,001 --> 00:00:44,003
However, we're dealing with combinations, not permutations.
18
00:00:44,003 --> 00:00:47,001
So the order of the items still doesn't matter.
19
00:00:47,001 --> 00:00:48,005
They'd probably get moved around
20
00:00:48,005 --> 00:00:51,006
in the basket or the gift box anyway.
21
00:00:51,006 --> 00:00:54,002
So how are we going to approach those?
22
00:00:54,002 --> 00:00:57,003
Well, the idea is that we need to determine
23
00:00:57,003 --> 00:00:59,002
how many unique groups are possible
24
00:00:59,002 --> 00:01:01,002
when choosing three of five products
25
00:01:01,002 --> 00:01:04,000
when repetition is allowed.
26
00:01:04,000 --> 00:01:05,002
To demonstrate the process,
27
00:01:05,002 --> 00:01:07,008
I'll switch over to Excel.
28
00:01:07,008 --> 00:01:12,001
I have switched over to this movie's Excel sample file.
29
00:01:12,001 --> 00:01:16,003
It is, 06_07_Combinations With Duplication.
30
00:01:16,003 --> 00:01:17,002
And you can find it
31
00:01:17,002 --> 00:01:21,004
in the chapter six folder of the exercise files collection.
32
00:01:21,004 --> 00:01:24,001
I have also left the calculation
33
00:01:24,001 --> 00:01:26,005
from combinations without duplication
34
00:01:26,005 --> 00:01:29,008
from the previous movie for comparison.
35
00:01:29,008 --> 00:01:33,001
As before, I have the number of available products
36
00:01:33,001 --> 00:01:38,000
in cell B3 and the number of items of a sample basket,
37
00:01:38,000 --> 00:01:38,008
in other words,
38
00:01:38,008 --> 00:01:41,002
the number chosen, in B4.
39
00:01:41,002 --> 00:01:43,009
So I'll click in cell B7,
40
00:01:43,009 --> 00:01:45,003
type an equal sign.
41
00:01:45,003 --> 00:01:46,003
And the function we use
42
00:01:46,003 --> 00:01:52,002
for combinations with duplication is COMBINA.
43
00:01:52,002 --> 00:01:54,007
And this returns the number of combinations
44
00:01:54,007 --> 00:01:58,000
with repetitions allowed for a given number of items.
45
00:01:58,000 --> 00:02:02,004
So I'll make sure COMBINA is highlighted, press tab,
46
00:02:02,004 --> 00:02:04,003
and now we need to identify the number.
47
00:02:04,003 --> 00:02:07,006
That's the number of items available.
48
00:02:07,006 --> 00:02:09,008
So that's in B3.
49
00:02:09,008 --> 00:02:10,008
Type a comma,
50
00:02:10,008 --> 00:02:12,000
and then I'll click B4,
51
00:02:12,000 --> 00:02:14,003
the number chosen,
52
00:02:14,003 --> 00:02:16,004
right parentheses, then enter.
53
00:02:16,004 --> 00:02:20,000
And instead of having 10 combinations without duplications,
54
00:02:20,000 --> 00:02:24,005
if we allow duplication, we have 35.
55
00:02:24,005 --> 00:02:27,001
Now let's see what happens when we increase the number
56
00:02:27,001 --> 00:02:29,007
of available products and the number chosen.
57
00:02:29,007 --> 00:02:32,002
So I'll start in B3 and I'll change the value
58
00:02:32,002 --> 00:02:35,008
from five to eight and press enter.
59
00:02:35,008 --> 00:02:38,002
And we go from 10 and 35
60
00:02:38,002 --> 00:02:41,002
to 56 and 120.
61
00:02:41,002 --> 00:02:44,000
If I allow four items to be selected,
62
00:02:44,000 --> 00:02:47,005
instead of just three out of the eight,
63
00:02:47,005 --> 00:02:51,002
we go from 56 and 120
64
00:02:51,002 --> 00:02:54,003
up to 70 and 330.
65
00:02:54,003 --> 00:02:55,001
And again, the number
66
00:02:55,001 --> 00:02:58,008
of combinations increases more slowly than permutations
67
00:02:58,008 --> 00:03:00,006
because for permutations, order matters.
68
00:03:00,006 --> 00:03:03,000
And for combinations, it doesn't.
69
00:03:03,000 --> 00:03:04,004
But I'm sure you can see
70
00:03:04,004 --> 00:03:06,003
that as we increase the number
71
00:03:06,003 --> 00:03:09,000
of available products and the number of items
72
00:03:09,000 --> 00:03:10,009
in the sample basket,
73
00:03:10,009 --> 00:03:12,005
that combinations both with
74
00:03:12,005 --> 00:03:16,000
and without duplication will increase very quickly.
5556
Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.