### Video Transcript

The function in the given table is a probability function of a discrete random variable π. Find the variance of π. If necessary, give your answer to two decimal places.

In the table, we see that π can take four values: three, five, seven, and eight. The probability of our random variable taking each of these values is two π΄, five π΄ squared, five π΄ squared, and π΄, respectively. We know that the sum of these probabilities must equal one. And each of the individual probabilities must be greater than or equal to zero and less than or equal to one. This means that two π΄ plus five π΄ squared plus five π΄ squared plus π΄ is equal to one. Collecting like terms, we have 10π΄ squared plus three π΄ is equal to one. We can then subtract one from both sides of our equation so we have a quadratic equation equal to zero. 10π΄ squared plus three π΄ minus one equals zero.

This quadratic can be factored into two sets of parentheses, five π΄ minus one and two π΄ plus one. As the product of these equals zero, either five π΄ minus one equals zero or two π΄ plus one equals zero. Solving the first equation, we get π΄ is equal to one-fifth. And solving the second equation, π΄ is equal to negative one-half. As all the probability values must be greater than or equal to zero and less than or equal to one, π΄ cannot equal negative one-half. We can now substitute π΄ equals one-fifth into the bottom row of our table. Two π΄ is equal to two-fifths, and five π΄ squared is equal to one-fifth. Therefore, the probability of π being equal to three is two-fifths, and the probability of π being equal to five, seven, or eight are all equal to one-fifth.

At this stage, it is worth checking once again that our four values sum to one. Two-fifths plus one-fifth plus one-fifth plus one-fifth is equal to five-fifths, which equals one. We can now move on to calculate the variance of π using the fact that the variance of π is equal to πΈ of π squared minus the πΈ of π all squared, where πΈ of π is the expected value or mean. This formula is also sometimes referred to as the mean of the squares minus the square of the mean. We can calculate the mean by summing the products of π₯ sub π and π of π₯ sub π. πΈ of π is equal to three multiplied by two-fifths plus five multiplied by one-fifth plus seven multiplied by one-fifth plus eight multiplied by one-fifth. This is equal to 26 over five or twenty-six fifths. The mean πΈ of π of the discrete random variable π is twenty-six fifths.

We can calculate the πΈ of π squared in a similar way. This is because if we consider a different random variable π, which takes values which are the square of our random variable π, then the probability of each value of our new variable will be the same as the probability of each π-value for the original variable. πΈ of π squared is therefore equal to three squared multiplied by two-fifths plus five squared multiplied by one-fifth plus seven squared multiplied by one-fifth plus eight squared multiplied by one-fifth. This is equal to 156 over five or one hundred and fifty-six fifths.

We now have values for both the mean and the mean of the squares. The variance of π is therefore equal to 156 over five minus 26 over five squared. This is equal to 104 over 25, which as a decimal is 4.16. As our answer is exact to two decimal places, we donβt need to do any rounding. The variance of the discrete random variable π is 4.16.