Skip to main content
Advantive

Stats tip: Within and between subgroup variation clarified

By Grace Barton Updated
Stats tip: Within and between subgroup variation clarified

I received a question after my last blog post asking me to clarify the concept of within and between subgroup variation which is used in calculating Cpk, Cp, Cr, Ppk, Pp, Pr and other statistics. Here is an example I used to help explain the differences.

Let’s say that every day I run about 30 minutes with my chocolate labrador, Cadbury (pictured below).

While running, I decide to measure how fast we are going. I measure the speed (pace) three times throughout the run: toward the beginning, the middle, and the end of the run. This data tells me a few things:

1. The pace at the beginning, middle, and end of the run.
2. The average pace we keep. This average pace is also called an X-bar.
3. The difference between the fastest pace and the slowest pace, also called the range.
4. Cadbury, like me, has a lot more energy at the beginning of our run than at the end.

The data collected is easy enough to understand. But what if I want to know if the process is capable (of meeting some goal)? This is the same questions you no doubt have had about data collected for traditional quality improvement purposes. The tool I need to answer this question is capability analysis.

I am using the example of running to illustrate variability. As mentioned in #2 above, the average pace of a run is the X-bar. The range of the three measurements (#3 above) is also known as the within subgroup variation. This is sometimes referred to as the subgroup (or sample) standard deviation.

Let’s say Cadbury and I have run daily for 20 days. I took 3 measurements of my pace each day, so I now have 60 measurements. The variation of all 60 measurements is called the variation within and between the subgroups. This is sometimes called the total standard deviation.

Within subgroup variation (subgroup standard deviation) is used in calculating control limits and Cp, Cr, and Cpk. Within and between subgroup variation (total standard deviation) is used in calculating Pp, Pr, and Ppk. Keep the questions coming–Cadbury and I will try our best to answer them!

Grace Barton

Marketing Specialist

About the Author Latest Posts

Grace Barton is a digital marketing and competitive intelligence professional who crafts strategic narratives by bridging marketing insights with analytical expertise. At Advantive, she creates engaging, data-driven content tailored to the distribution, manufacturing, packaging, and quality industries. Her goal is to deliver impactful messaging that drives engagement and growth based on specific gap closure needs, whether responding to sales organization requirements, pinpointing gaps in content, or meeting immediate market trends.
She thrives on transforming competitive intelligence into actionable insights for the sales organization. Grace manages Advantive’s competitive intelligence platform, Klue, to equip the sales team with the battlecards and market data they need to stay ahead of competitors. Since launch, she’s built 28+ battlecards across four lines of business, ensuring the GTM strategy stays sharp.
Grace has a passion for leveraging market insights with storytelling to guide strategic decision-making, empower sales organizations, and nurture organizational growth.

Areas of Expertise: Digital Marketing, Competitive Intelligence, Strategic Narratives, Marketing Insights, Analytical Expertise

LinkedIn

Editorial standards

Fact-checking & editorial guidelines

Every article on advantive.com is written and reviewed against an internal accuracy standard before publication. Here's what that means in practice.

  • Product claims are verified by the brand team that owns the platform.

    When an article references InfinityQS, WinSPC, PQ Systems, Pinpoint, ParityFactory, ProPlanner, KiwiPlan, DDI System, VeraCore, or any of Advantive's other specialty platforms, the relevant product team checks technical statements about features, deployment, and current capability before the article goes live.

  • External statistics cite their source inline.

    When an article references industry survey results, regulatory benchmarks, or third-party research, the source is linked at the point of citation. Statements without an inline source link are first-party observations drawn from Advantive's product teams or customer base.

  • Publication and revision dates stay visible.

    The original publication date and the most recent revision date are both shown on every article. Topics that change quickly — AI capabilities, regulatory rules, product roadmaps — are revisited on a tighter cadence than evergreen reference content.

  • Corrections are issued openly.

    If a factual error is reported, the article is updated, the revision date advances, and material corrections are noted at the bottom of the article so readers can see what changed and when.

Found something wrong, or have a citation to add? Get in touch with the editorial team and we'll review it.

Subject-matter review

Reviewed by subject-matter experts

Advantive is a portfolio of 14+ specialty software platforms — each one built and maintained by a product team that has spent years inside a specific manufacturing or distribution discipline. Articles in technical channels are reviewed by the relevant team before publication.

  • Quality & SPC content

    Reviewed by the InfinityQS, WinSPC, and PQ Systems product teams — the platforms behind statistical process control, capability analysis, and gage management deployments across food, automotive, pharma, and CPG manufacturers.

  • Manufacturing operations & MES content

    Reviewed by the PINpoint, ProPlanner, ParityFactory, and VIA Information Tools teams, whose platforms run production scheduling, traceability, and shop-floor execution for discrete, automotive, and food-and-beverage manufacturers.

  • Packaging & converter content

    Reviewed by the KiwiPlan, Abaca, and AdvantZware teams, who build software specifically for corrugated, folding-carton, and packaging-converter operations.

  • Distribution, ERP & B2B commerce content

    Reviewed by the DDI System (inFORM ERP), Distribution One, VeraCore, Pepperi, and Commerce Vision teams, whose platforms run wholesale ERP, fulfillment, field sales, and B2B portals for specialty distributors and 3PLs.

Are you a practitioner with domain expertise to contribute? Get in touch — we accept guest contributions from operators in the industries we serve.