Free, open-source statistical process control for Python

SPC analysis, made simpler

spc-lib-py helps healthcare analysts understand variation, identify changes worth investigating and assess whether a process can meet its target. It follows NHS Englandโ€™s Making Data Count approach and works with familiar pandas DataFrames.

Free, open-source statistical process control for Python

SPC analysis, made simpler

spc-lib-py helps healthcare analysts understand variation, identify changes worth investigating and assess whether a process can meet its target. It follows NHS Englandโ€™s Making Data Count approach and works with familiar pandas DataFrames.

Built to save analysts time

Our free, open-source Python library makes it easier to apply established SPC methods without building calculations from scratch, saving analysts time when monitoring healthcare performance and identifying meaningful change.

Why use the library?

See what is really happening in your data, rather than reacting to every rise or fall. The library helps you:

Identify meaningful change

Spot special-cause signals that may warrant investigation.

Understand routine variation

Use process limits to see the range of variation you would normally expect.

Assess targets

Explore whether a process is likely to meet a performance target.

Create useful outputs

Produce SPC charts and structured results to support further analysis.

Use the results to support clearer discussions about performance and where action may be needed.

Getting started

Three simple steps to explore the free, open-source library.

1. Visit GitHub

Open the spc-lib-py repository to access the code, installation guidance and examples.

2. Install the library

Follow the repository instructions to set it up in your Python environment.

3. Try it with your data

Explore the examples, then apply the library to your own pandas DataFrame.

How Analysts Can Support Strategic Commissioning Through Actionable Intelligence

Article

Strategic commissioning is changing how NHS organisations plan services, allocate resources and respond to population health needs.

Our article explores why analysts are central to this shift, and how connected data, understanding variation and forecasting future demand can support better commissioning decisions.