1
00:00:02,029 --> 00:00:06,090
And I want to introduce this location
scale model.

2
00:00:09,056 --> 00:00:13,507
And, this location scale model is, is very
useful, and we're going to actually, going

3
00:00:13,507 --> 00:00:17,051
use it, quite a bit.
And, this location scale model is

4
00:00:17,051 --> 00:00:21,088
motivated by the fact, by the following
result, that we deduced last time.

5
00:00:21,088 --> 00:00:27,276
So, we looked at a normal random variable.
Say, x is normal, with mean mu x and

6
00:00:27,276 --> 00:00:32,530
variance sigma x squared.
And then, we did a standardization

7
00:00:32,530 --> 00:00:38,961
process, where we, where we defined a
standardized random variable z, which was

8
00:00:38,961 --> 00:00:43,041
x minus its mean divided by its standard
deviation.

9
00:00:43,041 --> 00:00:50,028
And the standardized random variable is
normally distributed with mean zero, and

10
00:00:50,028 --> 00:00:54,470
variance one.
That is the expectation z is zero, and the

11
00:00:54,470 --> 00:01:00,040
variance of z is one.
Now, the location scale model is

12
00:01:00,040 --> 00:01:04,050
essentially the reverse of the
standardization process.

13
00:01:04,050 --> 00:01:10,039
That is, let's start with a standardized
random variable that has mean zero and

14
00:01:10,039 --> 00:01:15,090
variance one, and let's construct a
non-standardized variable by reversing

15
00:01:15,090 --> 00:01:20,082
this transformation, okay?
So then, we can think of x as being equal

16
00:01:20,082 --> 00:01:26,011
to a location mean plus a standard
deviation, which is a scale variable

17
00:01:26,011 --> 00:01:29,476
multiplied by the standardized random
variable z, okay?

18
00:01:29,476 --> 00:01:34,725
So, we can always think of a non
standardized random variable as being, you

19
00:01:34,725 --> 00:01:40,180
know, in, if it's, say, normal with mean
mu and variance sigma squared, as being

20
00:01:40,180 --> 00:01:46,048
equal to a location, a scale times a
standardized random variable, okay?

21
00:01:46,048 --> 00:01:52,357
And we'll see that this is we're actually
going to build a lot of models off this

22
00:01:52,357 --> 00:01:58,007
very simple way of looking at, at data.
Now, one of the things that's useful about

23
00:01:58,007 --> 00:02:03,924
this location scale model is that we can
deduce what the quantiles of a general

24
00:02:03,924 --> 00:02:10,008
normal distribution looks like in terms of
the mean and the standard deviation and

25
00:02:10,008 --> 00:02:13,617
the quantiles of the standardized random
variable.

26
00:02:13,617 --> 00:02:25,665
So, let's look at this.
So, quantiles of normal distribution,

27
00:02:25,665 --> 00:02:33,773
okay?
So we're going to start with z is a normal

28
00:02:33,773 --> 00:02:46,030
0,1 and by definition the alpha quantile
of z is this number z of alpha.

29
00:02:46,030 --> 00:02:54,080
And z of alpha is the z-score such that
the probability to the left of the z-score

30
00:02:54,080 --> 00:02:56,524
is equal to alpha.
Alright?

31
00:02:56,524 --> 00:03:04,736
So, again if you think of the picture,
standard normal distribution, this is z,

32
00:03:04,736 --> 00:03:12,072
here is my z alpha.
This area is equal to alpha.

33
00:03:12,072 --> 00:03:24,069
So, z alpha is equal to the alpha quantile
of normal 0,1, okay?

34
00:03:29,003 --> 00:03:37,078
So, what we want to do now, is we want to
say, well what's the quantile of a general

35
00:03:37,078 --> 00:03:43,057
normal distribution?
Well, we can use the location scale model,

36
00:03:43,057 --> 00:03:50,061
we know that x is equal to mu x plus sigma
x times z, so, we can look at the

37
00:03:50,061 --> 00:03:57,849
probability of mu x plus sigma x times z
is less than or equal to mu x plus sigma x

38
00:03:57,849 --> 00:04:03,366
times z alpha is equal to alpha.
So, we just take this probability

39
00:04:03,366 --> 00:04:09,090
statement with respect to z and then we
turn it into this probability statement

40
00:04:09,090 --> 00:04:14,835
just by adding the mean and multiply by
the standard deviation doing it on both

41
00:04:14,835 --> 00:04:19,532
sides of the probability piece.
Now, this is a general normal random

42
00:04:19,532 --> 00:04:23,067
variable.
This is the same as the probability that x

43
00:04:23,067 --> 00:04:30,949
is less or equal to the quantile of the
distribution for x, where the quantile for

44
00:04:30,949 --> 00:04:36,877
the distribution for x is the mean plus
the standard deviation times the quantile

45
00:04:36,877 --> 00:04:42,031
for the standard normal.
So, that this piece here, is the quantile

46
00:04:42,031 --> 00:04:46,008
for the standard normal.
So, I used this formula before by saying

47
00:04:46,008 --> 00:04:50,062
the quantile to standard normal, sorry,
the quantile to general normal, you can

48
00:04:50,062 --> 00:04:55,027
compute as the mean plus the standard
deviation times the quantile to standard

49
00:04:55,027 --> 00:04:57,086
normal.
So, this, you know, justifies that, that

50
00:04:57,086 --> 00:05:00,069
result.
And it comes from the use of this simple

51
00:05:00,069 --> 00:05:08,062
location of the scale model.
So now, we can review value at risk.

52
00:05:12,010 --> 00:05:18,022
Okay, so, value of risk says with some
probability, how much can you lose on an

53
00:05:18,022 --> 00:05:24,020
investment over a given period of time?
So, when we calculate value at risk you

54
00:05:24,020 --> 00:05:32,440
might say their simple return.
And, and we, say, make some assumption

55
00:05:32,440 --> 00:05:39,497
that the simple return has a normal
distribution.

56
00:05:39,497 --> 00:05:50,206
And, so, based on this normal distribution
for R, we can look at the quantile, say,

57
00:05:50,206 --> 00:06:02,092
at 0.05.
And this quantile is equal to the mean

58
00:06:02,092 --> 00:06:08,060
plus the standard deviation times the five
percent quantile of a standard normal.

59
00:06:08,060 --> 00:06:14,071
And z.05, is equal to minus 1.645, that's
the quantile of a standard normal.

60
00:06:14,071 --> 00:06:20,098
So, you can get this from the PNORM
function, sorry, the QNORM function in R,

61
00:06:20,098 --> 00:06:25,036
or the norm inverse, norm s inverse
function in Excel.

62
00:06:25,036 --> 00:06:30,007
So, once we have this five percent
quantile, so, this says, with five percent

63
00:06:30,017 --> 00:06:34,055
probability, the return could be this
value or smaller, right?

64
00:06:34,055 --> 00:06:39,081
So, the five percent quantile is telling
you the probability of loss in the left

65
00:06:39,081 --> 00:06:47,004
tail of the distribution.
So here, the example, we want to compute

66
00:06:50,060 --> 00:06:59,060
the five percent value at risk.
So, this return quantile is a rate of

67
00:06:59,060 --> 00:07:03,063
return.
But valiant risk is typically reported as

68
00:07:03,063 --> 00:07:07,091
a dollar loss.
So, in order to get the dollar loss, we

69
00:07:07,091 --> 00:07:13,042
take the return quantile and multiply it
by our initial investment.

70
00:07:13,042 --> 00:07:19,075
So, if you have an initial investment of,
say, a $100,000, then our dollar value at

71
00:07:19,075 --> 00:07:23,087
risk is the return quantile multiplied by
$100,000.

72
00:07:23,087 --> 00:07:27,081
So, if W NOT is the initial dollar
investment.

73
00:07:30,051 --> 00:07:37,989
Then, the value at risk at five percent
probability is equal to the five percent

74
00:07:38,000 --> 00:07:43,013
quantile of the return distribution times
W NOT.

75
00:07:46,019 --> 00:07:49,016
Now, this, in general, is a negative
number, right?

76
00:07:49,016 --> 00:07:53,000
Because the return, the left tail return
quantile is negative.

77
00:07:53,000 --> 00:07:57,010
But, by convention, value at risk is
recorded as a positive number.

78
00:07:57,010 --> 00:07:59,093
So, it's, when you say it's a loss, I lose
a $1,000.

79
00:07:59,093 --> 00:08:04,072
So, typically, when you report value at
risk, you take this, this value, and you

80
00:08:04,072 --> 00:08:11,058
take the absolute value of it.
And so, the absolute value is to, to give

81
00:08:11,058 --> 00:08:20,044
you the a positive dollar loss.
So, this is a dollar loss value, alright?

82
00:08:20,044 --> 00:08:31,245
So, if we think of distribution for our
losses, then, so, if this Q times, or

83
00:08:31,245 --> 00:08:46,794
sorry, if it's the return times W, so our
value at risk here is, is just the five

84
00:08:46,794 --> 00:08:53,661
percent quantile of the distribution for
the return times our initial investment,

85
00:08:53,661 --> 00:09:00,466
okay?
So, that's that again, that's value at

86
00:09:00,466 --> 00:09:08,022
risk.
And then, we have the case if so, the

87
00:09:08,022 --> 00:09:13,072
previous example was if we define the
return distribution was normal, and we had

88
00:09:13,072 --> 00:09:18,005
a simple return.
But we know that the normal distribution

89
00:09:18,005 --> 00:09:23,076
for simple returns could be problematic.
So, we often use a normal distribution for

90
00:09:23,076 --> 00:09:28,079
the continuously compounded return.
So then, we can if the continuously

91
00:09:28,079 --> 00:09:40,294
compounded return is normal, so RT, say R
is the continuously compounded return, and

92
00:09:40,294 --> 00:09:44,095
that's equal to the logarithm of one plus
the simple return.

93
00:09:44,095 --> 00:09:50,075
And that means, the simple return is E to
the continuously compounded return minus

94
00:09:50,075 --> 00:09:53,094
one.
And so here, the, this return is normal.

95
00:09:55,024 --> 00:10:06,031
Then, one + r is log normal, okay?
So, the distribution for the continuously

96
00:10:06,031 --> 00:10:11,097
compounded return is symmetric, but the
distribution for one plus the simple

97
00:10:11,097 --> 00:10:16,022
return is slightly asymmetric.
This has a long right tail.

98
00:10:16,022 --> 00:10:21,036
So, we can now say, compute the value at
risk based on this assumption.

99
00:10:21,036 --> 00:10:26,042
So, again, the steps are we compute the,
say, the five percent quantile for the

100
00:10:26,042 --> 00:10:40,045
continuously compounded return.
Sorry, this would be and then we convert

101
00:10:40,045 --> 00:10:49,010
this to the quantile for the simple
return, so that's E to the Q, little r

102
00:10:49,010 --> 00:10:55,440
minus one.
And so, that would be E^Qr plus sigma r

103
00:10:55,440 --> 00:11:03,398
times z.05 minus one.
So here, we have the quantile for

104
00:11:03,398 --> 00:11:08,250
continuously compounded return.
We turn that into a quantile for the

105
00:11:08,250 --> 00:11:13,987
simple return and then we compute the
value at risk based on the simple return.

106
00:11:13,987 --> 00:11:18,622
So, the next step is our value risk is
then our five percent quantile for the

107
00:11:18,622 --> 00:11:24,107
simple return multiplied by our initial
investment and we take the absolute value.

108
00:11:24,107 --> 00:11:29,524
Now, this number is going to be different
than the number we would get if we assume

109
00:11:29,524 --> 00:11:34,490
the simple return was normally distributed
because, in this case, the simple return

110
00:11:34,490 --> 00:11:39,258
has essentially one plus a log normal
distribution, and that, so, we have a, a

111
00:11:39,258 --> 00:11:43,711
different distribution and we'll get a
slightly different number.

112
00:11:43,711 --> 00:11:48,082
If this is normal, then one + r is e to,
to a normal and so this is a log normal.

113
00:11:48,082 --> 00:11:51,068
So, one plus the rate of return is a log
normal.

114
00:11:51,068 --> 00:11:54,053
Yeah, okay.
So, this is what we covered last time.

115
00:11:57,012 --> 00:12:03,003
And so, we'll, we'll be doing lots of r
calculations with various models as we go

116
00:12:03,003 --> 00:12:08,063
through, and again, I just wanted to
reiterate the, the computation of r, and

117
00:12:08,063 --> 00:12:13,647
particularly using the quantile that's
computed from this location scale type
