Probability density mean and distribution
This article is a continuation from the previous random variables article. This article covers mean and variance of a probability density function.
First we shall discuss a few key points before actually looking at some examples. We shall start with the mean. You may know that the mean for a discrete distribution is;
[IMAGE]
For the mean of a continuous distribution we simply replace ∑ with;
[IMAGE]
…and p(x) by f(x)dx, therefore for the mean of probability density function we get;
[IMAGE]
For the variance we consider the variance of a discrete distribution;
[IMAGE]
For the variance of a continuous distribution again we replace ∑ with;
[IMAGE]
…and p(x) with f(x)dx.
So the variance of a probability density function is;
[IMAGE]
You may have noticed from the equation above that E(x) ² is;
[IMAGE]
Now we shall look at some examples;
Example
Consider a random variable Y having a probability density function;
[IMAGE]
In this example we’re going to find E(Y), Var(Y), E(2Y-3) and Var(2Y-3). We shall start with E(Y); As we saw above;
[IMAGE]
Here;
[IMAGE]
So we get;
[IMAGE]
We shall now find the variance Var(Y); Using the variance formula;
[IMAGE]
We have already found µ (mean) above. We need to form an expression for x²f(x) for the formula as we did above;
[IMAGE]
…so the variance becomes;
[IMAGE]
We shall find E(2Y – 3), In discrete distribution we use saw that;
[IMAGE]
The formula can also apply to the continuous variables. So we have;
[IMAGE]
For E(2Y – 3) we do the same to get;
[IMAGE]
Example
In this example suppose a random variable X has probability density function;
[IMAGE]
The sketch of the p.d.f will look like the following;
[IMAGE]
We can actually find E(X) from the graph. E(X) is the line of symmetry. This has been shown above. Therefore;
[IMAGE]
How about P(X > µ); We’re trying to find P(X > E(µ)) so we have;
[IMAGE]
Example
In this example suppose the random variable X has probability density function;
[IMAGE]
Let us find E(X) and Var(X).
For E(X); We could use the sketch of the p.d.f shown below;
[IMAGE]
However the graph above shows us that it is not symmetrical, in this case we will need to integrate to find E(X) as follows;
[IMAGE]
For Var(X);
[IMAGE]