Quality Planning & Control

Chapter 7
Statistical Foundations for Quality Decisions

Advance Diploma in Total Quality Management
Quality Planning & Control   •   Advance Diploma

Statistical Foundations for Quality Decisions

Introduction

Quality decisions are decisions made under variation and uncertainty. A process may produce units that differ in dimension, strength, waiting time, defect count, or customer rating even when operating normally. Statistical thinking provides a disciplined way to distinguish routine variation from unusual signals, summarize evidence, estimate unknown process characteristics, and decide whether an observed difference is likely to be real.

In Total Quality Management (TQM), statistics is not merely a collection of calculations. It is a way of thinking about processes. Reliable analysis begins with a clearly defined unit, population, characteristic, measurement method, sampling plan, and decision rule. Poorly collected data cannot be rescued by sophisticated software.

This chapter develops the foundations needed for quality planning and control: data types, distributions, sampling, descriptive statistics, probability, confidence intervals, hypothesis tests, uncertainty, bias, and common analytical errors.

Learning objectives

By the end of this chapter, the learner should be able to:

  • distinguish qualitative, quantitative, discrete, continuous, nominal, ordinal, interval, and ratio data;
  • explain distributions and select suitable summaries and graphs;
  • distinguish a population from a sample and identify common sampling risks;
  • calculate and interpret measures of centre and dispersion;
  • apply basic probability concepts to quality events;
  • construct and interpret confidence intervals;
  • formulate and interpret hypothesis tests without confusing statistical and practical significance;
  • recognize measurement error, bias, confounding, and inappropriate analytical practices;
  • use statistical evidence responsibly in quality decisions.

1. Statistical thinking in quality management

A quality characteristic is a measurable property of a product, service, or process, such as diameter, delivery time, number of complaints, or conformity status. Variation in a characteristic may arise from:

  • Common causes: many small, persistent sources built into the process, such as machine wear or normal material variation;
  • Special causes: identifiable, unusual sources, such as a broken tool, incorrect setting, or data-entry error.

The central quality question is not simply “What is the average?” but “What process generated these observations, and is its behaviour stable and acceptable?” Statistical analysis should therefore be connected to process knowledge, customer requirements, and the cost and consequences of decisions.

A useful distinction is between:

  • Descriptive statistics, which summarize observed data;
  • Inferential statistics, which use sample data to draw conclusions about a wider population;
  • Predictive analysis, which estimates likely future outcomes under stated assumptions.

Inference is never certainty. It is a reasoned conclusion accompanied by uncertainty and assumptions.

2. Data types and measurement scales

Correct analysis depends on the nature of the variable. A variable is a characteristic that can take different values.

ClassificationMeaningExamplesSuitable summaries
Nominal categoricalLabels with no natural orderSupplier, defect type, departmentCounts, proportions, mode
Ordinal categoricalOrdered categories, unequal spacing not assuredPoor–fair–good–excellent; severity levelCounts, median, percentiles
Discrete quantitativeCountable numerical valuesNumber of defects, complaintsMean, variance, count models
Continuous quantitativeMeasurements on a continuumLength, mass, cycle timeMean, standard deviation, histogram
Interval scaleEqual intervals but no meaningful zeroTemperature in °CDifferences and averages
Ratio scaleEqual intervals and meaningful zeroTime, mass, concentrationAll arithmetic operations

Categorical codes must not be mistaken for measurements. If “1 = low, 2 = medium, 3 = high,” the numbers represent order, but the difference between low and medium may not equal the difference between medium and high. Computing a mean may therefore be misleading.

A binary variable has two categories, such as conforming/nonconforming. A defect is a failure to meet a requirement; a defective unit is a unit containing one or more defects. One unit may contain several defects, so defect count and defective-unit count are different measures.

Before collecting data, define:

  1. the observational unit;
  2. the operational definition of each characteristic;
  3. the measurement instrument and resolution;
  4. the time, location, and conditions of measurement;
  5. the coding rules for missing, censored, or invalid observations.

3. Distributions and graphical understanding

A distribution describes how values of a variable occur, including their centre, spread, shape, and unusual observations. A distribution may be:

  • approximately symmetric or skewed;
  • unimodal or multimodal;
  • concentrated or dispersed;
  • bounded, such as a proportion between 0 and 1;
  • discrete or continuous.

The normal distribution is a useful model for some continuous measurements. If a variable X is normally distributed with mean μ and standard deviation σ, its density is:

f(x) = (1/(σ√(2π))) exp(−(x−μ)²/(2σ²)), −∞ < x < ∞, σ > 0

Here, μ describes the centre and σ describes spread. The model is continuous, so the probability of one exact value is zero; probabilities refer to intervals. The normal model is appropriate only when its assumptions are reasonable. Many waiting times, defect counts, and financial or reliability measures are not normally distributed.

Useful graphical displays include:

  • Bar chart: categorical counts or proportions;
  • Histogram: grouped quantitative observations;
  • Box plot: median, quartiles, spread, and possible outliers;
  • Scatterplot: association between two quantitative variables;
  • Run chart: observations in time order;
  • Pareto chart: categories ordered by frequency or impact;
  • Stratified display: comparisons by shift, supplier, machine, or product family.

Time order is especially important. A table of values can conceal trends, cycles, shifts, or mixtures of different processes. Averages across machines or shifts may hide a serious problem in one subgroup.

4. Population, sample, and sampling

The population is the complete set of units relevant to a question. A sample is the subset actually observed. A parameter is a population quantity, such as μ or the population proportion p. A statistic is a quantity calculated from a sample, such as x̄ or p̂.

A sample is useful only when it represents the target population for the intended decision. Common sampling designs include:

  • Simple random sampling: every unit has a known, equal chance of selection;
  • Systematic sampling: select every kth unit after a random starting point;
  • Stratified sampling: divide the population into important groups and sample within each;
  • Cluster sampling: select groups or clusters and observe units within them;
  • Convenience sampling: select easily available units, usually vulnerable to bias.

A quality inspection plan should specify the population, sampling frame, selection method, sample size, frequency, and treatment of missing observations. Sampling from only the day shift, only successful transactions, or only easily accessible products creates selection bias.

Random sampling reduces selection bias but does not eliminate measurement error. Repeated measurements from one batch may also be less informative than observations spread across batches, times, operators, and environmental conditions. Dependence between observations reduces the effective information in the sample.

Sampling error and non-sampling error

Sampling error is the natural difference between a sample result and the population value caused by observing only part of the population. It generally decreases as an appropriate random sample becomes larger.

Non-sampling errors include:

  • faulty instruments;
  • inconsistent inspection criteria;
  • nonresponse or missing data;
  • recording and coding errors;
  • coverage errors, where the sampling frame omits part of the population;
  • response bias, especially in surveys.

Increasing sample size does not correct systematic measurement bias. A large sample measured with a consistently miscalibrated instrument can produce a very precise but wrong result.

5. Descriptive statistics

Measures of centre

For observations x₁, x₂, …, xₙ, the sample mean is:

x̄ = (∑ᵢ₌₁ⁿ xᵢ)/n

where n is the number of observations. The mean uses every value and is useful for symmetric distributions without severe outliers. It is sensitive to extreme values.

The median is the middle ordered value, or the average of the two middle values when n is even. It is more resistant to extreme observations. The mode is the most frequent value and is particularly useful for categorical data.

Measures of dispersion

The range is:

Range = maximum − minimum

It is simple but depends entirely on two observations. The sample variance is:

s² = ∑ᵢ₌₁ⁿ (xᵢ − x̄)²/(n − 1)

and the sample standard deviation is:

s = √s²

The denominator n − 1, rather than n, is used when s² estimates the variance of a broader population from a sample under the usual independent-sampling framework. Standard deviation has the same units as the observations; variance has squared units.

The coefficient of variation is:

CV = (s/x̄) × 100%

It compares relative variation, but is inappropriate when the mean is zero or close to zero and can be problematic for variables that may take negative values.

The interquartile range is:

IQR = Q₃ − Q₁

where Q₁ and Q₃ are the first and third quartiles. It describes the middle 50% of observations and is resistant to extreme values.

Worked example: delivery time

Six delivery times, in days, are 4, 5, 5, 6, 7, and 9.

The mean is:

x̄ = (4 + 5 + 5 + 6 + 7 + 9)/6 = 36/6 = 6 days

The median is (5 + 6)/2 = 5.5 days. The range is 9 − 4 = 5 days. Deviations from the mean are −2, −1, −1, 0, 1, and 3; their squared sum is 16. Thus:

s² = 16/(6 − 1) = 3.2 days²
s = √3.2 ≈ 1.79 days

The mean is 6 days, but the median of 5.5 days indicates that the longer 9-day delivery pulls the mean upward. Both should be reported with the distribution or a suitable graph.

6. Probability for quality decisions

Probability quantifies uncertainty. An event is a set of outcomes. For events A and B:

P(Aᶜ) = 1 − P(A)

where Aᶜ is “not A.” The addition rule is:

P(A ∪ B) = P(A) + P(B) − P(A ∩ B)

The subtraction avoids counting the intersection twice. If A and B are mutually exclusive, P(A ∩ B) = 0.

Conditional probability is:

P(A|B) = P(A ∩ B)/P(B), P(B) > 0

If A and B are independent, then:

P(A ∩ B) = P(A)P(B)

Independence must be justified; it cannot be assumed merely because events appear unrelated.

For a binary outcome observed n times with constant probability p and independent trials, the binomial probability of exactly x successes is:

P(X = x) = C(n,x)pˣ(1−p)ⁿ⁻ˣ, x = 0,1,…,n

where C(n,x) = n!/[x!(n−x)!]. The assumptions are fixed n, two outcomes, constant p, and independent trials. For example, if the probability of a defect is 0.02, the expected number of defects in 100 independent units is np = 2. This expectation does not mean exactly two defects will occur in every sample.

Bayes’ theorem is useful when evidence updates a prior probability:

P(A|B) = P(B|A)P(A)/P(B)

In quality inspection, a positive test result does not automatically mean that a unit is defective. The base rate of defects and the test’s false-positive and false-negative rates must be considered.

7. Confidence intervals and estimation

A point estimate gives one value; an interval estimate gives a range of plausible values under a stated confidence procedure. For a sample mean with unknown population standard deviation, an approximate confidence interval is:

x̄ ± tₐ/₂,ₙ₋₁ (s/√n)

where x̄ is the sample mean, s is the sample standard deviation, n is sample size, and tₐ/₂,ₙ₋₁ is the critical value from the t distribution with n − 1 degrees of freedom. The interval assumes independent observations and a suitable normal or approximately normal sampling distribution; for small samples, the underlying population should not be severely skewed.

For a large-sample proportion, an approximate interval is:

p̂ ± zₐ/₂ √[p̂(1−p̂)/n]

where p̂ = x/n, x is the number of successes, n is the sample size, and zₐ/₂ is the standard-normal critical value. This approximation can be unreliable with small counts or proportions near 0 or 1; exact or improved methods may then be preferable.

A 95% confidence interval does not mean there is a 95% probability that the fixed population parameter lies inside this particular interval. In repeated use of the same method, approximately 95% of such intervals would contain the parameter if the assumptions and sampling procedure were valid.

Worked example: estimating a mean

A random sample of 25 cycle times has x̄ = 42 minutes and s = 5 minutes. Using t₀.₀₂₅,₂₄ ≈ 2.064, the margin of error is:

2.064 × (5/√25) = 2.064 × 1 = 2.064 minutes

The 95% interval is 42 ± 2.064, or approximately 39.94 to 44.06 minutes. The correct interpretation is that this procedure produces intervals that capture the population mean about 95% of the time in repeated comparable sampling—not that 95% of individual cycle times lie in this interval.

Precision is affected by variability, sample size, and confidence level. Increasing n reduces the standard error approximately in proportion to 1/√n, so quadrupling the sample size roughly halves sampling error, provided the sampling design remains sound.

8. Hypothesis testing

A hypothesis test evaluates whether sample evidence is inconsistent with a stated null model. The null hypothesis, H₀, commonly represents no change, no difference, or a reference value. The alternative hypothesis, H₁, represents the effect or difference of interest.

A test statistic compares the observed result with what would be expected under H₀. For a one-sample mean with a reference value μ₀:

t = (x̄ − μ₀)/(s/√n)

This statistic is compared with a t distribution under the assumptions of independent observations and an appropriate mean model.

The p-value is the probability, assuming H₀ is true, of obtaining a result at least as extreme as the observed result according to the specified alternative. A small p-value indicates inconsistency with H₀; it does not measure the probability that H₀ is true, the size of the effect, or its practical importance.

A significance level α is selected before analysis. If p ≤ α, the conventional decision is to reject H₀; otherwise, the result is described as failing to reject H₀. “Failing to reject” is not proof that H₀ is true.

Two error types are important:

  • Type I error: rejecting a true H₀; probability controlled approximately by α under the test assumptions;
  • Type II error: failing to reject a false H₀; its probability is β, and statistical power is 1 − β.

Power increases with larger meaningful effects, larger samples, lower variability, and a larger α, although increasing α also increases Type I error risk. Quality planning should consider the cost of both error types.

Statistical significance and practical significance differ. A tiny improvement may be statistically significant with a very large sample but irrelevant to customers. Conversely, an important improvement may fail to reach significance in a small, noisy study. Report the estimated effect, confidence interval, operational importance, and assumptions—not only the p-value.

9. Bias, uncertainty, and analytical errors

Uncertainty reflects limited information, process variation, measurement limitations, and model assumptions. Bias is systematic deviation from the target quantity. Random error tends to vary across observations; bias tends to shift results consistently.

Important sources of bias include:

  • sampling only convenient or successful cases;
  • changing measurement methods during a study;
  • excluding inconvenient observations after seeing results;
  • regression to the mean after selecting extreme cases;
  • confounding, where a third variable explains an apparent relationship;
  • survivorship bias, where failed units disappear from the data;
  • Simpson’s paradox, where an overall association reverses after stratification;
  • p-hacking, such as trying many analyses and reporting only significant results.

Measurement systems require attention. Repeatability concerns variation when the same operator measures the same item repeatedly. Reproducibility concerns variation between operators, instruments, or conditions. A measurement system that is too variable relative to process variation can obscure real signals; one that is biased can create false signals. Calibration, standard operating procedures, operator training, blind checks, and measurement-system studies are therefore part of quality planning.

Common analytical errors include:

  1. treating correlation as proof of causation;
  2. using the mean for heavily skewed data without reporting the median;
  3. ignoring time order and mixing different process populations;
  4. using percentages without denominators;
  5. interpreting a confidence interval as a prediction interval for individuals;
  6. applying normal-based methods to small, highly skewed samples without checking assumptions;
  7. performing many subgroup comparisons without controlling false discoveries;
  8. deleting outliers without a documented technical reason;
  9. confusing defects with defective units;
  10. reporting excessive decimal places unsupported by the measurement system.

10. An integrated workflow for quality analysis

A defensible analysis follows a sequence:

  1. Define the decision: What action may change as a result of the analysis?
  2. Define the population and unit: What does each observation represent?
  3. Specify the characteristic: Include operational definitions and acceptance criteria.
  4. Evaluate the measurement system: Check calibration, resolution, repeatability, and reproducibility.
  5. Plan sampling: Select an appropriate frame, method, frequency, and sample size.
  6. Visualize before modelling: Inspect distributions, time order, stratification, and unusual values.
  7. Summarize appropriately: Use statistics suited to the scale and shape of the data.
  8. State assumptions: Address independence, stability, distributional form, and missingness.
  9. Quantify uncertainty: Use confidence intervals or other suitable interval estimates.
  10. Test only relevant hypotheses: Predefine hypotheses and decision criteria where possible.
  11. Assess practical consequences: Consider customer risk, cost, safety, and capability.
  12. Document and communicate: Record data definitions, exclusions, methods, limitations, and conclusions.

Statistical software can calculate quickly, but it cannot determine whether the sampling frame is biased or whether a measurement is meaningful. Professional judgment remains essential.

Applied case: reducing invoice-processing errors

This is an illustrative case based on a realistic quality-improvement situation.

Background

A shared-services centre processed approximately 8,000 invoices per month. Management believed that a new automated validation rule had reduced the error rate, but the initial comparison used only invoices handled by the day shift.

Problem

The day shift had more experienced staff and handled simpler suppliers. The comparison therefore mixed the effect of the software with shift and invoice-complexity differences. The apparent improvement could be biased.

Analysis

The team defined an error as an invoice requiring correction after approval. It sampled invoices across three shifts, two supplier-complexity strata, and four consecutive weeks. A measurement review established consistent coding rules, and auditors were blinded to whether the rule was active.

The team first plotted weekly error proportions by shift and complexity. It then compared the two conditions within each stratum rather than relying only on an overall percentage. Confidence intervals were reported for the difference in proportions. The analysis also checked whether invoice volume and staffing changed over time.

Approach and solution

The organization adopted stratified random sampling, retained a stable operational definition, and used a pre-specified comparison. Results were considered successful only if the reduction was statistically credible and large enough to justify implementation and training costs. A run chart was added for continuing monitoring.

Outcome

The initial large apparent reduction became smaller after stratification, but it remained practically valuable in the high-complexity group. The rule was retained, while a separate training intervention was introduced for one shift. Management avoided claiming that automation alone caused the entire improvement.

Learning points

  • A convenient sample can overstate improvement.
  • Stratification can reveal confounding.
  • Statistical significance must be considered alongside operational benefit.
  • Clear definitions and stable measurement are prerequisites for trustworthy analysis.
  • Monitoring after implementation is necessary because effects may change over time.

Ethical, governance, and contemporary considerations

Quality data may contain employee identifiers, customer information, health information, or supplier performance records. Access should follow least-privilege principles, and reports should minimize personally identifiable information. Data retention, audit trails, version control, and documented approval of analytical changes support accountability.

AI and automated analytics can assist with anomaly detection, sampling prioritization, and visualization. However, an algorithm may reproduce historical bias, mistake a data-entry change for a process shift, or generate a confident explanation unsupported by evidence. AI outputs should be validated against the operational definition, reviewed by process experts, and monitored for drift. Automated decisions affecting workers, customers, or safety require transparent criteria and human oversight.

Contemporary quality practice increasingly combines statistical process control, measurement-system analysis, digital traceability, and real-time data. These technologies improve timeliness but also increase risks from sensor drift, cyberattack, excessive alerts, and undocumented model changes. More data is not automatically better data.

Chapter Summary

Statistical foundations enable quality professionals to make decisions under variation rather than relying on impressions. Data must first be classified and operationally defined. Distributions should be examined through appropriate graphs and summaries, with time order and stratification preserved. The mean, median, variance, standard deviation, quartiles, and proportions describe different aspects of data and must be matched to the measurement scale and distribution.

Sampling connects observed data to a target population. Randomness can reduce selection bias, but it cannot correct poor measurement or an incomplete sampling frame. Probability provides a language for quality risks and conditional evidence. Confidence intervals communicate estimation uncertainty, while hypothesis tests evaluate evidence against a reference model. Neither replaces consideration of effect size, practical significance, assumptions, and decision consequences.

Bias, confounding, dependence, measurement error, multiple testing, and inappropriate models can produce misleading conclusions. A professional workflow defines the decision, population, measurement system, sampling plan, analysis, uncertainty, and governance requirements. Statistical software and AI support this process, but responsible quality judgment remains essential.

Key Terms

Bias: Systematic deviation from the target quantity or truth.

Confidence interval: An interval produced by a method designed to contain a population parameter at a stated long-run frequency.

Confounding: Mixing the effect of a variable of interest with the effect of another related variable.

Continuous variable: A quantitative variable that can take values on a continuum.

Defect: A failure to meet a specified requirement.

Defective unit: A unit containing one or more defects.

Distribution: The pattern of possible values and their frequencies or probabilities.

Event: A set of outcomes to which a probability is assigned.

Hypothesis test: A procedure for assessing evidence against a null model.

Interquartile range: The difference between the third and first quartiles.

Measurement error: Difference between an observed measurement and the quantity intended to be measured.

Parameter: A numerical characteristic of a population.

P-value: Probability, assuming the null hypothesis, of results at least as extreme as the observed result.

Population: The complete set of units relevant to a study.

Probability: A numerical measure of uncertainty, from 0 to 1.

Random error: Unpredictable variation in measurement or sampling results.

Sample: A subset of a population that is observed.

Standard deviation: A measure of dispersion expressed in the original units.

Statistic: A numerical quantity calculated from sample data.

Stratified sampling: Sampling separately within defined population groups.

Review Questions

Short Answer Questions

  1. Distinguish a defect from a defective unit, giving an example.
  2. Why is the median often preferred to the mean for strongly skewed data?
  3. What is the difference between a parameter and a statistic?
  4. Define Type I error and Type II error.
  5. Why does increasing sample size not necessarily remove bias?

Long Answer Questions

  1. Explain how data type and measurement scale influence the choice of summaries and graphs in quality analysis.
  2. Describe a defensible sampling plan for monitoring defects across shifts and suppliers.
  3. Explain the assumptions and interpretation of a confidence interval for a population mean.
  4. Compare statistical significance with practical significance in a process-improvement project.
  5. Discuss how measurement-system error can affect both descriptive and inferential conclusions.

Analytical / Application Questions

  1. A process has a highly skewed cycle-time distribution with several extreme delays. Propose a graphical and numerical analysis, and justify each choice.
  2. An improvement appears large when all observations are pooled but disappears within each shift. Explain the likely issue and design an investigation.
  3. A manager reports that a p-value of 0.03 proves a 97% probability that the improvement is real. Critique the statement and provide a more accurate interpretation.

Multiple Choice Questions with Answers

Question 1

Which measure is generally most resistant to an extreme observation?

A. Mean

B. Median

C. Variance

D. Range

Correct Answer: B. Median

Question 2

A sample is selected only from invoices processed during the day shift. What is the primary concern?

A. Selection bias

B. Type I error

C. Random measurement error

D. Normality

Correct Answer: A. Selection bias

Question 3

For a sample of six observations, the denominator n − 1 in the sample variance is used primarily because it:

A. Makes variance have the same units as the data

B. Estimates population variance under the usual sampling framework

C. Removes all outliers

D. Guarantees a normal distribution

Correct Answer: B. Estimates population variance under the usual sampling framework

Question 4

If events A and B are independent, which relationship is correct?

A. P(A ∩ B) = P(A) + P(B)

B. P(A ∩ B) = P(A)P(B)

C. P(A|B) = 0

D. P(A ∪ B) = 0

Correct Answer: B. P(A ∩ B) = P(A)P(B)

Question 5

A 95% confidence interval is best interpreted as:

A. 95% of individual observations lie inside the interval

B. There is a 95% probability that the fixed parameter is inside this calculated interval

C. The method captures the parameter in about 95% of repeated comparable samples

D. The null hypothesis is true with probability 0.95

Correct Answer: C. The method captures the parameter in about 95% of repeated comparable samples

Question 6

A p-value is calculated assuming that:

A. The alternative hypothesis is true

B. The null hypothesis is true

C. The sample mean equals zero

D. The measurement system has no error

Correct Answer: B. The null hypothesis is true

Question 7

Which situation is most likely to create confounding?

A. Randomly selecting units across all shifts

B. Comparing a new system only on simple invoices and an old system only on complex invoices

C. Calibrating the same instrument before each measurement

D. Plotting observations in time order

Correct Answer: B. Comparing a new system only on simple invoices and an old system only on complex invoices

Question 8

If 100 independent units each have defect probability 0.02, the expected number of defective units is:

A. 0.02

B. 0.2

C. 2

D. 50

Correct Answer: C. 2

Question 9

Which statement about statistical significance is correct?

A. It automatically proves practical importance

B. It describes evidence against a null model and should be considered with effect size and context

C. It shows that the measurement system is unbiased

D. It means the result will always replicate

Correct Answer: B. It describes evidence against a null model and should be considered with effect size and context

Question 10

Which action is most appropriate when a measurement instrument is consistently miscalibrated?

A. Increase the sample size

B. Ignore the issue if the p-value is small

C. Correct or recalibrate the measurement system before relying on its results

D. Replace the mean with the mode only

Correct Answer: C. Correct or recalibrate the measurement system before relying on its results

Quality Planning & Control
Chapter 7 of 15