How do you find the mean of the random variable x?

X= 0,1,2,3
P(x) = 0.15, 0.35, 0.45, 0.05

What is the variance and standard deviation of the random variable x?
What is the standard deviation of the random variable x?

1 Answer
Feb 5, 2017

Mean: μ=1.4
Variance: σ2=0.64
Standard deviation: σ=0.8

Explanation:

We are given that X could take on the values {0,1,2,3} with respective probabilities {0.15,0.35,0.45,0.05}. Since X is discrete, we can imagine X as a 4-sided die that's been weighted so that it lands on "0" 15% of the time, "1" 35% of the time, etc.

The question is, when we roll this die once, what value should we expect to get? Or perhaps, if we roll the die a huge number of times, what should the average value of all those rolls be?

Well, of the 100% of the rolls, 15% should be "0", 35% should be "1", 45% should be "2", and 5% should be "3". If we add all these together, we'll have what's known as a weighted average.

In fact, if we placed these relative weights at their matching points on a number line, the point that would "balance the scale" is the mean that we seek.

This is a good way to interpret the mean of a discrete random variable. Mathematically, the mean μ is the sum of all the possible values, weighted by their probabilities. As a formula, this is:

μ=E[X]=all x[xP(X=x)]

In our case, this works out to be:

μ=[0P(0)]+[1P(1)]+[2P(2)]+[3P(3)]
μ=(0)(0.15)+(1)(0.35)+(2)(0.45)+(3)(0.05)
μ=       0       +    0.35    +     0.9     +    0.15
μ=1.4

So, over a large number of rolls, we would expect the average roll value to be μ=1.4.

The variance is a measure of the "spread" of X. Going back to our "balanced number line" idea, if we moved our weights out from our "centre of gravity" μ so that they are twice as far away, μ itself wouldn't change, but the variance would increase, by a factor of 4.

That's because the variance σ2 of a random variable is the average squared distance between each possible value and μ. (We square the distances so that they're all positive.) As a formula, this is:

σ2=Var(X)=E[(Xμ)2]

Using a bit of algebra and probability theory, this becomes

σ2=E[X2]μ2
σ2=all xx2P(X=x) μ2

For this problem, we get

σ2=[02P(0)]+[12P(1)]+[22P(2)]
σ2=+[32P(3)] 1.42
σ2=(0)(0.15)+(1)(0.35)+(4)(0.45)+(9)(0.05)
σ2=1.96
σ2=0.64

So the average squared distance between each possible X value and μ is σ2=0.64.

Standard deviation is easy—it's just the square root of the variance. But, why bother with it if it's pretty much the same? Because the units of σ2 are the square of the units of X. If X measures time, for example, its variance is in units of (time)2, which really doesn't help us if we're trying to establish a "margin of error".

That's where standard deviation comes in. The standard deviation σ of X is a measure of how far from μ we should expect X to be. It's simply

σ=σ2

For this problem, that works out to be

σ=0.64=0.8

So every time we pick an X, the expected distance between μ and that X is σ=0.8. And since σ is in the same "units" as X, it's much more easy to use to help us construct a margin of error. (See: confidence intervals.)