### Video Transcript

In this video, we will learn how to
calculate the standard deviation of discrete random variables.

Standard deviation of a random
variable is a measure of spread of the probability distribution. Given a random variable π, the
standard deviation is denoted π or π sub π. Its square, which is called the
variance, or var of π, is defined as follows: π squared, or the variance of π, is
equal to the πΈ of π minus πΈ of π all squared, where πΈ of π denotes the
expected value of the random variable π. The standard deviation π is
therefore obtained by taking the positive square root of the variance.

Looking at this formula a little
closer, we see that the variance of π is the average value of the square distance
of data points from the expected value. In short, the standard deviation
represents how far, on average, outcomes of the random variable are from the
expected value. This can be demonstrated
graphically. In the picture shown, the
probability distribution of the random variable π is given where πΈ of π denotes
the expected value or mean and π denotes the standard deviation. This formula is cumbersome to use
in practice, so we introduce a variant of this formula, which we will see
shortly. Since this alternative formula is
simpler to use, we will use it instead as the definition.

Given a random variable π, the
variance of π is given by var of π is equal to πΈ of π squared minus πΈ of π all
squared where πΈ of π is the expected value or mean. The standard deviation π or π sub
π can therefore be calculated by square rooting this variance of π. The process of computing the
standard deviation of a discrete random variable can therefore be summarized in four
steps.

Step one is to compute πΈ of
π. For any discrete random variable
π, taking values π₯ sub one, π₯ sub two, and so on up to π₯ sub π, the expected
value is equal to π₯ sub one multiplied by the probability that π equals π₯ sub one
plus π₯ sub two multiplied by the probability that π equals π₯ sub two and so on
all the way up to π₯ sub π multiplied by the probability that π equals π₯ sub
π. Our second step is to compute πΈ of
π squared. This can be calculated in a similar
way as πΈ of π, except we use π₯ sub one squared, π₯ sub two squared, and so
on. We square the individual π₯-values
before multiplying them by the corresponding probabilities.

Our third step is to compute the
variance of π. We do this using the formula
above. The variance of π is equal to πΈ
of π squared minus πΈ of π all squared. Finally, weβre in a position to
compute the standard deviation π by square rooting the variance of π. We will now look at some examples
where we need to follow these four steps in different contexts.

The function in the table is a
probability function of a discrete random variable π find the standard deviation of
π. Give your answer to two decimal
places.

In order to answer this question,
we recall the four-step process used to obtain the standard deviation π. Firstly, we compute the mean or
expected value πΈ of π. Secondly, we compute πΈ of π
squared. Thirdly, we compute the variance or
var of π. This is equal to the πΈ of π
squared minus the πΈ of π all squared. Our fourth and final step is to
compute the standard deviation π, which we recall is equal to the square root of
the var of π.

Letβs begin by recalling how we
calculate the πΈ of π. We do this by multiplying each
value of π by its corresponding probability and then finding the sum of these
values. We multiply negative five by
one-third. We then add the product of negative
four and one-eighth, negative three and one-quarter, and finally negative one and
seven twenty-fourths. Whilst we could work out each of
the four products individually, typing the whole calculation into our calculator
gives us negative 77 over 24.

Our second step is to calculate πΈ
of π squared. In order to do this, it is worth
adding an extra row to our table to calculate the π squared values. Negative five squared is 25, as
multiplying a negative number by a negative number gives a positive answer. In the same way, squaring negative
four, negative three, and negative one gives us values of 16, nine, and one. We can now repeat the process we
used to calculate πΈ of π. This time, we multiply the π
squared values by their corresponding probabilities. This gives us 25 multiplied by
one-third plus 16 multiplied by one-eighth plus nine multiplied by one-quarter plus
one multiplied by seven twenty-fourths. Once again, we can type this
directly into our calculator, giving us 103 over eight.

The third step of our process is to
calculate the variance or var of π. This is equal to πΈ of π squared
minus πΈ of π all squared. Substituting in the values we have
calculated, we have 103 over eight minus negative 77 over 24 squared. Typing this into our calculator
gives us 1487 over 576. As the standard deviation is the
square root of the variance, we can calculate this by square rooting 1487 over
576. Noting that we need to give our
answer to two decimal places, this is approximately equal to 1.61. The standard deviation of our
function to two decimal places is 1.61.

In our next question, one of the
values of π in our table will be unknown.

The function in the given table is
a probability function of a discrete random variable π. Given that the expected value of π
is 6.5, find the standard deviation of π. Give your answer to two decimal
places.

In this question, we are given the
expected value πΈ of π, which is equal to 6.5. We can use this to help us identify
the unknown parameter π΄. We recall that we can calculate the
expected value by multiplying each of our π-values by the corresponding
probabilities. We then find the sum of all these
values. This means that πΈ of π is equal
to three multiplied by 0.2 plus π΄ multiplied by 0.1 plus six multiplied by 0.1 plus
eight multiplied by 0.6. Simplifying this right-hand side,
we have 0.6 plus 0.1π΄ plus 0.6 plus 4.8. And we know this is equal to
6.5. Subtracting 0.6, 0.6, and 4.8 from
both sides of our equation gives us 0.5 is equal to 0.1π΄. We can then divide both sides of
this equation by 0.1 giving us π΄ is equal to five. The missing value in our table is
five such that the probability that π equals five is 0.1.

Next, we recall that to compute the
standard deviation, we need to follow four steps. Firstly, we compute πΈ of π. Secondly, we compute πΈ of π
squared. Our third step is to compute the
variance or var of π which is equal to πΈ of π squared minus the πΈ of π all
squared. Finally, we can compute the
standard deviation π by square rooting the variance of π.

Clearing some space, we already
know that the expected value or mean πΈ of π is equal to 6.5. We calculate πΈ of π squared in a
similar way to πΈ of π. This is equal to three squared
multiplied by 0.2 plus five squared multiplied by 0.1 plus six squared multiplied by
0.1 plus eight squared multiplied by 0.6. Typing this into our calculator
gives us 46.3. We now have values of both πΈ of π
and πΈ of π squared. The var of π is equal to the πΈ of
π squared minus the πΈ of π all squared. So, in this case, we have 46.3
minus 6.5 squared. This is equal to 4.05. Finally, we can calculate the
standard deviation by square rooting this variance. To two decimal places, this is
equal to 2.01. The standard deviation of the
function in the given table to two decimal places is 2.01.

Before looking at one final
example, we will consider the coefficient of variation. The coefficient of variation,
written πΆ sub π, gives the standard deviation as a percentage of the expected
value. If we let π be a discrete random
variable with mean πΈ of π and standard deviation π sub π, if we assume further
that π is not equal to zero, then the coefficient of variation πΆ sub π is given
by πΆ sub π of π is equal to π sub π divided by πΈ of π multiplied by 100. We assume that π is not equal to
zero as πΆ sub π is not defined when the mean equals zero. As the standard deviation is always
positive, the coefficient of variation will be negative when πΈ of π is negative
and positive when πΈ of π is positive.

It is important to note that while
the standard deviation is an absolute measure of spread, the coefficient of
variation is a relative measure of spread. This is useful as when we deal with
variables with larger expected values, theyβre more likely to be more spread
out. It therefore makes sense to use a
relative measure when comparing spreads. The coefficient of variation is
also useful when comparing data sets with different means and standard
deviations. The coefficient of variation
therefore represents how far on average data points are from the mean relative to
the size of the mean. We will now look at an example
where we need to calculate this coefficient of variation.

Work out the coefficient of
variation of the random variable π whose probability distribution is shown. Give your answer to the nearest
percent.

We know that our figure is a
probability distribution graph. And we recall that the coefficient
of variation, written πΆ sub π, is equal to the standard deviation π divided by
the expected value or mean πΈ of π multiplied by 100 percent. This coefficient of variation
represents how far on average data points are from the mean relative to the size of
the mean. We will begin by calculating the
mean or expected value πΈ of π. We do this by multiplying each of
our π-values by the corresponding π of π₯ value or probability. We then find the sum of all these
products.

From the graph, we begin by
multiplying one by one-tenth. Next, we multiply three by
two-tenths. We also need to multiply five by
three-tenths and seven by four-tenths. Calculating each of these products
gives us 0.1, 0.6, 1.5, and 2.8. πΈ of π is therefore equal to
five. As we also need to calculate the
standard deviation, our next step is to calculate πΈ of π squared. This is equal to one squared
multiplied by one-tenth plus three squared multiplied by two-tenths plus five
squared multiplied by three-tenths plus seven squared multiplied by four-tenths. This is equal to 0.1 plus 1.8 plus
7.5 plus 19.6. πΈ of π squared is therefore equal
to 29.

Next, we recall that the variance
or var of π is equal to πΈ of π squared minus πΈ of π all squared. In this question, we have 29 minus
five squared. This is equal to four. Clearing some space, we have the
following three values. We know that the standard deviation
π is equal to the positive square root of the variance of π. This means that in this question,
the standard deviation is the positive square root of four, which equals two. We can now substitute our values
into the formula for the coefficient of variation. We need to multiply two-fifths or
0.4 by 100. This is equal to 40 percent. The coefficient of variation of the
random variable π shown in the graph is 40 percent.

We will now finish this video by
summarizing the key points. Given the probability distribution
of a random variable π, we can compute the standard deviation π using the
following steps. (i) Compute the mean or expected
value πΈ of π, (ii) compute πΈ of π squared, (iii) compute the variance, the var,
of π, which is equal to πΈ of π squared minus πΈ of π all squared, and (iv)
compute π the standard deviation by finding the positive square root of the var of
π.

We also saw that the coefficient of
variation, πΆ sub π, represents the standard deviation π as a percentage of πΈ of
π, the expected value, such that πΆ sub π is equal to π divided by πΈ of π
multiplied by 100 percent. We note that standard deviation is
an absolute measure of spread, and the coefficient of variation is a relative
measure of spread.