< Return to Video

Poisson Process 1

  • 0:01 - 0:04
    Let's say you're some type of
    traffic engineer and what
  • 0:04 - 0:07
    you're trying to figure out is,
    how many cars pass by a certain
  • 0:07 - 0:08
    point on the street at
    any given point in time?
  • 0:08 - 0:10
    And you want to figure out
    the probabilities that a
  • 0:10 - 0:14
    hundred cars pass or 5
    cars pass in a given hour.
  • 0:14 - 0:16
    So a good place to start is
    just to define a random
  • 0:16 - 0:21
    variable that essentially
    represents what you care about.
  • 0:21 - 0:27
    So let's say the number of cars
    that pass in some amount of
  • 0:27 - 0:30
    time, let's say, in an hour.
  • 0:32 - 0:35
    And your goal is to figure out
    the probability distribution of
  • 0:35 - 0:37
    this random variable and then
    once you know the probability
  • 0:37 - 0:39
    distribution then you can
    figure out what's the
  • 0:39 - 0:42
    probability that 100 cars pass
    in an hour or the probability
  • 0:42 - 0:46
    that no cars pass in an hour
    and you'd be unstoppable.
  • 0:46 - 0:48
    And just a little aside, just
    to move forward with this
  • 0:48 - 0:51
    video, there's two assumptions
    we need to make because
  • 0:51 - 0:52
    we're going to study the
    Poisson distribution.
  • 0:52 - 0:54
    And in order to study it's
    there's two assumptions
  • 0:54 - 0:55
    we have to make:
  • 0:55 - 0:59
    That any hour at this point
    on the street is no different
  • 0:59 - 1:00
    than any other hour.
  • 1:00 - 1:01
    And we know that that's
    probably false.
  • 1:01 - 1:04
    During rush hour in a real
    situation you probably
  • 1:04 - 1:07
    would have more cars than
    at another rush hour.
  • 1:07 - 1:09
    And you know, if you wanted to
    be more realistic maybe we do
  • 1:09 - 1:12
    it in the day because in a day
    any period of time--
  • 1:12 - 1:13
    actually, no.
  • 1:13 - 1:14
    I shouldn't do a day.
  • 1:14 - 1:18
    We have to assume that every
    hour is completely just like
  • 1:18 - 1:20
    any other hour and actually,
    even within the hour there's
  • 1:20 - 1:23
    really no differentiation from
    one second to the other in
  • 1:23 - 1:26
    terms of the probabilities
    that a car arrives.
  • 1:26 - 1:28
    That's a little bit of a
    simplifying assumption that
  • 1:28 - 1:30
    might not truly apply to
    traffic, but I think we
  • 1:30 - 1:32
    can make that assumption.
  • 1:32 - 1:34
    And then the other assumption
    we need to make is that if a
  • 1:34 - 1:37
    bunch of cars pass in one hour
    that doesn't mean that fewer
  • 1:37 - 1:38
    cars will pass in the next.
  • 1:38 - 1:41
    That in no way does the number
    of cars that pass in one period
  • 1:41 - 1:45
    affect or correlate or somehow
    influence the number of cars
  • 1:45 - 1:45
    that pass in the next.
  • 1:45 - 1:47
    That they're really
    independent.
  • 1:47 - 1:51
    Given that, we can then at
    least try using the skills
  • 1:51 - 1:53
    we have to model out some
    type of a distribution.
  • 1:53 - 1:56
    The first thing you do and I'd
    recommend doing this for any
  • 1:56 - 1:59
    distribution is maybe we
    can estimate the mean.
  • 1:59 - 2:03
    Let's sit out on that curb and
    measure what this variable is
  • 2:03 - 2:05
    over a bunch of hours and then
    average it up, and that's going
  • 2:05 - 2:09
    to be a pretty good estimator
    for the actual mean
  • 2:09 - 2:10
    of our population.
  • 2:10 - 2:12
    Or, since it's a random
    variable, the expected value
  • 2:12 - 2:13
    of this random variable.
  • 2:13 - 2:17
    Let's say you do that and you
    get your best estimate of the
  • 2:17 - 2:22
    expected value of this random
    variable is-- I'll use
  • 2:22 - 2:25
    the letter lambda.
  • 2:25 - 2:27
    You know, this could
    be 9 cars per hour.
  • 2:27 - 2:30
    You sat out there-- it could
    be 9.3 cars per hour.
  • 2:30 - 2:33
    You sat out there over hundreds
    of hours and you just counted
  • 2:33 - 2:35
    the number of cars each hour
    and you averaged them all up.
  • 2:35 - 2:37
    You said, on average, there are
    9.3 cars per hour and you feel
  • 2:37 - 2:39
    that's a pretty good estimate.
  • 2:39 - 2:40
    So that's what you have there.
  • 2:40 - 2:42
    And let's see what we could do.
  • 2:42 - 2:46
    We know the binomial
    distribution.
  • 2:46 - 2:51
    The binomial distribution tells
    us that the expected value of a
  • 2:51 - 2:55
    random variable is equal to the
    number of trials that that
  • 2:55 - 2:57
    random variable's kind
    of composed of, right?
  • 2:57 - 2:59
    Before, in the previous videos
    we were counting the number
  • 2:59 - 3:00
    of heads in a coin toss.
  • 3:00 - 3:03
    So this would be the number
    of coin tosses, times the
  • 3:03 - 3:07
    probability of success
    over each toss.
  • 3:07 - 3:09
    This is what we did with
    the binomial distribution.
  • 3:09 - 3:12
    So maybe we can model
    our traffic situation
  • 3:12 - 3:13
    something similar.
  • 3:13 - 3:15
    This is the number of cars
    that pass in an hour.
  • 3:15 - 3:23
    So maybe we could say lambda
    cars per hour is equal
  • 3:23 - 3:24
    to-- I don't know.
  • 3:27 - 3:30
    Let's make each experiment or
    each toss of the coin equal to
  • 3:30 - 3:32
    whether a car passes
    in a given minute.
  • 3:32 - 3:38
    So there are 60 minutes
    per hour, so there
  • 3:38 - 3:41
    would be 60 trials.
  • 3:41 - 3:43
    And then, the probability that
    we have success in each of
  • 3:43 - 3:47
    those trials, if we modeled
    this as a binomial distribution
  • 3:47 - 3:54
    would be lambda over
    60 cars per minute.
  • 3:54 - 3:56
    And this would be
    a probability.
  • 3:56 - 3:59
    This would be n, and this would
    be the probability, if we said
  • 3:59 - 4:00
    that this is a binomial
    distribution.
  • 4:00 - 4:04
    And this probably wouldn't be
    that bad of an approximation.
  • 4:04 - 4:06
    If you actually then said,
    oh, this is a binomial
  • 4:06 - 4:10
    distribution, so the
    probability that our random
  • 4:10 - 4:13
    variable equals some
    given value, k.
  • 4:13 - 4:16
    You know, the probability that
    3 cars, exactly 3 cars pass in
  • 4:16 - 4:20
    an given hour, we would
    then be equal to n.
  • 4:20 - 4:22
    So n would be 60.
  • 4:22 - 4:26
    Choose k, and you know,
    I have 3 cars times the
  • 4:26 - 4:27
    probability of success.
  • 4:27 - 4:30
    So the probability that a
    car passes in any minute.
  • 4:30 - 4:35
    So it'd be lambda over
    60 to the number of
  • 4:35 - 4:36
    successes we need.
  • 4:36 - 4:42
    So to the kth power, times the
    probability of no success or
  • 4:42 - 4:47
    that no cars pass,
    to the n minus k.
  • 4:47 - 4:50
    If we have k successes we have
    to have 60 minus k failures.
  • 4:50 - 4:53
    There are 60 minus k minutes
    where no car passed.
  • 4:53 - 4:55
    This actually wouldn't be that
    bad of an approximation where
  • 4:55 - 4:57
    you have 60 intervals and you
    say this is a binomial
  • 4:57 - 4:59
    distribution.
  • 4:59 - 5:00
    And you'd probably get
    reasonable results.
  • 5:00 - 5:03
    But there's a core issue here.
  • 5:03 - 5:07
    In this model where we model it
    as a binomial distribution,
  • 5:07 - 5:10
    what happens if more than
    one car passes in an hour?
  • 5:10 - 5:12
    Or more than one car
    passes in a minute?
  • 5:12 - 5:14
    The way we have it right now
    we call it a success if one
  • 5:14 - 5:15
    car passes in a minute.
  • 5:15 - 5:19
    And if you're kind of counting
    it counts as one success, even
  • 5:19 - 5:21
    if 5 cars pass in that minute.
  • 5:21 - 5:23
    So you say, oh, OK Sal, I
    know the solution there.
  • 5:23 - 5:26
    I just have to get
    more granular.
  • 5:26 - 5:29
    Instead of dividing it
    into minutes why don't I
  • 5:29 - 5:31
    divide it into seconds?
  • 5:31 - 5:36
    So the probability that I have
    k successes-- instead of 60
  • 5:36 - 5:40
    intervals I'll do
    3,600 intervals.
  • 5:40 - 5:43
    So the probability of k
    successful seconds, so a second
  • 5:43 - 5:49
    where a car is passing at that
    moment out of 3,600 seconds.
  • 5:49 - 5:52
    So that's 3,600 choose k, times
    the probability that a car
  • 5:52 - 5:55
    passes in any given second.
  • 5:55 - 5:58
    That's the expected number of
    cars in an hour divided by
  • 5:58 - 6:00
    number seconds in an hour.
  • 6:00 - 6:01
    We're going to
    have k successes.
  • 6:04 - 6:06
    And these are the failures,
    the probability of a failure
  • 6:06 - 6:12
    and you're going to have
    3,600 minus k failures.
  • 6:12 - 6:14
    And this would be even a
    better approximation.
  • 6:14 - 6:17
    This actually would not be so
    bad, but still, you have this
  • 6:17 - 6:19
    situation where 2 cars
    can come within a half a
  • 6:19 - 6:20
    second of each other.
  • 6:20 - 6:22
    And you say, oh, OK Sal,
    I see the pattern here.
  • 6:22 - 6:24
    We just have to get more
    and more granular.
  • 6:24 - 6:26
    We have to just make
    this number larger and
  • 6:26 - 6:27
    larger and larger.
  • 6:27 - 6:29
    And your intuition is correct.
  • 6:29 - 6:31
    And if you do that you'll
    end up getting the
  • 6:31 - 6:34
    Poisson distribution.
  • 6:34 - 6:36
    And this is really interesting
    because a lot of times people
  • 6:36 - 6:39
    give you the formula for the
    Poisson distribution and you
  • 6:39 - 6:40
    can kind of just plug in
    the numbers and use it.
  • 6:40 - 6:43
    But it's neat to know that it
    really is just the binomial
  • 6:43 - 6:46
    distribution and the binomial
    distribution really did come
  • 6:46 - 6:49
    from kind of the common
    sense of flipping coins.
  • 6:49 - 6:50
    That's where everything
    is coming from.
  • 6:50 - 6:54
    But before we kind of prove
    that if we take the limit
  • 6:54 - 6:56
    as-- let me change colors.
  • 6:56 - 6:58
    Before we proved that as we
    take the limit as this number
  • 6:58 - 7:01
    right here, the number of
    intervals approaches infinity
  • 7:01 - 7:04
    that this becomes the
    Poisson distribution.
  • 7:04 - 7:07
    I'm going to make sure we have
    a couple of mathematical
  • 7:07 - 7:09
    tools in our belt.
  • 7:09 - 7:13
    So the first is something that
    you're probably reasonably
  • 7:13 - 7:16
    familiar with by now, but I
    just want to make sure that the
  • 7:16 - 7:26
    limit as x approaches infinity
    of 1 plus a/x to the x power is
  • 7:26 - 7:31
    equal to e to the
    ax-- no sorry.
  • 7:31 - 7:38
    Is equal to e to the a and now
    just to prove this to you,
  • 7:38 - 7:39
    let's make a little
    substitution here.
  • 7:39 - 7:44
    Let's say that n is equal
    to-- let me say 1 over
  • 7:44 - 7:48
    n is equal to a over x.
  • 7:48 - 7:53
    And then what would be
    x would equal to na.
  • 7:53 - 7:55
    x times 1 is equal
    to n times a.
  • 7:55 - 8:00
    And so the limit as x
    approaches infinity,
  • 8:00 - 8:02
    what does a approach?
  • 8:02 - 8:03
    a is-- sorry.
  • 8:03 - 8:05
    As x approaches infinity
    what does n approach?
  • 8:05 - 8:07
    Well n is x divided by a.
  • 8:07 - 8:09
    So n would also
    approach infinity.
  • 8:09 - 8:11
    So this thing would be the same
    thing as just making our
  • 8:11 - 8:16
    substitution the limit as n
    approaches infinity of 1
  • 8:16 - 8:21
    plus-- a/x, I made the
    substitution as 1/n.
  • 8:21 - 8:27
    And x is, by this
    substitution, n times a.
  • 8:27 - 8:30
    And this is going to be the
    same thing as the limit as n
  • 8:30 - 8:36
    approaches infinity of 1 plus
    1/n to the n, all
  • 8:36 - 8:39
    of that to the a.
  • 8:39 - 8:42
    And since there's no n out here
    we could just take the limit
  • 8:42 - 8:43
    of this and then take
    that to the a power.
  • 8:43 - 8:48
    So that's going to be equal to
    the limit as n approaches
  • 8:48 - 8:53
    infinity of 1 plus 1/n to the
    nth power, all of
  • 8:53 - 8:54
    that to the a.
  • 8:54 - 8:58
    And this is our definition, or
    one of the ways to get to e if
  • 8:58 - 9:01
    you'd watch the videos on
    compound interest and all that.
  • 9:01 - 9:02
    This is how we got to e.
  • 9:02 - 9:03
    And if you tried it out on your
    calculator, just try larger
  • 9:03 - 9:07
    and larger n's here
    and you'll get e.
  • 9:07 - 9:12
    This inner part is equal to e,
    and we raised it to the a
  • 9:12 - 9:14
    power, so it's equal
    to e to the a.
  • 9:14 - 9:16
    So hopefully you pretty
    satisfied that this limit
  • 9:16 - 9:18
    is equal to e to the a.
  • 9:18 - 9:20
    And then one other tool kit I
    want in our belt, and I'll
  • 9:20 - 9:22
    probably actually do the
    proof in the next video.
  • 9:22 - 9:33
    The other tool kit is to
    recognize that x factorial over
  • 9:33 - 9:43
    x minus k factorial is equal to
    x times x minus 1 times x
  • 9:43 - 9:50
    minus 2, all the way down
    to times x minus k plus 1.
  • 9:50 - 9:52
    And we've done this a lot of
    times, but this is the most
  • 9:52 - 9:53
    abstract we've ever written it.
  • 9:53 - 9:56
    I can give you a couple of--
    and just so you know, they'll
  • 9:56 - 9:57
    be exactly k terms here.
  • 9:57 - 10:02
    1, 2, 3-- So first term, second
    term, third term, all the
  • 10:02 - 10:04
    way, and this the kth term.
  • 10:04 - 10:07
    And this is important to
    our derivation of the
  • 10:07 - 10:09
    Poisson distribution.
  • 10:09 - 10:14
    But just to make this in real
    numbers, if I had 7 factorial
  • 10:14 - 10:20
    over 7 minus 2 factorial,
    that's equal to 7 times 6
  • 10:20 - 10:24
    times 5 times 4 times
    3 times 3 times 1.
  • 10:24 - 10:27
    Over 2 times-- no sorry.
  • 10:27 - 10:29
    7 minus 2, this is 5.
  • 10:29 - 10:34
    So it's over 5 times 4
    times 3 times 2 times 1.
  • 10:34 - 10:37
    These cancel out and you
    just have 7 times 6.
  • 10:37 - 10:41
    And so it's 7 and then
    the last term is 7 minus
  • 10:41 - 10:43
    2 plus 1, which is 6.
  • 10:48 - 10:51
    In this example, k was 2 and
    you had exactly 2 terms.
  • 10:51 - 10:53
    So once we know those two
    things we're now ready
  • 10:53 - 10:56
    to derive the Poisson
    distribution and I'll do
  • 10:56 - 10:58
    that in the next video.
  • 10:58 - 11:00
    See you soon.
Title:
Poisson Process 1
Description:

Introduction to Poisson Processes and the Poisson Distribution.

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

English subtitles

Revisions