Achievable logoAchievable logo
FE Mechanical
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
1. Mathematics
2. Probability & statistics
2.1 Sets & counting
2.2 Laws of probability
2.3 Probability distributions
2.4 Expected value & dispersion
2.5 Common probability distributions
2.6 Hypothesis testing, Z-test & t-test
3. Ethics & professional practice
4. Engineering economics
5. Electricity & magnetism
6. Statics
7. sandbox
Example
Achievable logoAchievable logo
2.4 Expected value & dispersion
FE Mechanical
2. Probability & statistics
Our FE Mechanical course is currently in development and is a work-in-progress.

Expected value & dispersion

4 min read
Font
Discuss
Share
Feedback

Expected value of a random variable

The expected value E[X] of a random variable X is:

  • For discrete X:

E[X]=all x∑​x⋅p(x)

  • For continuous X:

E[X]=μ=∫−∞∞​x⋅f(x)dx

In other words, E(X) is the arithmetic mean (average) of the values of X weighted by their respective probabilities, providing a sense of the “typical” value of X.

Properties of the expected value function for random variables X and Y are arbitrary fixed constants a and b include:

  • E[aX+b]=aE[X]+b
  • E[X+Y]=E[X]+E[Y]
  • E[XY]=E[X]⋅E[Y] (if X and Y are independent)

Note that in statistics, mathematicians distinguish between the population mean (μ, the mean of the entire target population) and the sample mean (xˉ, the mean of just a sample of the target population).

Median

Another measure of the “typical” value of random variables is the median, which is the middle value when data are ordered:

  • For discrete random variable X:
    • For odd n: median = value at position 2n+1​
    • For even n: median = average of values at positions 2n​ and 2n​+1
  • For continuous random variable X with, the median m is the value such that

∫−∞m​f(x)dx=∫m+∞​f(x)dx

The main advantages of considering the median rather than the expected value (mean) of a distribution is that the median is resistant to outliers and is better representative of typical values for skewed distributions. For example, demographers and economists frequently report the median household income in a society, rather than the mean household income, which may be skewed by a small number of very wealthy families.

Mode

The mode is the most frequently occurring value. A distribution may be unimodal (a single mode), bimodal (two modal values), or multimodal (several modal values).

Dispersion, range, variance & standard deviation

Measures of dispersion describe the spread or variability of data. The three most common are:

  • Range
  • Variance
  • Standard deviation

The range of a data set or a probability distribution is the distance between the lowest value and the highest value:

Range=Maximum−Minimum

The range is a simple measure of dispersion, but it is highly sensitive to outliers.

In contrast, the variance and standard deviation of a random variable X provide more nuanced measures of how spread out the various values of $X are:

The variance of a random variable is:

var(X)=E[(X−E(X))2]=E[X2]−(E[X])2

In other words, the variance is the expected value of the square difference between the random variable X and the expected value of X.

Properties of variance function for random variables X and Y are arbitrary fixed constants a and b include:

  • var(aX+b)=a2Var(X)
  • Var(X+Y)=Var(X)+Var(Y) (if X and Y are independent)

Note that in statistics, mathematicians distinguish between the population variance (σ2), the variance of the entire target population,

σ2=N1​i=1∑N​(xi​−μ)2,

and the sample variance (s2), the variance of just a sample of the target population,

s2=n−11​i=1∑n​(xi​−xˉ)2.

Note: We divide by n−1 (not n) to get an unbiased estimator.

Standard deviation

The standard deviation of a random variable is:

σ=var(X)​

The standard deviation thus represents the “typical” (root mean square) distance of random variable X from its mean. The standard deviation has the same units as the original data, making it more interpretable than variance.

Expected value of a random variable

  • Weighted average of values (mean), using probabilities
  • Discrete: E[X]=∑x⋅p(x); Continuous: E[X]=∫xf(x)dx
  • Key properties:
    • E[aX+b]=aE[X]+b
    • E[X+Y]=E[X]+E[Y]
    • E[XY]=E[X]E[Y] (if X, Y independent)
  • Distinction: population mean (μ) vs. sample mean (xˉ)

Median

  • Middle value when data ordered
    • Discrete: odd n → middle value; even n → average of two middle values
    • Continuous: ∫−∞m​f(x)dx=∫m+∞​f(x)dx
  • Resistant to outliers; better for skewed distributions

Mode

  • Most frequently occurring value
  • Distributions can be unimodal, bimodal, or multimodal

Dispersion, range, variance & standard deviation

  • Dispersion: describes spread/variability
  • Range: Maximum−Minimum; sensitive to outliers
  • Variance: var(X)=E[(X−E(X))2]=E[X2]−(E[X])2
    • Properties:
      • var(aX+b)=a2Var(X)
      • Var(X+Y)=Var(X)+Var(Y) (if independent)
    • Population variance: σ2=N1​∑(xi​−μ)2
    • Sample variance: s2=n−11​∑(xi​−xˉ)2 (unbiased estimator)

Standard deviation

  • σ=var(X)​
  • Typical distance from mean; same units as original data
Previous
Next  | 2.5 Common probability distributions
All rights reserved ©2016 - 2026 Achievable, Inc.

Expected value & dispersion

Expected value of a random variable

The expected value E[X] of a random variable X is:

  • For discrete X:

E[X]=all x∑​x⋅p(x)

  • For continuous X:

E[X]=μ=∫−∞∞​x⋅f(x)dx

In other words, E(X) is the arithmetic mean (average) of the values of X weighted by their respective probabilities, providing a sense of the “typical” value of X.

Properties of the expected value function for random variables X and Y are arbitrary fixed constants a and b include:

  • E[aX+b]=aE[X]+b
  • E[X+Y]=E[X]+E[Y]
  • E[XY]=E[X]⋅E[Y] (if X and Y are independent)

Note that in statistics, mathematicians distinguish between the population mean (μ, the mean of the entire target population) and the sample mean (xˉ, the mean of just a sample of the target population).

Median

Another measure of the “typical” value of random variables is the median, which is the middle value when data are ordered:

  • For discrete random variable X:
    • For odd n: median = value at position 2n+1​
    • For even n: median = average of values at positions 2n​ and 2n​+1
  • For continuous random variable X with, the median m is the value such that

∫−∞m​f(x)dx=∫m+∞​f(x)dx

The main advantages of considering the median rather than the expected value (mean) of a distribution is that the median is resistant to outliers and is better representative of typical values for skewed distributions. For example, demographers and economists frequently report the median household income in a society, rather than the mean household income, which may be skewed by a small number of very wealthy families.

Mode

The mode is the most frequently occurring value. A distribution may be unimodal (a single mode), bimodal (two modal values), or multimodal (several modal values).

Dispersion, range, variance & standard deviation

Measures of dispersion describe the spread or variability of data. The three most common are:

  • Range
  • Variance
  • Standard deviation

The range of a data set or a probability distribution is the distance between the lowest value and the highest value:

Range=Maximum−Minimum

The range is a simple measure of dispersion, but it is highly sensitive to outliers.

In contrast, the variance and standard deviation of a random variable X provide more nuanced measures of how spread out the various values of $X are:

The variance of a random variable is:

var(X)=E[(X−E(X))2]=E[X2]−(E[X])2

In other words, the variance is the expected value of the square difference between the random variable X and the expected value of X.

Properties of variance function for random variables X and Y are arbitrary fixed constants a and b include:

  • var(aX+b)=a2Var(X)
  • Var(X+Y)=Var(X)+Var(Y) (if X and Y are independent)

Note that in statistics, mathematicians distinguish between the population variance (σ2), the variance of the entire target population,

σ2=N1​i=1∑N​(xi​−μ)2,

and the sample variance (s2), the variance of just a sample of the target population,

s2=n−11​i=1∑n​(xi​−xˉ)2.

Note: We divide by n−1 (not n) to get an unbiased estimator.

Standard deviation

The standard deviation of a random variable is:

σ=var(X)​

The standard deviation thus represents the “typical” (root mean square) distance of random variable X from its mean. The standard deviation has the same units as the original data, making it more interpretable than variance.

Key points

Expected value of a random variable

  • Weighted average of values (mean), using probabilities
  • Discrete: E[X]=∑x⋅p(x); Continuous: E[X]=∫xf(x)dx
  • Key properties:
    • E[aX+b]=aE[X]+b
    • E[X+Y]=E[X]+E[Y]
    • E[XY]=E[X]E[Y] (if X, Y independent)
  • Distinction: population mean (μ) vs. sample mean (xˉ)

Median

  • Middle value when data ordered
    • Discrete: odd n → middle value; even n → average of two middle values
    • Continuous: ∫−∞m​f(x)dx=∫m+∞​f(x)dx
  • Resistant to outliers; better for skewed distributions

Mode

  • Most frequently occurring value
  • Distributions can be unimodal, bimodal, or multimodal

Dispersion, range, variance & standard deviation

  • Dispersion: describes spread/variability
  • Range: Maximum−Minimum; sensitive to outliers
  • Variance: var(X)=E[(X−E(X))2]=E[X2]−(E[X])2
    • Properties:
      • var(aX+b)=a2Var(X)
      • Var(X+Y)=Var(X)+Var(Y) (if independent)
    • Population variance: σ2=N1​∑(xi​−μ)2
    • Sample variance: s2=n−11​∑(xi​−xˉ)2 (unbiased estimator)

Standard deviation

  • σ=var(X)​
  • Typical distance from mean; same units as original data

More from Probability & statistics

  • Sets & counting
  • Laws of probability
  • Probability distributions
  • Common probability distributions
  • Hypothesis testing, Z-test & t-test