How to make a histogram
- Copy your measurement column from Excel together with its header.
- Select the columns to plot and, if needed, enter the lower (LSL) and upper (USL) spec limits.
- Press Draw and check the chart, statistics and automatic interpretation. Right-click the chart to save or copy it as an image.
Worked example with sample data
The sample data are 60 thickness measurements from each of two production lines (Line A and Line B), with spec limits of 45 to 55.
Both lines are bell-shaped - highest near the mean and lower on both sides - so the interpretation calls them fairly symmetric. The difference is the spread: Line A has a standard deviation of 1.022 with 90% of its values between 48.8 and 51.7, while Line B has a standard deviation of 1.617 and spreads from 47.4 to 54.4.
With the same spec limits, capability therefore splits sharply. Line A has Ppk=1.538, above 1.33 (excellent), while Line B has Ppk=0.905, below 1.0, meaning out-of-spec parts are a real risk. In the chart, Line B's normal curve reaches close to the USL=55 line.
For Line B the first step is to reduce spread (machine vibration, raw-material variation, etc.) rather than shift the mean, because its mean of 50.61 is close to the spec center of 50.
What is a histogram?
A histogram splits measurements into equal-width intervals (bins) and shows how many values fall in each bin as the bar height. It shows at a glance where the data are centered, how widely they are spread, and whether they lean to one side (skewness).
In quality control it is the first step in checking whether process data follow a normal distribution. Overlaying a normal curve with the same mean and standard deviation makes it easy to compare the actual distribution with the theoretical one.
How is the bin width chosen?
By default the tool uses the finer of Sturges' rule and the Freedman-Diaconis rule (NumPy's 'auto' method), which gives a sensible number of bars for most data. When several columns are overlaid it uses the narrowest width among them so a tightly clustered group is not squashed into one or two bars. You can also type your own bin width.
How Pp and Ppk are calculated
Enter the lower (LSL) and upper (USL) spec limits and the capability indices are computed with the overall standard deviation (σ): Pp = (USL − LSL) ÷ 6σ and Ppk = min(USL − mean, mean − LSL) ÷ 3σ. With only one limit, the one-sided index (Ppu or Ppl) is shown as Ppk.
The sigma multiplier is entered as the total of both sides. The default of 6 means a process spread of ±3σ, i.e. 6σ in total.
How to read a histogram
- Bars that peak in the middle and fall off evenly on both sides suggest a stable, roughly normal process.
- A long tail on one side (high skewness) means the normal assumption may not hold - interpret Ppk with care.
- Two or more peaks often mean data from different conditions (machines, materials, operators) are mixed.
- Ppk of 1.33 or more is excellent, 1.0-1.33 is adequate with room for improvement, and below 1.0 carries a risk of out-of-spec output.
Frequently asked questions
Can I paste data straight from Excel?
Yes. Copying from Excel or Google Sheets gives a tab-separated table that is pasted as is. Click a column header before pasting to use the first line as column names. Blank and non-numeric cells are left out of the calculation.
How is Ppk different from Cpk?
Ppk uses the standard deviation of all data (long-term variation), while Cpk uses the within-subgroup standard deviation (short-term variation). This tool calculates Pp and Ppk.
Can I compare the distributions of two groups?
Yes. Select several columns to overlay them on one chart, and the automatic interpretation compares their means and standard deviations. With a group column, one chart is drawn per data column with the groups overlaid.