1
00:00:00,000 --> 00:00:02,093
All right.
So, let's talk a little bit about

2
00:00:02,093 --> 00:00:06,394
hypothesis testing.
Now, again, this is part of the, you know,

3
00:00:06,394 --> 00:00:09,584
pro, you know, probability and statistics
review.

4
00:00:09,584 --> 00:00:14,585
So, everyone in their previous statistics
class has had some exposure to hypothesis

5
00:00:14,585 --> 00:00:18,016
testing, I assume doing T tests and stuff
like that.

6
00:00:18,250 --> 00:00:23,851
And so, I just want to remind you a little
bit about the hypothesis testing

7
00:00:24,092 --> 00:00:29,231
methodology.
And then, mention, you know, what are some

8
00:00:29,231 --> 00:00:35,165
of the interesting hypotheses that we
could conduct in our constant expected

9
00:00:35,165 --> 00:00:40,598
return model.
So, so this is the basic idea with, with

10
00:00:40,598 --> 00:00:45,385
hypothesis testing.
So, with hypothesis testing, there's a

11
00:00:45,385 --> 00:00:48,826
decision to be made.
So, there is some hypothesis.

12
00:00:48,826 --> 00:00:52,396
Now, a hypothesis is some assumption about
your model.

13
00:00:52,396 --> 00:00:56,438
So, hypothesis could be that true mean is
equal to zero, okay?

14
00:00:56,438 --> 00:01:01,167
And then, so that, so you, you specify
something that's being maintained and

15
00:01:01,167 --> 00:01:06,039
that's called the null hypothesis.
So, 80 is some, maintain hypothesis like

16
00:01:06,039 --> 00:01:10,070
the, the true mean is equal to zero.
And then, there's an alternative

17
00:01:10,070 --> 00:01:15,068
hypothesis which is, you know, if, if, if
this isn't true, then, what else could be

18
00:01:15,068 --> 00:01:17,749
true.
So, the alternative could be, well, the

19
00:01:17,749 --> 00:01:22,451
mean is not equal to zero, okay?
And so, what you want to do is you want to

20
00:01:22,451 --> 00:01:27,161
test, you want to gather data, and you
want to see if the data is in favor of the

21
00:01:27,161 --> 00:01:31,575
null hypothesis, or if it's more in favor
of the alternative hypothesis.

22
00:01:31,575 --> 00:01:35,319
So, hypothesis testing is really about
making decisions, right?

23
00:01:35,319 --> 00:01:39,796
And, you know, in our case, in our model,
you know, what are the kinds of things

24
00:01:39,796 --> 00:01:43,450
that are interesting?
For example, we might want to test the

25
00:01:43,450 --> 00:01:47,037
hypothesis that our returns are normally
distributed, right?

26
00:01:47,037 --> 00:01:51,465
And, cuz returns are normally distributed
then, you know, it gives us an easy way to

27
00:01:51,465 --> 00:01:55,486
do certain calculations.
But if our data's not normally distributed

28
00:01:55,486 --> 00:01:58,087
then, you know, we should be searching for
better distributions.

29
00:01:58,087 --> 00:02:03,670
So, in finance, and particularly in
looking at return data, you know, that is

30
00:02:03,903 --> 00:02:09,698
an interesting hypothesis to, to look at.
Another interesting hypothesis is, you

31
00:02:09,698 --> 00:02:14,026
know, Are the parameters of our model
constant over time, right?

32
00:02:14,026 --> 00:02:19,018
Is the mean return constant over a five
year period, or is it changing?

33
00:02:19,018 --> 00:02:24,081
Is the correlation between two returns
constant over our observed data, or is it

34
00:02:24,081 --> 00:02:28,014
changing over time?
So, those are kind of interesting

35
00:02:28,014 --> 00:02:33,003
hypothesis that I think that we want to
look at and, and we would like to try to

36
00:02:33,003 --> 00:02:34,551
evaluate with data.
Alright.

37
00:02:34,551 --> 00:02:39,041
So, we're going to use the methodology of
hypothesis testing to do this.

38
00:02:39,041 --> 00:02:44,058
So, anytime, you know, you start with a
null and alternative hypothesis and then

39
00:02:44,058 --> 00:02:48,862
you're going to do a test.
You're going to gather data, and with your

40
00:02:48,862 --> 00:02:53,428
data you're going to construct a test
statistic, and the test statistic is going

41
00:02:53,428 --> 00:02:57,052
to give you data evidence in favor or
against the hypothesis.

42
00:02:57,052 --> 00:03:01,074
Now, because hypothesis involves,
hypothesis testing involves a decision,

43
00:03:01,074 --> 00:03:07,655
the decision is you either reject the null
hypothesis or you do not reject the

44
00:03:07,655 --> 00:03:10,881
hypothesis, okay?
So, think of, you know, in the context of

45
00:03:11,078 --> 00:03:15,839
like, drug trials, right?
You're going to either conclude that the

46
00:03:15,839 --> 00:03:21,021
drug cures cancer or it doesn't, right?
And, that's a very important decision.

47
00:03:21,021 --> 00:03:23,679
Because if you have a, found a drug that
cures cancer, right?

48
00:03:23,679 --> 00:03:26,678
You know?
You've you know, made a ton of money for

49
00:03:26,678 --> 00:03:30,201
your company and, and improve the world
and so on and so forth.

50
00:03:30,201 --> 00:03:34,271
But, if the drug doesn't cure cancer or do
anything, then you know, it should be

51
00:03:34,271 --> 00:03:37,040
thrown out and you should, you know, look
elsewhere.

52
00:03:37,040 --> 00:03:41,000
So, very often in hypothesis testing, the
decision is very important.

53
00:03:41,177 --> 00:03:45,091
I like to, to talk about hypothesis
testing often in a, a courtroom setting.

54
00:03:45,091 --> 00:03:50,083
So, think of yourself sitting on a jury,
and you have to decide whether or not

55
00:03:50,083 --> 00:03:54,097
someone's guilty or innocent.
And, and to make it more interesting,

56
00:03:54,097 --> 00:03:59,031
suppose you're on a murder trial.
And so, the idea is, you know, you're

57
00:03:59,199 --> 00:04:03,072
innocent until proven guilty.
So, the null hypothesis is the person on

58
00:04:03,072 --> 00:04:08,025
trial is not a serial killer.
But the alternative hypothesis is, the guy

59
00:04:08,025 --> 00:04:10,691
is a serial killer.
And you, as the jury, have to decide

60
00:04:10,691 --> 00:04:14,461
whether or not this guy's going to, to go
to the gas chamber or not, right?

61
00:04:14,461 --> 00:04:18,006
So, your decision has a real implication
to what's going on.

62
00:04:18,006 --> 00:04:23,665
So, you don't want to make an error.
So, in any decision, you know, there could

63
00:04:23,665 --> 00:04:28,224
an error that could be made.
It could be the case that this person is

64
00:04:28,224 --> 00:04:33,024
really innocent, right?
And then, an error would be is you convict

65
00:04:33,024 --> 00:04:37,062
the innocent guy, right?
That's rejecting the null hypothesis when

66
00:04:37,062 --> 00:04:42,070
the null hypothesis is true, right?
So, you're concluding that the guilt, the

67
00:04:42,070 --> 00:04:46,076
innocent person is guilty when in fact,
they're not guilty.

68
00:04:46,266 --> 00:04:50,099
That's a bad thing to do.
You don't want to send an innocent person

69
00:04:50,099 --> 00:04:54,037
to the gas chamber.
So, you want the probability that you

70
00:04:54,037 --> 00:04:59,002
reject the null hypothesis when it's in
fact true, to be very, very, very small.

71
00:04:59,002 --> 00:05:03,541
You, and in the, in the context of a court
room you want the evidence to be beyond

72
00:05:03,541 --> 00:05:07,096
the reasonable doubt, right?
And so, that's like saying you want this,

73
00:05:07,096 --> 00:05:12,267
this probability of rejecting the null
hypothesis when null hypothesis is true to

74
00:05:12,267 --> 00:05:15,631
be very small.
So, in, in statistical testing, what we

75
00:05:15,631 --> 00:05:21,088
call the level of the test is the
probability that we reject the null when

76
00:05:21,088 --> 00:05:26,646
it is in fact true.
And, and we would like that to be a small

77
00:05:26,646 --> 00:05:31,018
value, like one percent or five%.
Five percent can often be very big.

78
00:05:31,045 --> 00:05:36,031
Particularly, if you're on a murder trial,
beyond a reasonable doubt should be

79
00:05:36,031 --> 00:05:40,017
smaller than five percent probability.
[laugh] One should think that should be

80
00:05:40,017 --> 00:05:45,485
like 0.001 or something like that.
So, you, any test that you perform,

81
00:05:45,485 --> 00:05:50,185
there's a pre-specified tolerance for
committing this kind of error.

82
00:05:50,185 --> 00:05:53,471
And again, that's called the level of the
test.

83
00:05:53,703 --> 00:05:59,483
The next step in hypothesis testing is you
gather data, and you summarize the data

84
00:05:59,483 --> 00:06:04,685
evidence in the form of a test statistic.
And very often in statistics, a test

85
00:06:04,685 --> 00:06:07,786
statistic is something called a
t-statistic.

86
00:06:07,786 --> 00:06:12,541
And, and then, the test statistic
generally has the property that if the

87
00:06:12,541 --> 00:06:17,528
test statistic is big, then, that's data
evidence against the null hypothesis, and

88
00:06:17,528 --> 00:06:22,000
you should reject it, okay?
And if the test statistic is small, then

89
00:06:22,000 --> 00:06:27,788
that's data evidence in favor of the null
hypothesis and you shouldn't reject it.

90
00:06:27,788 --> 00:06:33,643
So again, it's like t is summarizing all
of the arguments from the defense and the

91
00:06:33,643 --> 00:06:37,787
prosecuting attorney.
And then, you know, it's synthesizing that

92
00:06:37,787 --> 00:06:43,478
evidence into some numerical value, and if
that numerical value is big, then you

93
00:06:43,676 --> 00:06:47,045
reject the null.
And if it's small, you don't reject.

94
00:06:47,045 --> 00:06:53,063
Now, also in the language of hypothesis
testing, you shouldn't use phrases like, I

95
00:06:53,063 --> 00:06:58,708
accept the no hypothesis, you know?
And, and from the logical point of view,

96
00:06:58,934 --> 00:07:03,372
accepting is sort of establishing the fact
that it is true.

97
00:07:03,372 --> 00:07:09,076
Well, all you can really do is evaluate
the data evidence against the null

98
00:07:09,076 --> 00:07:13,282
hypothesis.
It's sort of like this, trying to evaluate

99
00:07:13,282 --> 00:07:16,045
this statement, all swans are white,
right?

100
00:07:16,045 --> 00:07:20,399
So, you can't, in order to prove that all
swans are white, you have to find every

101
00:07:20,399 --> 00:07:23,061
swan that ever existed and show that is
white.

102
00:07:23,061 --> 00:07:27,477
In order to disprove the hypothesis, you
just need to find one black swan, right?

103
00:07:27,477 --> 00:07:31,964
So, at best you cannot reject the null
hypothesis if all you find are white

104
00:07:31,964 --> 00:07:34,630
swans, that doesn't mean that every swan
is white.

105
00:07:34,630 --> 00:07:37,721
It just means that you haven't find a
black one yet.

106
00:07:37,721 --> 00:07:42,120
And, and according to your data evidence,
you can't reject the statement that all

107
00:07:42,120 --> 00:07:44,962
swans are white.
So, never say, I accept the Null

108
00:07:44,962 --> 00:07:47,006
hypothesis.
Say, I can't reject it.

109
00:07:49,042 --> 00:07:53,200
Okay.
So, hypothesis tests, test statistics

110
00:07:53,200 --> 00:07:58,311
reject the null hypothesis when the test
statistic is big.

111
00:07:58,311 --> 00:08:01,900
And, how do you determine if the test
statistics is big?

112
00:08:02,050 --> 00:08:05,584
In statistics, we usually have something
called a rejection region.

113
00:08:05,584 --> 00:08:10,116
Which are a range of values such that if
the test statistic is in the rejection

114
00:08:10,116 --> 00:08:14,390
region, you determine that the test
statistic is big enough to reject the null

115
00:08:14,390 --> 00:08:17,055
hypothesis.
And usually, a rejection region is defined

116
00:08:17,055 --> 00:08:20,845
by a critical value such that if the
absolute value of the test statistic is

117
00:08:20,845 --> 00:08:25,037
bigger than the critical value, then you,
you have data evidence to reject.

118
00:08:25,037 --> 00:08:31,446
And if the test statistic is less than a
critical value, then, then you don't
