PracticeVideosBlogFlashcards

2.2 Expected Value, Mean, Variance, and Descriptive Statistics

Key Takeaways

  • Expected value E[X] represents the probability-weighted mean, adhering to linear expectation rules E[aX + b] = aE[X] + b and E[X + Y] = E[X] + E[Y].

  • Population variance sigma^2 = E[X^2] - (E[X])^2 measures dispersion, and for linear operations Var(aX + b) = a^2 * Var(X).

  • Sample variance s^2 = sum(x_i - x_bar)^2 / (n - 1) incorporates Bessel's correction to provide an unbiased estimator of population variance.

  • The standard error of the mean SE = s / sqrt(n) quantifies sample mean variability, while the coefficient of variation CV = (s / x_bar) * 100% measures relative dispersion.

  • For independent random variables, variances always add: Var(aX +/- bY) = a^2 * Var(X) + b^2 * Var(Y).

Last updated: August 2026

2.2 Expected Value, Mean, Variance, and Descriptive Statistics

Descriptive statistics and expectation operators quantify the central location, variability, and shape of engineering datasets. On the FE exam, you must quickly distinguish between population metrics (which divide by NN) and sample metrics (which divide by n−1n - 1), perform expectation algebra on linear combinations of random variables, and calculate standard sample metrics.


1. Expected Value (Mathematical Expectation)

The expected value E[X]E[X] (or population mean μ\mu) is the first moment about the origin representing the long-run average of a random variable.

NCEES Formulas for Expectation

  • Discrete: E[X]=∑ixiP(X=xi)E[X] = \sum_{i} x_i P(X = x_i)
  • Continuous: E[X]=∫−∞∞xf(x)dxE[X] = \int_{-\infty}^{\infty} x f(x) dx
  • Expectation of a Function g(X)g(X): E[g(X)]=∑ig(xi)P(xi)or∫−∞∞g(x)f(x)dxE[g(X)] = \sum_{i} g(x_i) P(x_i) \quad \text{or} \quad \int_{-\infty}^{\infty} g(x) f(x) dx

Algebraic Properties of Expectation

For any constants a,b,ca, b, c and random variables X,YX, Y:

  1. E[c]=cE[c] = c
  2. E[aX+b]=aE[X]+bE[aX + b] = a E[X] + b
  3. E[X+Y]=E[X]+E[Y]E[X + Y] = E[X] + E[Y] (holds whether XX and YY are independent or dependent)
  4. If XX and YY are independent: E[XY]=E[X]E[Y]E[X Y] = E[X] E[Y]
Loading diagram...
Population vs. Sample Descriptive Statistics Workflow

2. Variance, Covariance, and Linear Combinations

Variance measures the second moment about the mean—the expected squared deviation of a random variable from its mean.

NCEES Formulas for Variance and Covariance

Variance: σ2=Var⁡(X)=E[(X−μ)2]=E[X2]−(E[X])2\text{Variance: } \sigma^2 = \operatorname{Var}(X) = E[(X - \mu)^2] = E[X^2] - (E[X])^2 Standard Deviation: σ=Var⁡(X)\text{Standard Deviation: } \sigma = \sqrt{\operatorname{Var}(X)} Covariance: Cov⁡(X,Y)=σXY=E[(X−μX)(Y−μY)]=E[XY]−E[X]E[Y]\text{Covariance: } \operatorname{Cov}(X, Y) = \sigma_{XY} = E[(X - \mu_X)(Y - \mu_Y)] = E[XY] - E[X]E[Y] Correlation Coefficient: ρXY=Cov⁡(X,Y)σXσY,−1≤ρXY≤1\text{Correlation Coefficient: } \rho_{XY} = \frac{\operatorname{Cov}(X, Y)}{\sigma_X \sigma_Y}, \quad -1 \le \rho_{XY} \le 1

Properties of Variance

  1. Var⁡(c)=0\operatorname{Var}(c) = 0
  2. Var⁡(aX+b)=a2Var⁡(X)\operatorname{Var}(aX + b) = a^2 \operatorname{Var}(X)
  3. Var⁡(aX+bY)=a2Var⁡(X)+b2Var⁡(Y)+2abCov⁡(X,Y)\operatorname{Var}(aX + bY) = a^2 \operatorname{Var}(X) + b^2 \operatorname{Var}(Y) + 2ab \operatorname{Cov}(X, Y)
  4. Var⁡(aX−bY)=a2Var⁡(X)+b2Var⁡(Y)−2abCov⁡(X,Y)\operatorname{Var}(aX - bY) = a^2 \operatorname{Var}(X) + b^2 \operatorname{Var}(Y) - 2ab \operatorname{Cov}(X, Y)

CRITICAL NCEES RULE: If XX and YY are independent, Cov⁡(X,Y)=0\operatorname{Cov}(X, Y) = 0. Therefore: Var⁡(aX+bY)=a2Var⁡(X)+b2Var⁡(Y)\operatorname{Var}(aX + bY) = a^2 \operatorname{Var}(X) + b^2 \operatorname{Var}(Y) Var⁡(aX−bY)=a2Var⁡(X)+b2Var⁡(Y)\operatorname{Var}(aX - bY) = a^2 \operatorname{Var}(X) + b^2 \operatorname{Var}(Y) Notice that for independent variables, variances ALWAYS ADD, even when taking the difference of two variables!

Worked Engineering Example: Mechanical Assembly Tolerance Stack-Up

Problem: An assembly shaft diameter DD is normally distributed with μD=25.00 mm\mu_D = 25.00\text{ mm} and variance σD2=0.04 mm2\sigma_D^2 = 0.04\text{ mm}^2. The housing bore BB is normally distributed with μB=25.35 mm\mu_B = 25.35\text{ mm} and variance σB2=0.09 mm2\sigma_B^2 = 0.09\text{ mm}^2. Assuming DD and BB are independent, determine the mean, variance, and standard deviation of the clearance gap C=B−DC = B - D.

Solution: Step 1: Compute Expected Clearance Mean E[C]E[C]: E[C]=E[B−D]=E[B]−E[D]=25.35−25.00=0.35 mmE[C] = E[B - D] = E[B] - E[D] = 25.35 - 25.00 = 0.35\text{ mm}

Step 2: Compute Clearance Variance Var⁡(C)\operatorname{Var}(C): Since BB and DD are independent, Cov⁡(B,D)=0\operatorname{Cov}(B, D) = 0: Var⁡(C)=Var⁡(B−D)=(1)2Var⁡(B)+(−1)2Var⁡(D)=Var⁡(B)+Var⁡(D)\operatorname{Var}(C) = \operatorname{Var}(B - D) = (1)^2 \operatorname{Var}(B) + (-1)^2 \operatorname{Var}(D) = \operatorname{Var}(B) + \operatorname{Var}(D) Var⁡(C)=0.09+0.04=0.13 mm2\operatorname{Var}(C) = 0.09 + 0.04 = 0.13\text{ mm}^2

Step 3: Compute Clearance Standard Deviation σC\sigma_C: σC=0.13=0.3606 mm≈0.361 mm\sigma_C = \sqrt{0.13} = 0.3606\text{ mm} \approx 0.361\text{ mm}

3. Sample Descriptive Statistics

When working with experimental sample data of size nn, sample statistics estimate the true population parameters.

NCEES Formulas for Sample Statistics

  • Sample Mean (Unbiased Estimator of μ\mu): xˉ=1n∑i=1nxi\bar{x} = \frac{1}{n} \sum_{i=1}^n x_i
  • Sample Variance (Unbiased Estimator of σ2\sigma^2): s2=1n−1∑i=1n(xi−xˉ)2=∑i=1nxi2−(∑i=1nxi)2nn−1s^2 = \frac{1}{n - 1} \sum_{i=1}^n (x_i - \bar{x})^2 = \frac{\sum_{i=1}^n x_i^2 - \frac{(\sum_{i=1}^n x_i)^2}{n}}{n - 1} The denominator uses (n−1)(n - 1) degrees of freedom (Bessel's correction) to prevent underestimating population variance.
  • Sample Standard Deviation: s=s2s = \sqrt{s^2}
  • Standard Error of the Mean (SE): σxˉ=sn\sigma_{\bar{x}} = \frac{s}{\sqrt{n}} Quantifies the variability of sample means drawn from the population.
  • Coefficient of Variation (CV): CV=sxˉ×100%CV = \frac{s}{\bar{x}} \times 100\% A dimensionless measure of relative dispersion, ideal for comparing variability across datasets with different units or scales.

4. Worked Engineering Example: Complete Sample Data Analysis

Problem: Five steel core samples are subjected to destructive compression testing. The recorded failure loads (in kN) are: x=30.0,33.0,36.0,39.0,42.0x = \\{30.0, 33.0, 36.0, 39.0, 42.0\\} Calculate the sample mean xˉ\bar{x}, sample variance s2s^2, sample standard deviation ss, standard error of the mean SESE, and coefficient of variation CVCV.

Solution: Step 1: Compute Sample Mean xˉ\bar{x}: ∑xi=30.0+33.0+36.0+39.0+42.0=180.0 kN\sum x_i = 30.0 + 33.0 + 36.0 + 39.0 + 42.0 = 180.0\text{ kN} xˉ=180.05=36.0 kN\bar{x} = \frac{180.0}{5} = 36.0\text{ kN}

Step 2: Compute Sample Variance s2s^2 using squared deviations:

xix_iDeviation (xi−xˉ)(x_i - \bar{x})Squared Deviation (xi−xˉ)2(x_i - \bar{x})^2
30.030.0−36.0=−6.030.0 - 36.0 = -6.036.0
33.033.0−36.0=−3.033.0 - 36.0 = -3.09.0
36.036.0−36.0=0.036.0 - 36.0 = 0.00.0
39.039.0−36.0=3.039.0 - 36.0 = 3.09.0
42.042.0−36.0=6.042.0 - 36.0 = 6.036.0
Sum0.090.0

Apply Bessel's correction with n−1=4n - 1 = 4: s2=90.05−1=90.04=22.50 kN2s^2 = \frac{90.0}{5 - 1} = \frac{90.0}{4} = 22.50\text{ kN}^2

Step 3: Compute Sample Standard Deviation ss: s=22.50=4.7434 kNs = \sqrt{22.50} = 4.7434\text{ kN}

Step 4: Compute Standard Error of the Mean SESE: SE=sn=4.74345=4.74342.23607=2.1213 kNSE = \frac{s}{\sqrt{n}} = \frac{4.7434}{\sqrt{5}} = \frac{4.7434}{2.23607} = 2.1213\text{ kN}

Step 5: Compute Coefficient of Variation CVCV: CV=sxˉ×100%=4.743436.0×100%=13.176%≈13.18%CV = \frac{s}{\bar{x}} \times 100\% = \frac{4.7434}{36.0} \times 100\% = 13.176\% \approx 13.18\%

Comparison Note: If population variance σ2\sigma^2 were computed, the divisor would be N=5N = 5, giving σ2=90.0/5=18.00 kN2\sigma^2 = 90.0 / 5 = 18.00\text{ kN}^2. Using n−1=4n-1 = 4 correctly adjusts for sample bias.

5. Measures of Position and Summary Table

In addition to mean and variance, descriptive statistics includes measures of central tendency and dispersion:

  • Median: The middle value when data is sorted in ascending order (50th percentile).
  • Mode: The most frequently occurring data value.
  • Range: R=xmax−xminR = x_{max} - x_{min}.
  • Interquartile Range (IQR): IQR=Q3−Q1IQR = Q_3 - Q_1 (difference between 75th and 25th percentiles).

Population vs. Sample Statistics Summary Table

Parameter / MetricPopulation Formula (NN)Sample Formula (nn)NCEES Symbol
Meanμ=∑XiN\mu = \frac{\sum X_i}{N}xˉ=∑xin\bar{x} = \frac{\sum x_i}{n}μ\mu vs. xˉ\bar{x}
Varianceσ2=∑(Xi−μ)2N\sigma^2 = \frac{\sum (X_i - \mu)^2}{N}s2=∑(xi−xˉ)2n−1s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1}σ2\sigma^2 vs. s2s^2
Standard Deviationσ=σ2\sigma = \sqrt{\sigma^2}s=s2s = \sqrt{s^2}σ\sigma vs. ss
Standard ErrorσXˉ=σn\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}}SE=snSE = \frac{s}{\sqrt{n}}σxˉ\sigma_{\bar{x}} or SESE
Relative DispersionCV=σμCV = \frac{\sigma}{\mu}CV=sxˉ×100%CV = \frac{s}{\bar{x}} \times 100\%CVCV
Test Your Knowledge

A structural inspection team tests 5 concrete core samples for compressive strength (in MPa): 30.0, 33.0, 36.0, 39.0, and 42.0. What is the sample variance (in MPa^2)?

A

22.50

B

18.00

C

4.74

D

90.00

Test Your Knowledge

An assembly shaft has a diameter X ~ N(mu = 50.0 mm, variance = 0.09 mm^2) and a housing bore has a diameter Y ~ N(mu = 50.4 mm, variance = 0.16 mm^2). Assuming X and Y are independent random variables, what is the standard deviation of the clearance C = Y - X (in mm)?

A

0.07

B

0.35

C

0.25

D

0.50

Test Your Knowledge

A discrete random variable X represents the number of equipment maintenance calls per day with probability distribution: P(0) = 0.40, P(1) = 0.30, P(2) = 0.20, P(3) = 0.10. What is the variance of X?

A

2.00

B

1.40

C

1.00

D

0.80

Test Your Knowledge

A laboratory measures the resistance of 25 resistor samples, finding a sample mean of 100.0 ohms and a sample standard deviation of 4.0 ohms. What is the standard error of the mean (SE) and the coefficient of variation (CV) of this sample?

A

SE = 0.80 ohms, CV = 25.0%

B

SE = 0.16 ohms, CV = 0.04%

C

SE = 4.00 ohms, CV = 4.00%

D

SE = 0.80 ohms, CV = 4.00%

Sections you finish are checked off in the contents.