1
00:00:00,000 --> 00:00:03,579
Now the normal distribution has a kurtosis
of three.

2
00:00:03,579 --> 00:00:09,360
It implies a certain tail shape, right?
And so what are some distributions that

3
00:00:09,360 --> 00:00:14,798
have fatter tails than the normal, okay?
So a very common distribution that most

4
00:00:14,798 --> 00:00:19,065
people might have heard of is, is the
Student's t-distribution.

5
00:00:19,065 --> 00:00:24,158
The Student's t-distribution is, is
similar to the standard normal in that

6
00:00:24,158 --> 00:00:31,261
it's a symmetric distribution centered at
zero, But the, student's T distribution

7
00:00:31,261 --> 00:00:36,752
has an extra parameter known as the
degrees of freedom, and, so which I'll

8
00:00:36,752 --> 00:00:40,510
call the degrees of freedom, this Greek
letter Nu.

9
00:00:40,715 --> 00:00:45,710
The degrees of freedom control the tail
thickness of the, the student's T.

10
00:00:45,710 --> 00:00:51,363
And, essentially if this degrees of
freedom parameter is, very large, if in

11
00:00:51,363 --> 00:00:57,088
fact if the, nu is equal to infinity, the
student's t distribution, is, exactly the

12
00:00:57,088 --> 00:01:01,503
normal distribution.
But when the degrees of freedom parameter

13
00:01:01,503 --> 00:01:06,902
is smaller than infinity, then the
student's T distribution has fatter tails

14
00:01:06,902 --> 00:01:11,733
than the normal distribution.
And the smaller the degrees of freedom

15
00:01:11,733 --> 00:01:16,422
parameter, the fatter the tails of the,
student's T distribution.

16
00:01:16,422 --> 00:01:22,319
So this is a, one distribution that is a
candidate for modeling, fat tails, you

17
00:01:22,319 --> 00:01:26,447
know, in, in practice.
That the probability for, for a student to

18
00:01:26,447 --> 00:01:30,829
random variable is like this.
Its, it involves gamma function and the

19
00:01:30,829 --> 00:01:35,148
gamma function is defined here.
Gamma function behaves bit like the

20
00:01:35,148 --> 00:01:39,273
factorial function.
And then but the basic shape of student's

21
00:01:39,273 --> 00:01:44,558
t-distribution is just one + x squared'Y'
divided by the degrees of freedom to the

22
00:01:44,558 --> 00:01:47,587
power of degrees of freedom +one divided
by two.

23
00:01:47,587 --> 00:01:52,808
So, because we are dividing by the degrees
of freedom here, we have to have the

24
00:01:52,808 --> 00:01:57,529
degrees of freedom being positive.
Now, mostly, in, when people work with,

25
00:01:57,740 --> 00:02:03,431
student's T random variables, they treat
the degrees of freedom as integer values.

26
00:02:03,431 --> 00:02:06,874
The degrees of freedom are one, two,
three, or four.

27
00:02:06,874 --> 00:02:12,636
But this distribution is defined for non
integer values of the degrees of freedom.

28
00:02:12,847 --> 00:02:17,555
So the degrees of freedom could be 18.79,
and that's perfectly fine.

29
00:02:17,766 --> 00:02:20,760
So, we'll.
We'll come back to the student's T

30
00:02:20,760 --> 00:02:25,140
distribution later on to, to see at, to
get another definition for what it is.

31
00:02:25,140 --> 00:02:29,410
For right now, it's just a distribution
that has fatter tails than the normal.

32
00:02:29,410 --> 00:02:33,637
And some properties of the student's T
distribution, are as follows.

33
00:02:33,637 --> 00:02:37,140
So if the degrees of freedom parameter is
bigger than one.

34
00:02:37,140 --> 00:02:43,490
Then, the expectation of the random
variable exists and, and is equal to zero.

35
00:02:43,490 --> 00:02:46,360
Okay.
Now the variance of a Student's t random

36
00:02:46,360 --> 00:02:51,228
variable is equal to the degrees of
freedom divided by the degrees of freedom

37
00:02:51,228 --> 00:02:56,283
minus two, and so we need the degrees of
freedom bigger than two in order for the

38
00:02:56,283 --> 00:03:00,090
variance to, to exist.
The skewness is zero and we need the

39
00:03:00,090 --> 00:03:04,833
degrees of freedom actually to be bigger
than three in order to compute the

40
00:03:04,833 --> 00:03:07,891
skewness.
And what's more interesting is that the

41
00:03:07,891 --> 00:03:12,884
kurtosis of a Student's t turns out to be
six divided by the degrees of freedom

42
00:03:12,884 --> 00:03:16,410
minus four minus three.
And, and in order for it to do this

43
00:03:16,410 --> 00:03:20,040
calculation we need the degrees of freedom
to be bigger than four.

44
00:03:20,040 --> 00:03:31,305
>> Right.
>> So, So, if the degrees of freedom were,

45
00:03:31,536 --> 00:03:35,381
five, then we would have, five minus four
is one.

46
00:03:35,381 --> 00:03:39,919
Yeah, so we have six minus three and so
that would be three.

47
00:03:39,919 --> 00:03:48,118
I think this is excess kurtosis.
Yeah, I think that's right.

48
00:03:48,118 --> 00:03:55,164
So in general, whatever the formula should
be is that, we should have a kurtosis

49
00:03:55,164 --> 00:04:02,120
bigger than three for v essentially less
than infinity, and when v is equal to

50
00:04:02,120 --> 00:04:06,312
infinity, the kurtosis should be equal to
three.

51
00:04:07,280 --> 00:04:11,297
Apologize if I think that calculation is,
is not right.

52
00:04:11,509 --> 00:04:17,288
Now, if we want to look at the student's T
random variable, there's a function of R.

53
00:04:17,500 --> 00:04:22,575
There are four functions in R for doing
computations with a student's T.

54
00:04:22,575 --> 00:04:26,592
Rt simulates data from a student's T.
Pt computes the CDF.

55
00:04:26,592 --> 00:04:30,399
Qt computes the quantiles, and DT computes
the density.

56
00:04:30,399 --> 00:04:33,711
Okay?
And all these depend upon this degrees of

57
00:04:33,711 --> 00:04:37,800
freedom parameter, which is the same as
this parameter new.

58
00:04:38,180 --> 00:04:44,197
So from.
To get an idea of, what the, student's

59
00:04:44,197 --> 00:04:48,175
T-distribution looks like, say relative to
the normal.

60
00:04:48,175 --> 00:04:54,106
So here I have different students
t-distributions plotted for degrees of

61
00:04:54,106 --> 00:04:57,559
freedom.
The blue curve is when the degrees of

62
00:04:57,559 --> 00:05:01,122
freedom is 60.
The green curve is when the degrees of

63
00:05:01,122 --> 00:05:04,729
freedom is ten.
The red curve is degrees of freedom five.

64
00:05:04,729 --> 00:05:07,821
And the black curve is, one degree of
freedom.

65
00:05:07,821 --> 00:05:13,039
So notice as the, when the degrees of
freedom get smaller, the, the tails of the

66
00:05:13,039 --> 00:05:17,584
distribution get thicker.
And, and in fact, when, the degrees of

67
00:05:17,584 --> 00:05:23,303
freedom, is around 60, essentially for all
practical purposes, the student's t

68
00:05:23,303 --> 00:05:26,990
distribution is the, standard normal
distribution.

69
00:05:27,180 --> 00:05:31,554
So degrees of freedom doesn't need to go
all the way out to infinity.

70
00:05:31,554 --> 00:05:36,309
So once we get about 60, then the
Student's t and the normal are, are pretty

71
00:05:36,309 --> 00:05:39,478
much the same.
If I drew the normal curve, it would

72
00:05:39,478 --> 00:05:44,613
essentially overlap almost exactly on the
black curve, and there'd be just a tiny

73
00:05:44,613 --> 00:05:49,685
little, sorry, for the blue curve, and the
normal would just deviate from the blue

74
00:05:49,685 --> 00:05:51,080
curve just a tiny bit.
