### Video Transcript

The function in the given table is a probability function of a discrete random variable π. Given the expected value of π is four, find the values of π and π. When π₯ equals one, π of π₯ equals 0.2. When π₯ equals three, π of π₯ equals 0.2. When π₯ equals π, π of π₯ equals π. When π₯ equals five, π of π₯ is equal to 0.2. And when π₯ equals six, π of π₯ equals 0.3.

As we are dealing with a probability function, we know that the sum of the π of π₯ column is equal to one. The probabilities add up to one. The sum of π of π₯ is 0.2 plus 0.2 plus π plus 0.2 plus 0.3. This must be equal to one. Grouping the numbers gives us π plus 0.9 equals one. And finally, subtracting 0.9 from both sides of the equation gives us a value of π of 0.1.

In order to calculate the value of π, we need to use the fact that the πΈ of π₯, the expected value, is equal to the sum of π₯ multiplied by π of π₯. In this case, the answer of the expected value is four in this question one multiplied by 0.2 plus three multiplied by 0.2 plus π multiplied by 0.1 plus five multiplied by 0.2 plus six multiplied by 0.3 is equal to four.

Simplifying this equation gives us 3.6 plus 0.1π is equal to four. This means that 0.1π is equal to 0.4. And finally, dividing both sides of this equation by 0.1 gives us π is equal to four. Therefore, for the function in the table with an expected value of four, π is equal to 0.1 and π is equal to four.