We already looked at finding the mean in the section on averages. Random variables also have means but their means are not calculated by simply adding up the different variables.
The mean of a random variable is more commonly referred to as its Expected Value, i.e. the value you expect to obtain should you carry out some experiment whose outcomes are represented by the random variable.
The expected value of a random variable X is denoted by
Given that the random variable X is discrete and has a probability distribution f(x), the expected value of the random variable is given by:
Given that the random variable X is continuous and has a probability distribution f(x), the expected value of the random variable is given by:
The probability distribution of X, the number of red cars John meets on his way to work each morning, is given by the following table:
Find the number of red cars that John expects to run into each morning on his way to work.
This question is asking us to find the average number of red cars that John runs into on his way to work. What makes this different from an ordinary mean question is that the odds (probability) of running into a given number of cars are not the same.
Since X is a discrete random variable, the expected value is given by:
Although you wouldn't expect to run into 0.88 cars, let's pretend that the above is multiplied by 100 to get the actual number of cars that John comes across on his way to work.
A certain software company uses a certain software to check for errors on any of the programs it builds and then discards the software if the errors found exceed a certain number. Given that the number of errors found is represented by a random variable X whose density function is given by
Find the average number of errors the company expects to find in a given program.
The random variable X is given as a continuous random variable, thus its expected value can be found as follows:
The company should expect to find approximately 14.93 errors.
In some cases, an event is represented by a function of the random variable which we refer to as g(X). To find the expected value of this event, we find substitute the function for the variable in the expectation formula, i.e.
For a discrete variable X:
For a continuous random variable X:
X is a random variable given by the following probability distribution:
Given that g(X) = (x2 + 2), find E[g(X)]
For a discrete random variable X, the expected value of an arbitrary function is given by
Given that X is a continuous random variable whose PDF is given by
find E[g(X)] given that g(X) = 3x2
For a continuous random variable, the expected value of an arbitrary function of the random variable g(X) is given by
For a pair of random variables X and Y with a joint probability distribution f(x,y), the expected value can be found by use of an arbitrary function of the random variables g(X,Y) such that
Given a pair of discrete random variables X and Y whose joint probability distribution function is given by the table below;
Find the expected value of the function g(X,Y) given that
For a pair of discrete random variables, the joint probability distribution is given by:
Given the random variables X and Y and the function g(X,Y) = XY, find E[G(X,Y)] if the joint density function is given by;
The expected value is given by