< Return to Video

Mean of sum and difference of random variables

  • 0:01 - 0:03
    - [Instructor] Let's say that
    I have a random variable X
  • 0:03 - 0:07
    which is equal to the number
    of dogs that I see in a day.
  • 0:08 - 0:13
    And random variable Y is
    equal to the number of cats
  • 0:13 - 0:14
    that I see in a day.
  • 0:15 - 0:19
    Let's say I also know what
    the mean of each of these
  • 0:19 - 0:21
    random variables are, the expected value.
  • 0:21 - 0:24
    So the expected value of X
    which I could also denote
  • 0:24 - 0:29
    as the mean of our random
    variable X let's say I expect
  • 0:29 - 0:33
    to see three dogs a day
    and similarly for the cats,
  • 0:34 - 0:39
    the expected value of Y is
    equal to I could also denote
  • 0:39 - 0:43
    that as the mean of Y is going
    to be equal to and this is
  • 0:44 - 0:46
    just for the sake of (mumbles)
    let's say I expect to see
  • 0:46 - 0:47
    four cats a day.
  • 0:47 - 0:52
    And pretty much we define how
    you take the mean of a random
  • 0:52 - 0:55
    variable or the expected
    value for a random variable.
  • 0:55 - 0:57
    What we're going to think
    about now is what would be
  • 0:57 - 1:01
    the expected value of X plus
    Y or other way of saying
  • 1:02 - 1:07
    that the mean of the sum of
    these two random variables.
  • 1:08 - 1:11
    Well it turns out, and I'm
    not proving it just yet,
  • 1:11 - 1:15
    that the mean of the sum of
    random variables is equal to
  • 1:15 - 1:17
    the sum of the means.
  • 1:17 - 1:21
    So this is going to be equal
    to the mean of random variable
  • 1:21 - 1:24
    X plus the mean of random variable Y.
  • 1:27 - 1:29
    And so in this particular case,
    if I were to say well what's
  • 1:29 - 1:32
    the expected number of dogs
    and cats that I would see
  • 1:32 - 1:34
    in a given day.
  • 1:34 - 1:37
    Well I would add these two
    means, it would be three plus
  • 1:37 - 1:40
    four it would be equal to seven,
    so in this particular case
  • 1:40 - 1:44
    it is equal to three plus
    four which is equal to seven.
  • 1:49 - 1:51
    And similarly if I were to ask
    you the difference if I were
  • 1:51 - 1:55
    to say how many more cats in
    a given day would I expect
  • 1:56 - 2:01
    to see than dogs, so the
    expected value of Y minus X.
  • 2:01 - 2:03
    What would that be?
  • 2:03 - 2:06
    Well intuitively you might
    say well hey if we can add
  • 2:06 - 2:07
    random...
  • 2:07 - 2:09
    If the expected value of the
    sum is the sum of the expected
  • 2:09 - 2:12
    values, then the expected
    value or the mean of
  • 2:12 - 2:14
    the difference will be the
    differences of the means
  • 2:14 - 2:16
    and that is absolutely true.
  • 2:16 - 2:20
    So this is the same thing as
    the mean of Y minus X which is
  • 2:20 - 2:25
    equal to the mean of Y is going
    to be equal to the mean of Y
  • 2:29 - 2:32
    minus the mean of X, minus the mean of X.
  • 2:33 - 2:37
    And in this particular case,
    it would be equal to four
  • 2:37 - 2:40
    minus three, minus three is equal to one.
  • 2:44 - 2:47
    So another way of thinking about
    this intuitively is I would
  • 2:47 - 2:52
    expect to see on a given
    day one more cat than dog.
  • 2:53 - 2:55
    The example that I just
    used this is discrete random
  • 2:55 - 2:59
    variables, on a given day I
    wouldn't see 2.2 dogs or pi
  • 2:59 - 3:02
    dogs, the expected value itself
    does not have to be a whole
  • 3:02 - 3:05
    number 'cause you could of
    course average it over many days.
  • 3:05 - 3:10
    But this same idea that the
    mean of a sum is the same thing
  • 3:10 - 3:14
    as a sum of means and the
    mean of a difference of random
  • 3:14 - 3:18
    variables is the same as
    the difference of the means.
  • 3:18 - 3:21
    In a future video I'll do a proof of this.
Title:
Mean of sum and difference of random variables
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
03:22

English subtitles

Revisions