### Video Transcript

Suppose that π is π continuous random variable with probability density function π of π₯ equals a quarter of π₯ plus π, if π₯ is greater than or equal to zero but less than or equal to two and zero otherwise. Find i) the value of π, and ii) the probability that π is greater than or equal to a half and less than or equal to three over two.

For a continuous random variable, probabilities can be found by calculating the area below the graph of the probability density function π of π₯. In this question, the probability density function π of π₯ is a linear function of π₯. And therefore, a graph of π₯ against π of π₯ will be a straight line. The probability density function is zero outside of the interval zero to two. So, zero and two will be the limits on the π₯-axis.

In part one of the question, weβre asked to work out the value of π which is used here in the definition of π of π₯. To do so, we need to recall that the total area below the graph will be equal to one. Because the sum of all probabilities in a distribution must be one. So, the total area below the straight line is one. Now letβs think about how we can calculate this area.

If we look at this shape, we see that it is a trapezium. So, we need to recall our formula for finding the area of a trapezium. Itβs this, one-half of π plus π multiplied by β, where π and π are the two parallel sides in the trapezium and β is the perpendicular distance between them. Note here that this value of π in the definition of the area of a trapezium is not the same as the π given in the question.

On our π₯-axis, we know that the values are zero and two. So, β, the distance between these values, is two minus zero, which is equal to two, the two parallel sides of this trapezium will be the function π evaluated at each of these π₯-values. So, thatβs π of zero and π of two. To work each of these values out, we need to substitute the π₯-values into the definition of π of π₯.

π of zero is equal to one-quarter of zero plus π. Thatβs just π over four. And π of two is one-quarter of two plus π. Now weβre ready to substitute the relevant values into our formula for the area of a trapezium. First, we have a half the sum of the parallel sides, thatβs one-half multiplied by π over four plus two plus π over four. Then, weβll multiply by the height of the trapezium. Thatβs two. And, remember, we said that this whole area will be equal to one.

We can simplify this equation. We have a half, and then weβre multiplying this by two. A half multiplied by two is equal to one. So, these just cancel one another out, leaving π over four plus two plus π over four is equal to one. These fractions have a common denominator. So, we can add their numerators, giving two π plus two, thatβs π plus two plus π, over four is equal to one. To solve this equation, we first need to multiply both sides by four, giving two π plus two is equal to four. Next, we can subtract two from each side to give two π is equal to two. And finally, divide both sides by two to give π equals one.

So, by recalling that the total area under the graph of a probability density function must be equal to one, we found that the value of π in the definition of this probability density function is one. Now letβs consider part b where weβre asked to find the probability that this random variable π takes a value greater than or equal to one-half but less than or equal to three over two.

This probability will correspond to the area below the graph of π of π₯ between the π₯-values of one-half and three over two. Now this shape is again a trapezium. So, we can apply the same method as we did in part one. This time the value of β is three over two minus one over two, which gives two over two, or just one. The values of π and π will again be the function π of π₯ evaluated at each of these π₯-values. So, theyβll be π of one-half and then π of three over two.

Remember that we now know the value of π. π is equal to one. So, we can substitute this value into the definition of π of π₯. π of one-half then will be a quarter of one-half plus one. One can be thought of as two over two, so one-half plus one, or one-half plus two over two, is three over two. And then, multiplying this by one-quarter gives the value three-eighths. π of three over two will be one-quarter of three over two plus one. Again, if we think of one as two over two, then adding three over two to this gives five over two. And multiplying by one-quarter gives five-eighths.

The area then and the probability that weβre looking to calculate is equal to one-half multiplied by three-eighths plus five-eighths multiplied by one. Three-eighths plus five-eighths is eight-eighths, or just one. So, we have one-half multiplied by one multiplied by one, which is just equal to one-half. So, the required probability, the probability that π is greater than a half but less than or equal to three over two, is one-half.

Now there is actually another method that we could use. And this method is a bit more general. It would help if the graph of the probability density function π of π₯ was not a straight line. In general, the area below a graph can be found by integrating the equation of that graph. So, thatβs π of π₯ between the limits. We could, therefore, find the probability in part two of this question by integrating π of π₯ between limits of one-half and three over two.

We could also have answered part one of this question in the same way by integrating π of π₯ between zero and two and setting this integral equal to one. If youβre familiar with integration, you can, of course, perform this integration yourself and confirm that it does indeed give the same answers. Our answer to part one is that π is equal to one. And our answer to part two is that the probability that π is greater than or equal to a half but less than or equal to three over two is one-half.