Statistics Quest

Daily inspection defects

Final inspection results for 60 production days at a fictional appliance-panel plant, Corniche Fabrication. Each row is one day: units inspected (which varies), defective units, and the number of defects found by type. Built for p-charts with varying sample sizes, c- and u-charts, and checking a Poisson model for defect counts.

Rows
60
Columns
9
One row is
one production day
Version
v1

Data dictionary

ColumnTypeUnitSummaryDescription
day
Production day
integermean 30.5, median 30.5, SD 17.46, range 1–60Production day number (1–60).
date
Date
dateCalendar date (working days only).
units_inspected
Units inspected
integerunitsmean 523.7, median 533.5, SD 68.43, range 382–620Number of panels inspected.
defective_units
Defective units
integerunitsmean 17.22, median 17, SD 5.059, range 8–36Panels with at least one defect.
defects_total
Total defects
integerdefectsmean 22.2, median 22, SD 6.538, range 10–44Total number of defects found (a unit can have several).
scratch
Scratches
integerdefectsmean 8.35, median 8, SD 3.369, range 2–15Number of scratch defects.
dent
Dents
integerdefectsmean 5.583, median 5, SD 3.132, range 0–13Number of dent defects.
misalignment
Misalignments
integerdefectsmean 4.783, median 5, SD 2.373, range 0–12Number of misalignment defects.
paint
Paint defects
integerdefectsmean 3.483, median 3, SD 1.9, range 0–9Number of paint defects.

What it is good for

  • Build a p-chart with limits that vary with sample size and identify an out-of-control day.
  • Distinguish defectives (p/np charts) from defects (c/u charts).
  • Check whether daily defect counts are consistent with a Poisson model.
  • Build a Pareto chart of defect types.

Methods: p-chart, np-chart, c-chart, u-chart, Poisson distribution, Pareto chart, chi-square goodness of fit.

Data quality notes

  • Day 41 has a much higher defective rate (≈7.5% vs ≈3.2%) and should fall above the p-chart's upper limit.
  • Sample sizes vary from day to day: use a u-chart rather than a c-chart for defects, or standardise.
  • No missing values.

Provenance and licence

Units inspected ~ 380–620 (uniform). Defective units ~ Binomial(units, 0.032), except day 41 where p = 0.075 (assignable cause). Each defective unit carries 1 + Poisson(0.3) defects, each assigned to a type with probabilities scratch 0.40, dent 0.25, misalignment 0.20, paint 0.15. So defects_total ≥ defective_units and the four type counts add up to defects_total. Only working days (Sunday–Thursday) appear.

Synthetic data · CC0-1.0 (synthetic data generated by Statistics Quest) · generated deterministically (seed 20241008). It does not describe real people or organisations; any resemblance is coincidental.

Preview

Dataset

Daily inspection defects

60 rows · one row = one production day · synthetic data

Production dayDateUnits inspected (units)Defective units (units)Total defects (defects)Scratches (defects)Dents (defects)Misalignments (defects)Paint defects (defects)
12024-02-0439515198560
22024-02-054479103511
32024-02-0646912166253
42024-02-07425182110452
52024-02-08618213215584
62024-02-1142019217824
72024-02-1256017187353
82024-02-1343412157224
92024-02-14615182241152
102024-02-1558617249357
112024-02-1858721257864
122024-02-1949719239194

Used in