5.3 Engineering Data Analysis II — Confidence Intervals, Hypothesis Testing & Regression
Key Takeaways
- Use the z distribution when σ is known or n > 30; use the t distribution with (n − 1) degrees of freedom when σ is unknown and the sample is small.
- A 95% confidence interval for a mean is x̄ ± 1.96·(σ/√n) when σ is known; the margin of error shrinks with √n, so quadrupling the sample halves the error.
- Reject the null hypothesis when the p-value is less than the significance level α, or equivalently when the test statistic falls in the rejection region.
- Type I error (α) is rejecting a true null hypothesis; Type II error (β) is failing to reject a false one. Test power equals 1 − β.
- The least-squares slope is b = [nΣxy − ΣxΣy]/[nΣx² − (Σx)²], and the coefficient of determination r² gives the fraction of variation explained by the fitted line.
5.3 Engineering Data Analysis II — Confidence Intervals, Hypothesis Testing & Regression
The second half of the PRC Enhanced TOS Engineering Data Analysis topic moves from describing a data set to drawing defensible conclusions from it. These are the tools behind load-forecasting studies, meter-accuracy audits, insulation-test acceptance decisions and reliability benchmarking under the Philippine Distribution Code.
1. Sampling Distributions & the Central Limit Theorem
If repeated samples of size $n$ are drawn from a population with mean $\mu$ and standard deviation $\sigma$, the sample means themselves form a distribution with
The quantity $\sigma/\sqrt{n}$ is the standard error of the mean. The Central Limit Theorem states that for sufficiently large $n$ (conventionally $n \ge 30$) the distribution of $\bar{x}$ is approximately normal regardless of the shape of the parent population. This is why normal-based methods work on decidedly non-normal quantities such as outage durations.
Note the $\sqrt{n}$: to halve the standard error you must quadruple the sample size.
2. Confidence Intervals
When $\sigma$ is known (or $n > 30$)
When $\sigma$ is unknown and $n$ is small
| Confidence level | $z_{\alpha/2}$ |
|---|---|
| $90%$ | $1.645$ |
| $95%$ | $1.960$ |
| $98%$ | $2.326$ |
| $99%$ | $2.576$ |
The $t$ distribution is wider than the normal, converging to it as $\nu \to \infty$. Choosing $z$ when the problem states "sample standard deviation" and $n$ is small is a graded error.
3. Hypothesis Testing
A hypothesis test compares a null hypothesis $H_0$ (the status quo — "the meters meet the accuracy class") against an alternative $H_1$.
Test statistic for a mean
Decision rule
Reject $H_0$ when the test statistic falls in the rejection region, equivalently when $p < \alpha$.
The two error types
| $H_0$ actually true | $H_0$ actually false | |
|---|---|---|
| Reject $H_0$ | Type I error, probability $\alpha$ | Correct decision, probability $1-\beta$ (power) |
| Fail to reject $H_0$ | Correct decision, probability $1-\alpha$ | Type II error, probability $\beta$ |
In electrical acceptance testing, a Type I error rejects a good batch (producer's risk); a Type II error accepts a defective batch (consumer's risk). Reducing $\alpha$ without increasing $n$ necessarily increases $\beta$.
One-tailed vs. two-tailed
"Is the mean different from 220 V?" is two-tailed. "Is the loss greater than 150 W?" is one-tailed, and the whole of $\alpha$ sits in one tail, so the critical value is smaller (1.645 rather than 1.96 at 95%).
4. Linear Regression & Correlation
The least-squares line $y = a + bx$ minimises $\sum (y_i - \hat{y}_i)^2$:
The Pearson correlation coefficient measures linear association:
The coefficient of determination $r^{2}$ is the proportion of the variation in $y$ explained by the regression on $x$. An $r = 0.9$ means $r^{2} = 0.81$, so 81% of the variation is explained — not 90%.
Correlation is not causation, and $r$ measures only linear association: a perfect parabola can have $r \approx 0$.
5. Designed Experiments & Statistical Process Control
| Term | Meaning in electrical practice |
|---|---|
| Factor / level | Controlled input (e.g. conductor temperature) and its settings |
| Response | Measured output (e.g. measured ampacity) |
| Replication | Repeating runs to estimate pure experimental error |
| Randomisation | Ordering runs randomly to neutralise lurking variables |
| Blocking | Grouping similar units to remove a known nuisance source |
| ANOVA | Partitioning total variation into between-treatment and within-treatment components; the $F$ ratio tests treatment significance |
| $\bar{X}$–R control chart | Plots subgroup means and ranges against $\pm 3\sigma$ control limits to detect process drift |
Control limits are not specification limits: control limits describe what the process actually does, while specification limits state what the customer requires.
Solved Board Exam Examples
Example 1: Confidence Interval on Feeder Voltage
Thirty-six voltage readings on a distribution feeder average 228.4 V with a known population standard deviation of 3.6 V. Construct the 95% confidence interval for the true mean voltage.
Solution. With $\sigma$ known and $n = 36$, use $z_{0.025} = 1.96$:
The whole interval lies inside the $\pm 10%$ service-voltage band, so the feeder is compliant.
Example 2: Hypothesis Test on Transformer Efficiency
A manufacturer claims a mean efficiency of at least 98.5%. Sixteen units average 98.2% with a sample standard deviation of 0.4%. Test the claim at $\alpha = 0.05$.
Solution. $H_0: \mu \ge 98.5%$ against $H_1: \mu < 98.5%$ (one-tailed, left). With $\sigma$ unknown and $n = 16$, use $t$ with $\nu = 15$:
The one-tailed critical value is $t_{0.05,15} = -1.753$. Since $-3.00 < -1.753$, reject $H_0$: at the 5% level the evidence contradicts the manufacturer's efficiency claim.
Example 3: Least-Squares Load Growth
Peak demand over four years is: year 1, 12.0 MW; year 2, 12.9 MW; year 3, 13.6 MW; year 4, 14.7 MW. Fit a least-squares line and forecast year 6.
Solution. With $n = 4$: $\sum x = 10$, $\sum y = 53.2$, $\sum xy = 138.3$, $\sum x^2 = 30$.
A sample of 25 insulation resistance readings has an unknown population standard deviation. Which statistic and how many degrees of freedom should be used to build the confidence interval?
An acceptance test wrongly rejects a batch of circuit breakers that actually meets specification. Which error has occurred?
A regression of demand on ambient temperature yields a correlation coefficient r = 0.80. What percentage of the variation in demand is explained by the fitted line?