No menu items!

How to find Expected Value of X^2 (with Examples)

-

The expected value of x2 can be calculated using the formula,

E(X2) = Σ x2 * p(x).

  1. Here p(x) is the probability mass function for the discrete random variable X.
  2. The sum Σ x2p(x) is taken over all values of Xi from i=1 to n.

The expected value of x2 can be found by summing the product x2p(x) over all possible values of the random variable X.

Example 1:

Suppose that we are given the following probability distribution for a random variable X.

X Probability P(X)
00.12
10.14
20.08
30.16
40.1
50.15
60.25

Notice that the sum of all the probabilities adds up to 1. This is always true of any probability distribution. We calculate E(X2) as follows,

X Probability P(X) X2 X2*P(X)
00.1200
10.1410.14
20.0840.32
30.1691.44
40.1161.6
50.15253.75
60.25369
ΣX2P(X) = 16.25

Since we see that ΣX2P(X) = 16.25 from the above table we conclude that

E(X2) = 16.25

Expected Value of X2 for Continuous Random Variables:

If the variable X is a continuous random variable with pdf f(x) then the expected value of X2 can be calculated using the formula,

E(X2) = ∫ x2f(x)dx

Here the integration is taken over the entire range of X.

Is Expected Value of X2 Equal to Variance?:

Note that the value of E(X2) is not equal to the variance. In fact, variance is given by the formula,

Variance V(X) = E(X2) – [E(X)]2

This means that the variance is obtained by subtracting the square of the expectation from the expected value of X2.

The expected value of X2 is not equal to the expected value of x squared because their difference is equal to the variance.

Therefore they will be equal only if the variance is equal to zero. Hence, they will be equal only if we are dealing with a set of constant data values.

Expected Value of X2 for Normal Distribution:

Suppose that X is a random variable following the normal distribution with parameters µ and σ.

Therefore the mean (expected value) of X is equal to µ, that is, E(X) = µ.

Also, the variance of X is equal to σ2, that is, V(X) = σ2. We use the formula for variance,

Variance V(X) = E(X2) – [E(X)]2

⇒ σ2 = E(X2) – [µ]2

Transposing µ2 to the other side we get the expected value of X2 for the normal distribution.

E(X2) = σ2 + µ2.

Summary
Article Name
How to find Expected Value of X^2 (with Examples)
Description
The expected value of x2 can be calculated using the formula, E(X2) = Σ x2 * p(x). Here p(x) is the probability mass function for the discrete random variable X. The sum Σ x2p(x) is taken over all values of Xi from i=1 to n.

Share this article

Recent posts

Popular categories

Recent comments