1
00:00:00,000 --> 00:00:05,029
Now, when working with probability
distributions, we have the probability

2
00:00:05,029 --> 00:00:10,080
function, we have the probability curve.
There's also something known as the

3
00:00:10,080 --> 00:00:16,070
cumulative distribution function. The
cumulative distribution function or the

4
00:00:16,070 --> 00:00:22,031
CDF of a random variable is denoted by
capital F. This just represents the

5
00:00:22,031 --> 00:00:28,026
probability that the random value is less
than or equal to a particular value. So,

6
00:00:28,026 --> 00:00:33,027
f(x), capital F(x) is equal to the
probability that big X is less than or

7
00:00:33,027 --> 00:00:38,042
equal to little x. So, it's the area under
the probability curve, if you have a

8
00:00:38,042 --> 00:00:42,283
continuous random variable to the left of
x, okay? If you have a discreet

9
00:00:42,283 --> 00:00:46,536
distribution, then you just count up the
probability values for all x less than or

10
00:00:46,536 --> 00:00:51,171
equal to a particular value and you
usually get a stair step kind of function.

11
00:00:51,171 --> 00:00:57,651
The cumulative distribution function
satisfies the following properties. So, if

12
00:00:57,917 --> 00:01:05,133
x2 is bigger than x1, then the area to the
left of x2 is bigger than the area to the

13
00:01:05,133 --> 00:01:12,018
left of x1. The CDF at minus infinity is
zero. The area to the left of minus

14
00:01:12,018 --> 00:01:15,779
infinity is zero. And the CDF at infinity
is equal to one, so the area to the left

15
00:01:15,779 --> 00:01:21,062
of plus infinity has to be equal to one.
This is just says the total area in the

16
00:01:21,062 --> 00:01:27,037
probability curve is equal to one. Because
the total area of the probability curve is

17
00:01:27,037 --> 00:01:31,098
equal to one, the probability that x is
greater than, the random variable is

18
00:01:31,098 --> 00:01:36,403
greater than or equal to x is one minus
the probability that it's less than or

19
00:01:36,403 --> 00:01:42,670
equal to x. If we want to know the area,
or if we want to know the probability that

20
00:01:42,670 --> 00:01:48,070
x is between, that the random variable is
between x1 and x2, it's the CDF evaluated

21
00:01:48,070 --> 00:01:54,044
x2 - the CDF evaluated at x1. So, this
result here is one of the main reasons why

22
00:01:54,044 --> 00:01:59,030
we look at the cumulative distribution
function. If we want to know the

23
00:01:59,030 --> 00:02:04,091
probability over an interval, we can just
calculate the difference between the CDF

24
00:02:04,091 --> 00:02:10,034
values. And so, if we have some function
that can compute the CDF, then we can

25
00:02:10,034 --> 00:02:16,048
compute the probabilities. And if we have
a continuous random variable, it turns out

26
00:02:16,048 --> 00:02:22,012
that the probability curve, the density is
equal to t he derivative of the CDF. So,

27
00:02:22,012 --> 00:02:30,156
there's a result from Calculus. And this
is just an example of Fubini's theorem.

28
00:02:30,156 --> 00:02:36,194
So, let's look at an example. Suppose we
have a uniform distribution over zero

29
00:02:36,412 --> 00:02:43,250
actually, before we go to the uniform
distribution, let's just look at so, this

30
00:02:43,250 --> 00:02:49,065
discrete distribution for Microsoft stock
that we had before. So, if we look at this

31
00:02:49,065 --> 00:02:54,044
distribution here. So, this is the
probability mass function. And if we

32
00:02:54,044 --> 00:02:59,077
wanted to know, what is the cumulative
distribution? What is the probability that

33
00:02:59,077 --> 00:03:04,095
x is less than or equal to zero? Well,
it's the sum of the probabilities that x

34
00:03:04,095 --> 00:03:10,288
is less than zero. So, we calculate the
cumulative distribution function, we see

35
00:03:10,288 --> 00:03:15,492
the probability that x is less than -four
is zero. The probability that the return

36
00:03:15,492 --> 00:03:20,849
is less than -three is, is just the
probability that it's, it's equal to -30%.

37
00:03:20,849 --> 00:03:28,022
So, this is the probability that you're in
a depression. And then the probability

38
00:03:28,022 --> 00:03:34,618
that the return is less than say -ten%.
Well again, that's the sum of these two

39
00:03:34,618 --> 00:03:41,691
events. And then, we just add up the
probabilities and we get this stair step.

40
00:03:41,691 --> 00:03:51,682
So, that's a discreet distribution. We
have a continuous distribution, say the,

41
00:03:51,682 --> 00:03:57,769
say the uniform distribution on 0,1. So,
in that case, we have a very simple

42
00:03:57,769 --> 00:04:04,849
distribution. So, we have a distribution
that is essentially the square, that's,

43
00:04:04,849 --> 00:04:12,844
that's supposed to be one. And so, we wan
to know what is the probability that this

44
00:04:12,844 --> 00:04:19,734
random variable x is less than or equal to
little x? Well, that's the area under the

45
00:04:19,734 --> 00:04:27,384
curve to the left of x. So we, think of
some value here, x. Then this area on to

46
00:04:27,384 --> 00:04:34,635
the probability curve to the left of x is
just the shaded area here, which I'll

47
00:04:34,635 --> 00:04:40,170
shade in. And so, this represents the
probability that x is less than or equal

48
00:04:40,170 --> 00:04:44,847
to x. It's just the area under the
probability curve to the left of X. And we

49
00:04:44,847 --> 00:04:49,967
can do this integration very easily cuz
the probability curve is just equal to

50
00:04:49,967 --> 00:04:55,411
one. The, this, this probability is just
the interval of the z from zero to x, so

51
00:04:55,411 --> 00:05:01,708
that's equal to X. So, for uniform
distribution on the unit square, if we

52
00:05:01,708 --> 00:05:11,387
want to calcul ate the CDF is just a
straight line that looks like this. So,

53
00:05:11,387 --> 00:05:22,550
this is F(x) of x is equal to x is the
CDF. So, this is the case where we can

54
00:05:22,550 --> 00:05:28,568
analytically derive what this CDF is by
actually evaluating the interval. And if

55
00:05:28,568 --> 00:05:35,602
we want to find the probability, say, that
x is between zero and a half, then what is

56
00:05:35,602 --> 00:05:41,414
this? This is just the area under the
probability curve between zero and a half.

57
00:05:41,414 --> 00:05:47,482
We can evaluate the CDF at a half minus
the CDF at zero. The CDF at a half, using

58
00:05:47,482 --> 00:05:53,870
this result, is a half. The CDF at zero is
zero, so the area between zero and a half

59
00:05:53,870 --> 00:05:59,021
is equal to a half, okay? And then
similarly, the result from Calculus,

60
00:05:59,021 --> 00:06:04,500
because the CDF is equal to x, if we take
the derivative of x, we get one, and

61
00:06:04,500 --> 00:06:09,391
that's exactly the probability curve. So,
the continuous random variable, we

62
00:06:09,391 --> 00:06:18,405
integrate, we take the derivative of the
CDF, we get the, the probability curve.

63
00:06:18,405 --> 00:06:30,605
All right, so, I want to make a remark
here. So in this example, let's say, when

64
00:06:30,605 --> 00:06:40,296
we had this the probability curve on the
unit square, right, we can think of the

65
00:06:40,296 --> 00:06:48,430
probability, say, that this is the
probability, say, between 0.5 and 0.6 is

66
00:06:48,430 --> 00:07:01,693
the area under the curve, so this is equal
to the area under the curve, okay? So,

67
00:07:01,693 --> 00:07:10,281
what happens if we consider the
probability as you know, this, this

68
00:07:10,281 --> 00:07:16,294
interval gets smaller and smaller and
smaller. So, the idea is we want to think

69
00:07:16,294 --> 00:07:22,925
of, what's the probability at a single
point? So, if so, if we, we squish this

70
00:07:22,925 --> 00:07:29,661
rectangle such that we just get a single
point, what's the area associated at a

71
00:07:29,661 --> 00:07:34,313
single point? It's zero. So, with a
continuous random variable, the

72
00:07:34,313 --> 00:07:39,476
probability that a continuous random
variable is exactly equal to a particular

73
00:07:39,476 --> 00:07:44,427
point is, is zero. Now, that's a little
counter intuitive, right? Because I, cuz

74
00:07:44,427 --> 00:07:49,946
when you see the probability of, of x
being equal to a particular point is zero,

75
00:07:49,946 --> 00:07:55,922
it's like saying that it can never happen,
right? That's not true. And so, it' s sort

76
00:07:55,922 --> 00:08:01,058
of like with a continuous random variable,
again, there's an infinite number of

77
00:08:01,058 --> 00:08:05,872
values between zero and one, right? And
think about the idea of guessing, you kno

78
00:08:05,872 --> 00:08:10,787
w, exactly what x is going to happen,
right? You can have as many decimal points

79
00:08:10,787 --> 00:08:15,940
after this, you know, the accuracy that
you want. So, in some respects you know,

80
00:08:15,940 --> 00:08:20,485
probability of a single point for
continuous random variables just doesn't

81
00:08:20,485 --> 00:08:25,417
make any sense. And so, for continuous
random variables, we define probabilities

82
00:08:25,417 --> 00:08:30,326
over intervals and not at distinct points.
And with the continuous, and because of

83
00:08:30,326 --> 00:08:34,345
this result, we have a continuous random
variable. The probability that x is less

84
00:08:34,345 --> 00:08:38,223
or equal to x is the same as the
probability that x is strictly less than

85
00:08:38,223 --> 00:08:42,001
x, because the probability at a single
point is equal to zero.
