< Return to Video

Binomial distribution

  • 0:00 - 0:03
    - [Voiceover] Let's
    define a random variable x
  • 0:03 - 0:07
    as being equal to the number of heads,
  • 0:07 - 0:09
    I'll just write capital H for short,
  • 0:09 - 0:14
    the number of heads from flipping coin,
  • 0:14 - 0:16
    from flipping a fair coin,
  • 0:16 - 0:18
    we're gonna assume it's a fair coin,
  • 0:18 - 0:23
    from flipping coin five times. Five times.
  • 0:23 - 0:26
    Like all random variables this
    is taking particular outcomes
  • 0:26 - 0:28
    and converting them into numbers.
  • 0:28 - 0:30
    And this random variable,
    it could take on the value
  • 0:30 - 0:35
    x equals zero, one, two,
    three, four or five.
  • 0:35 - 0:38
    And I what want to do is figure
    out what's the probability
  • 0:38 - 0:41
    that this random variable
    takes on zero, can be one,
  • 0:41 - 0:43
    can be two, can be three,
    can be four, can be five.
  • 0:44 - 0:46
    To do that, first let's
    think about how many possible
  • 0:46 - 0:50
    outcomes are there from
    flipping a fair coin five times.
  • 0:50 - 0:52
    Let's think about this.
  • 0:52 - 0:54
    Let's write possible outcomes.
  • 0:54 - 0:58
    Possible outcomes
  • 1:00 - 1:02
    from five flips.
  • 1:02 - 1:04
    From five flips.
  • 1:04 - 1:07
    These aren't the possible
    outcomes for the random variable,
  • 1:07 - 1:09
    this is literally the
    number of possible outcomes
  • 1:09 - 1:11
    from flipping a coin five times.
  • 1:11 - 1:12
    For example, one possible outcome could be
  • 1:12 - 1:16
    tails, heads, tails, heads, tails.
  • 1:16 - 1:18
    Another possible outcome could be
  • 1:18 - 1:21
    heads, heads, heads, tails, tails.
  • 1:22 - 1:24
    That is one of the
    equally likely outcomes,
  • 1:24 - 1:26
    that's another one of the
    equally likely outcomes.
  • 1:26 - 1:28
    How many of these are there?
  • 1:28 - 1:33
    For each flip you have two possibilities.
  • 1:33 - 1:35
    Let's write this down.
  • 1:35 - 1:36
    Let me...
  • 1:37 - 1:42
    The first flip, the first flip
    there's two possibilities,
  • 1:43 - 1:47
    times two for the second flip,
    times two for the third flip.
  • 1:47 - 1:49
    Actually maybe we'll not
    use the time notation,
  • 1:49 - 1:51
    you might get confused
    with the random variable.
  • 1:51 - 1:53
    Two possibilities for the first flip,
  • 1:53 - 1:55
    two possibilities for the second flip,
  • 1:55 - 1:57
    two possibilities for the third flip,
  • 1:57 - 1:59
    two possibilities for the fourth flip,
  • 1:59 - 2:01
    and then two possibilities
    for the fifth flip,
  • 2:01 - 2:05
    or two to the fifth equally
    likely possibilities
  • 2:05 - 2:07
    from flipping a coin five times,
  • 2:07 - 2:10
    which is, of course, equal to 32.
  • 2:10 - 2:12
    This is going to be helpful because for
  • 2:12 - 2:15
    each of the values that the
    random variable can take on,
  • 2:15 - 2:17
    we just have to think about how many
  • 2:17 - 2:20
    of these equally likely
    possibilities would result
  • 2:20 - 2:22
    in the random variable
    taking on that value.
  • 2:22 - 2:24
    Let's just delve into it to see
  • 2:24 - 2:26
    what we're actually talking about.
  • 2:26 - 2:29
    I'll do it in this
    light, let me do it in...
  • 2:29 - 2:30
    I'll start in blue.
  • 2:30 - 2:33
    Let's think about the probability
  • 2:33 - 2:37
    that our random variable
    x is equal to one.
  • 2:38 - 2:40
    Well actually, let me start with zero.
  • 2:41 - 2:44
    The probability that our random
    variable x is equal to zero.
  • 2:44 - 2:48
    That would mean that you got
    no heads out of the five flips.
  • 2:48 - 2:50
    Well there's only one way, one out of
  • 2:50 - 2:53
    the 32 equally likely possibilities,
    that you get no heads.
  • 2:54 - 2:58
    That's the one where
    you just get five tails.
  • 2:58 - 3:00
    So this is just going to be,
  • 3:00 - 3:02
    this is going to be equal to
  • 3:02 - 3:06
    one out of the 32 equally
    likely possibilities.
  • 3:06 - 3:10
    Now, for this case, to think in terms of
  • 3:11 - 3:15
    binomial coefficients, and
    combinatorics, and all of that,
  • 3:15 - 3:17
    it's much easier to
    just reason through it,
  • 3:17 - 3:19
    but just so we can think in
    terms it'll be more useful
  • 3:19 - 3:24
    as we go into higher values
    for our random variable.
  • 3:25 - 3:27
    This is all buildup for
    the binomial distribution,
  • 3:27 - 3:30
    so you get a sense of
    where the name comes from.
  • 3:30 - 3:31
    So let's write it in those terms.
  • 3:31 - 3:34
    This one, this one,
  • 3:35 - 3:37
    this one right over here,
  • 3:37 - 3:39
    one way to think about that in
    combinatorics is that you had
  • 3:39 - 3:44
    five flips and you're choosing
    zero of them to be heads.
  • 3:45 - 3:49
    Five flips and you're choosing
    zero of them to be heads.
  • 3:49 - 3:53
    Let's verify that five
    choose zero is indeed one.
  • 3:53 - 3:56
    So five choose zero. Write it over here.
  • 3:56 - 4:01
    Five choose zero is equal
    to five factorial over,
  • 4:02 - 4:07
    over five minus zero factorial.
  • 4:08 - 4:11
    Well actually over zero factorial
  • 4:11 - 4:14
    times five minus zero factorial.
  • 4:16 - 4:19
    Well zero factorial is one, by definition,
  • 4:19 - 4:24
    so this is going to be five
    factorial, over five factorial,
  • 4:24 - 4:27
    which is going to be equal to one.
  • 4:27 - 4:29
    Once again I like reasoning through it
  • 4:29 - 4:31
    instead of blindly applying a formula,
  • 4:31 - 4:32
    but I just wanted to show you that
  • 4:32 - 4:34
    these two ideas are consistent.
  • 4:35 - 4:36
    Let's keep going.
  • 4:36 - 4:37
    I'm going to do x equals one
  • 4:37 - 4:39
    all the way up to x equals five.
  • 4:39 - 4:41
    If you are inspired, and I
    encourage you to be inspired,
  • 4:41 - 4:43
    try to fill out the whole thing,
  • 4:43 - 4:44
    what's the probability that x equals
  • 4:44 - 4:46
    one, two, three, four or five.
  • 4:46 - 4:49
    So let's go to the
    probability that x equals two.
  • 4:49 - 4:51
    Or sorry, that x equals one.
  • 4:51 - 4:56
    The probability that x equals
    one is going to be equal to...
  • 4:57 - 4:59
    Well how do you get one head?
  • 4:59 - 5:01
    It could be, the first one could be head
  • 5:01 - 5:03
    and then the rest of
    them are gonna be tails.
  • 5:03 - 5:05
    The second one could be head
  • 5:05 - 5:06
    and then the rest of
    them are gonna be tails.
  • 5:06 - 5:08
    I could write them all
    out but you can see that
  • 5:08 - 5:11
    there's five different
    places to have that one head.
  • 5:11 - 5:14
    So five out of the 32
    equally likely outcomes
  • 5:14 - 5:16
    involve one head.
  • 5:16 - 5:18
    Let me write that down.
  • 5:18 - 5:21
    This is going to be equal to
  • 5:21 - 5:25
    five out of 32 equally likely outcomes.
  • 5:26 - 5:28
    Which of course is the same
    thing, this is going to be
  • 5:28 - 5:31
    the same thing as saying I got five flips,
  • 5:31 - 5:35
    and I'm choosing one of them to be heads.
  • 5:36 - 5:38
    So that over 32.
  • 5:39 - 5:42
    You could verify that five factorial
  • 5:42 - 5:46
    over one factorial times five minus--
  • 5:46 - 5:48
    Actually let me just do it just so that
  • 5:48 - 5:50
    you don't have to take my word for it.
  • 5:50 - 5:55
    So five choose one is
    equal to five factorial
  • 5:56 - 5:59
    over one factorial, which is just one,
  • 5:59 - 6:04
    times five minus four-- Sorry,
    five minus one factorial.
  • 6:05 - 6:09
    Which is equal to five
    factorial over four factorial,
  • 6:09 - 6:12
    which is just going to be equal to five.
  • 6:13 - 6:15
    All right, we're making good progress.
  • 6:15 - 6:20
    Now in purple let's think
    about the probability that
  • 6:20 - 6:23
    our random variable x is equal to two.
  • 6:23 - 6:25
    Well this is going to be equal to,
  • 6:25 - 6:28
    and now I'll actually
    resort to the combinatorics.
  • 6:29 - 6:31
    You have five flips
  • 6:31 - 6:34
    and you're choosing two
    of them to be heads.
  • 6:34 - 6:37
    Over 32 equally likely possibilities.
  • 6:37 - 6:39
    This is the number of possibilities
  • 6:39 - 6:41
    that result in two heads.
  • 6:41 - 6:44
    Two of the five flips
    have chosen to be heads,
  • 6:44 - 6:48
    I guess you can think of it
    that way, by the random gods,
  • 6:48 - 6:50
    or whatever you want to say.
  • 6:50 - 6:53
    This is the fraction of the 32
    equally likely possibilities,
  • 6:53 - 6:55
    so this is the probability
    that x equals two.
  • 6:55 - 6:59
    What's this going to be?
    I'll do it right over here.
  • 6:59 - 7:00
    And actually no reason for me
  • 7:00 - 7:01
    to have to keep switching colors.
  • 7:01 - 7:06
    So five choose two is going
    to be equal to five factorial
  • 7:07 - 7:11
    over two factorial
  • 7:11 - 7:14
    times five minus two factorial.
  • 7:15 - 7:17
    Five minus two factorial.
  • 7:17 - 7:19
    So this is five factorial
  • 7:19 - 7:23
    over two factorial times three factorial.
  • 7:23 - 7:24
    And this is going to be equal to
  • 7:24 - 7:28
    five times four times three times two,
  • 7:28 - 7:29
    I could write times one
  • 7:29 - 7:31
    but that doesn't really
    do anything for us.
  • 7:31 - 7:34
    Then two factorial's just going to be two.
  • 7:34 - 7:38
    Then the three factorial
    is three times two.
  • 7:38 - 7:39
    I could write times one,
  • 7:39 - 7:41
    but once again doesn't do anything for us.
  • 7:41 - 7:43
    That cancels with that.
  • 7:43 - 7:45
    Four divided by two is two.
  • 7:45 - 7:47
    Five times two is 10.
  • 7:47 - 7:48
    So this is equal to 10.
  • 7:49 - 7:51
    This right over here is equal to 10/32.
  • 7:52 - 7:53
    10/32.
  • 7:53 - 7:55
    And obviously we could
    simplify this fraction,
  • 7:55 - 7:56
    but I like to leave it this way
  • 7:56 - 7:59
    because we're now thinking
    everything is in terms of 32nds.
  • 7:59 - 8:01
    There's a 1/32 chance x equals zero,
  • 8:01 - 8:03
    5/32 chance that x equals one
  • 8:03 - 8:06
    and a 10/32 chance that x equals two.
  • 8:06 - 8:08
    Let's keep on going.
  • 8:08 - 8:10
    I'll go in orange.
  • 8:11 - 8:13
    What is the probability that
  • 8:13 - 8:16
    our random variable x is equal to three?
  • 8:16 - 8:18
    Well this is going to be five,
  • 8:18 - 8:21
    out of the five flips we're
    going to need to choose
  • 8:21 - 8:23
    three of them to be heads to figure out
  • 8:23 - 8:26
    which of the possibilities
    involve exactly three heads.
  • 8:26 - 8:29
    And this is over 32 equally
    likely possibilities.
  • 8:29 - 8:31
    And this is going to be equal to,
  • 8:32 - 8:37
    five choose three is
    equal to five factorial
  • 8:37 - 8:42
    over three factorial times
    five minus three factorial.
  • 8:43 - 8:44
    Let me just write it down.
  • 8:44 - 8:45
    Five minus three factorial,
  • 8:45 - 8:47
    which is equal to five factorial
  • 8:47 - 8:52
    over three factorial times two factorial.
  • 8:54 - 8:55
    That's exactly what we had up here
  • 8:55 - 8:57
    and we just swapped three and the two,
  • 8:57 - 9:00
    so this also is going to be equal to 10.
  • 9:00 - 9:04
    So this is also going
    to be equal to 10/32.
  • 9:04 - 9:06
    All right, two more to go.
  • 9:06 - 9:07
    And I think you're going to start seeing
  • 9:07 - 9:08
    a little bit of a symmetry here.
  • 9:08 - 9:11
    One, five, 10, 10, let's keep going.
  • 9:12 - 9:14
    Let's keep going, and I
    haven't used white yet.
  • 9:14 - 9:16
    Maybe I'll use white.
  • 9:16 - 9:21
    The probability that our random
    variable x is equal to four.
  • 9:22 - 9:24
    Well, out of our five
    flips we want to select
  • 9:24 - 9:27
    four of them to be heads,
    or out of the five--
  • 9:31 - 9:33
    We're obviously not actively selecting.
  • 9:33 - 9:35
    One way to think of it,
    we want to figure out
  • 9:35 - 9:37
    the possibilities that
    involve out of the five flips,
  • 9:37 - 9:39
    four of them are chosen to be heads,
  • 9:39 - 9:41
    or four of them are heads.
  • 9:41 - 9:44
    And this is over 32 equally
    likely possibilities.
  • 9:44 - 9:49
    So five choose four is
    equal to five factorial
  • 9:50 - 9:55
    over four factorial times
    five minus four factorial
  • 9:55 - 9:57
    which is equal to,
  • 9:57 - 9:58
    well that's just going
    to be five factorial,
  • 9:58 - 10:00
    this is going to be one
    factorial right over here.
  • 10:01 - 10:03
    That doesn't change the value,
  • 10:03 - 10:05
    you just multiply one
    factorial times four factorial,
  • 10:05 - 10:08
    so it's five factorial
    over four factorial,
  • 10:08 - 10:10
    which is equal to five.
  • 10:10 - 10:13
    So once again this is 5/32.
  • 10:13 - 10:15
    And you could have reasoned through this
  • 10:15 - 10:16
    because if you're saying
    you want five heads,
  • 10:16 - 10:19
    that means you have one tail.
  • 10:19 - 10:22
    There's five different places
    you could put that one tail.
  • 10:22 - 10:24
    There are five
    possibilities with one tail.
  • 10:24 - 10:27
    Five of the 32 equally likely.
  • 10:27 - 10:28
    And then, and you could probably guess
  • 10:28 - 10:30
    what we're gonna get for x equals five
  • 10:30 - 10:32
    because having five heads means
  • 10:32 - 10:34
    you have zero tails,
  • 10:34 - 10:36
    and there's only gonna be
    one possibility out of the 32
  • 10:36 - 10:39
    with zero tails, where you have all heads.
  • 10:40 - 10:41
    Let's write that down.
  • 10:41 - 10:43
    The probability,
  • 10:43 - 10:48
    the probability that our random
    variable x is equal to five.
  • 10:49 - 10:50
    So we have all five heads.
  • 10:50 - 10:52
    You could say this is five
  • 10:52 - 10:56
    and we're choosing five
    of them to be heads.
  • 10:56 - 10:58
    Out of the 32 equally
    likely possibilities.
  • 10:59 - 11:02
    Well five choose five,
    that's going to be...
  • 11:03 - 11:04
    Let me just write it here since
  • 11:04 - 11:06
    I've done it for all of the other ones.
  • 11:06 - 11:11
    Five choose five is five
    factorial over five factorial
  • 11:11 - 11:14
    times five minus five factorial.
  • 11:14 - 11:16
    Well this right over
    here is zero factorial,
  • 11:16 - 11:17
    which is equal to one,
  • 11:17 - 11:19
    so this whole thing simplifies to one.
  • 11:19 - 11:22
    This is going to be one out of-- 1/32.
  • 11:22 - 11:25
    So you see the symmetry. 1/32, 1/32.
  • 11:25 - 11:29
    5/32, 5/32; 10/32, 10/32.
  • 11:29 - 11:31
    And that makes sense because
    the probability of getting five
  • 11:31 - 11:35
    heads is the same as the
    probability of getting zero tails,
  • 11:35 - 11:37
    and the probability of getting zero tails
  • 11:37 - 11:41
    should be the same as the
    probability of getting zero heads.
  • 11:41 - 11:43
    I'll leave you there for this video.
  • 11:43 - 11:46
    In the next video we'll graphically
    represent this and we'll
  • 11:46 - 11:50
    see the probability distribution
    for this random variable.
Title:
Binomial distribution
Description:

more » « less
Video Language:
English
Duration:
11:52

English subtitles

Revisions