Probability Distributions

Expected Value Calculator

Use this expected value calculator to find the mean, variance, and standard deviation of a discrete probability distribution. Enter each possible value of X and its probability to get an instant answer with a clear step-by-step solution.

Probability Distribution
Enter each possible value of X and its probability, P(X). The probabilities should add up to 1.
X Value Probability, P(X) Remove

How to Use the Expected Value Calculator

This calculator helps you find the expected value, variance, and standard deviation of a discrete probability distribution. To use the calculator:

  1. Enter each possible value of the random variable, X.
  2. Enter the corresponding probability, P(X), for each value. If your probability distribution contains additional outcomes, click the “add row” button and enter those values.
  3. Click Calculate.

The calculator checks whether the entered data is from a valid probability distribution and instantly returns the expected value, E(X), the variance, and standard deviation of the distribution. It also provides a clear, step-by-step solution, showing you exactly how these values were computed for your data.

Tip. Always make sure all probabilities are between 0 and 1 and add up to 1.

What Is Expected Value?

The expected value of a discrete random variable is the long-run average value you would expect if the random experiment were repeated many times. It is also the mean of a probability distribution and may be written as: E(X) = μ

For example, suppose X represents the number of customers who arrive during a particular time interval. The expected value tells you the average number of customers you would expect over many similar intervals.

An expected value need not be one of the possible values of X. For example, if E(X) = 2.4, this does not mean that exactly 2.4 events can occur. It means that the long-run average approaches 2.4.

Expected Value Formula

For a discrete random variable, the expected value formula is: E(X) = ∑x. P(X)

Where:

  • E(X) is the expected value or mean
  • x is a possible value of the random variable
  • P(x) is the probability of that value occurring. It can also be written as P(X=x)

In expanded form, the expected value formula is: E(X) = x1.P(x1) + x2.P(x2) + … + xnP(xn).

In other words, to find the expected value of a discrete random variable, multiply each possible value by its probability and then add the products.

Requirements for a Valid Probability Distribution

Before calculating the expected value, check that the values of P(X) form a valid discrete probability distribution. For a valid probability distribution function, these two conditions must be satisfied:

  1. Each probability must be between 0 and 1: 0 ≤ P(X) ≤ 1
  2. All probabilities must add up to 1: ΣP(X) = 1

With our expected value calculator, you don’t have to do this manually. The calculator automatically performs this check before calculating the expected value.

How to Calculate Expected Value

To calculate the expected value of a discrete probability distribution manually, follow these steps:

  1. Check that the probabilities add up to 1.
  2. Multiply each value of X by its corresponding probability and add them

Example 1: Find the Expected Value of a Probability Distribution

A college statistics department records the number of students who arrive late to a particular lecture. Based on previous classes, the probability distribution is shown in the table below.

Number Late, XP(X)
00.10
10.25
20.35
30.20
40.10

Find the expected number of students who arrive late.

Solution

To find the expected value for the distribution by hand, follow these steps:

Step 1: Check that the probabilities add up to 1.

We need to sum the values in the P(x) column. This gives:

ΣP(X) = 0.10 + 0.25 + 0.35 + 0.20 + 0.10

= 1

Therefore, this is a valid probability distribution.

Step 2: Multiply each value by its probability and add them

Multiplying each value by its probability and summing them gives the expected value.

In other words, E(X) = ∑x.P(X)

Substituting the values into the formula, we get:

E(X) = (0 × 0.10) + (1 × 0.25) + (2 × 0.35) + (3 × 0.20) + (4 × 0.10)

= 0 + 0.25 + 0.70 + 0.60 + 0.40

= 1.95

Therefore, E(X) = 1.95

This implies that the expected number of students arriving late is 1.95 students per class.

Tip. As you can see, finding the expected value is similar to finding the weighted mean, where x values act as the values and probabilities as the weights.

How to Find Variance and Standard Deviation from a Probability Distribution

Once the expected value is known, we can also measure how much the possible values tend to vary around the mean by calculating the variance and standard deviation.

To find the variance of a discrete random variable, we use the formula: Var(X)=E(X2) – [E(X)]2. The standard deviation is the square root of the variance. To help you understand the concept, let’s walk through an example.

Example 2: Find the Mean, Variance, and Standard Deviation

A university technology help desk records the number of support requests received during a 30-minute period. The probability distribution is as shown below.

Number of Requests, XP(X)
00.15
10.35
20.30
30.20

Find the expected value (mean), variance, and standard deviation of X.

Solution

Step 1: Verify it is a valid probability distribution

For a valid probability distribution, the sum of all probabilities should be equal to 1. Summing the probabilities, we get:

ΣP(X) = 0.15 + 0.35 + 0.30 + 0.20

= 1

Therefore, this is a valid probability distribution.

Step 2: Calculate the expected value (mean)

Recall. The expected value formula is: E(X) = ∑x.P(X)

Substituting the values and solving, we get:

E(X) = (0 × 0.15) + (1 × 0.35) + (2 × 0.30) + (3 × 0.20)

= 0 + 0.35 + 0.60 + 0.60

= 1.55

Therefore, E(X) = μ = 1.55

Step 3. Calculate the Variance

By definition, the variance of a discrete random variable is: Var(X)=E(X2) – [E(X)]2.

But we already know E(X) = 1.55 from step 2. We only need to find E(X2)

By definition, E(X²). = ∑x2.P(X)

Substituting the values into the formula, we get:

E(X²) = (0² × 0.15) + (1² × 0.35) + (2² × 0.30) + (3² × 0.20)

= 0 + 0.35 + 1.20 + 1.80

= 3.35

Hence, E(X²) = 3.35

Since we now have both E(X²) and E(X), we can substitute them into the variance formula.

Thus, Var(X) = 3.35- (1.55)2

= 0.9475

Therefore, Var (X) = 0.9475

Step 4: Calculate the standard deviation

By definition, the standard deviation is the square root of the variance.

Therefore, the standard deviation, σ = √0.9475

= 0.9734

This implies that the help desk receives an average of about 1.55 support requests per 30-minute period, with a standard deviation of approximately 0.97 requests.

Frequently Asked Questions

What is an expected value calculator?

An expected value calculator is an online tool that finds the mean of a discrete random variable. To use the calculator, enter the possible values of X and their probabilities to get the expected value (mean), variance, and standard deviation of the probability distribution.

What is the formula for expected value?

For a discrete random variable, the expected value formula is: E(X) = Σx.P(x)

How do you calculate expected value?

To calculate expected value, multiply each possible outcome by its probability of occurring, then add all those products together.

Is expected value the same as mean?

Yes. For a probability distribution, the expected value is the theoretical mean of the random variable. Therefore, E(X) = μ

What is the formula for finding the variance of a discrete random variable?

The variance of a discrete random variable is defined as the expected value of the squared deviation from its mean. The formula is: Var(X)=E(X2) – [E(X)]2.

Can Expected Value Be Negative?

Yes. An expected value can be negative if the random variable contains negative values and their probabilities produce a negative weighted average. This often occurs when X represents quantities such as net gain or loss.

Cite

Choose APA, MLA, Chicago, or Harvard, then copy the citation.

Mburu, J.. (2026, September 4). Expected Value Calculator. StatCalc.net. Retrieved September 11, 2026, from https://statcalc.net/expected-value-calculator/

Joseph Mburu

About This Calculator

Prepared by Joseph Mburu · Updated on

Joseph is an applied statistician and data analyst with over 6 years of experience helping students, researchers, and professionals solve statistics and data analysis problems. He holds a degree in Applied Statistics and a Master’s degree in Data…

We aim to keep our calculators accurate, easy to use, and helpful for learning. Always check that your inputs match the assumptions of the method you are using.