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).
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 $N$) and sample metrics (which divide by $n - 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]$ (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:
- Continuous:
- Expectation of a Function $g(X)$:
Algebraic Properties of Expectation
For any constants $a, b, c$ and random variables $X, Y$:
- $E[c] = c$
- $E[aX + b] = a E[X] + b$
- $E[X + Y] = E[X] + E[Y]$ (holds whether $X$ and $Y$ are independent or dependent)
- If $X$ and $Y$ are independent: $E[X Y] = E[X] E[Y]$
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
Properties of Variance
- $Var(c) = 0$
- $Var(aX + b) = a^2 Var(X)$
- $Var(aX + bY) = a^2 Var(X) + b^2 Var(Y) + 2ab Cov(X, Y)$
- $Var(aX - bY) = a^2 Var(X) + b^2 Var(Y) - 2ab Cov(X, Y)$
CRITICAL NCEES RULE: If $X$ and $Y$ are independent, $Cov(X, Y) = 0$. Therefore: 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 $D$ is normally distributed with $\mu_D = 25.00\text{ mm}$ and variance $\sigma_D^2 = 0.04\text{ mm}^2$. The housing bore $B$ is normally distributed with $\mu_B = 25.35\text{ mm}$ and variance $\sigma_B^2 = 0.09\text{ mm}^2$. Assuming $D$ and $B$ are independent, determine the mean, variance, and standard deviation of the clearance gap $C = B - D$.
Solution: Step 1: Compute Expected Clearance Mean $E[C]$:
Step 2: Compute Clearance Variance $Var(C)$: Since $B$ and $D$ are independent, $Cov(B, D) = 0$:
Step 3: Compute Clearance Standard Deviation $\sigma_C$:
3. Sample Descriptive Statistics
When working with experimental sample data of size $n$, sample statistics estimate the true population parameters.
NCEES Formulas for Sample Statistics
- Sample Mean (Unbiased Estimator of $\mu$):
- Sample Variance (Unbiased Estimator of $\sigma^2$): The denominator uses $(n - 1)$ degrees of freedom (Bessel's correction) to prevent underestimating population variance.
- Sample Standard Deviation:
- Standard Error of the Mean (SE): Quantifies the variability of sample means drawn from the population.
- Coefficient of Variation (CV): 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: Calculate the sample mean $\bar{x}$, sample variance $s^2$, sample standard deviation $s$, standard error of the mean $SE$, and coefficient of variation $CV$.
Solution: Step 1: Compute Sample Mean $\bar{x}$:
Step 2: Compute Sample Variance $s^2$ using squared deviations:
$x_i$ Deviation $(x_i - \bar{x})$ Squared Deviation $(x_i - \bar{x})^2$ 30.0 $30.0 - 36.0 = -6.0$ 36.0 33.0 $33.0 - 36.0 = -3.0$ 9.0 36.0 $36.0 - 36.0 = 0.0$ 0.0 39.0 $39.0 - 36.0 = 3.0$ 9.0 42.0 $42.0 - 36.0 = 6.0$ 36.0 Sum 0.0 90.0 Apply Bessel's correction with $n - 1 = 4$:
Step 3: Compute Sample Standard Deviation $s$:
Step 4: Compute Standard Error of the Mean $SE$:
Step 5: Compute Coefficient of Variation $CV$:
Comparison Note: If population variance $\sigma^2$ were computed, the divisor would be $N = 5$, giving $\sigma^2 = 90.0 / 5 = 18.00\text{ kN}^2$. Using $n-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 = x_{max} - x_{min}$.
- Interquartile Range (IQR): $IQR = Q_3 - Q_1$ (difference between 75th and 25th percentiles).
Population vs. Sample Statistics Summary Table
| Parameter / Metric | Population Formula ($N$) | Sample Formula ($n$) | NCEES Symbol |
|---|---|---|---|
| Mean | $\mu = \frac{\sum X_i}{N}$ | $\bar{x} = \frac{\sum x_i}{n}$ | $\mu$ vs. $\bar{x}$ |
| Variance | $\sigma^2 = \frac{\sum (X_i - \mu)^2}{N}$ | $s^2 = \frac{\sum (x_i - \bar{x})^2}{n - 1}$ | $\sigma^2$ vs. $s^2$ |
| Standard Deviation | $\sigma = \sqrt{\sigma^2}$ | $s = \sqrt{s^2}$ | $\sigma$ vs. $s$ |
| Standard Error | $\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}}$ | $SE = \frac{s}{\sqrt{n}}$ | $\sigma_{\bar{x}}$ or $SE$ |
| Relative Dispersion | $CV = \frac{\sigma}{\mu}$ | $CV = \frac{s}{\bar{x}} \times 100%$ | $CV$ |
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)?
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 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 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?