A package for process capability analysis
Project description
process_improvement.py
The process_improvement.py library is a collection of functions designed to help identify, undersand, and eliminate the influence of the two types of variation from business and manufacturing processes. While the primary tool by which this is facilitated is the the process behavior chart (otherwise known as a control chart), process_improvement.py contains additional modules and functions related to the task of process improvement. The process_improvement.py library is part of the larger body of work called The Broken Quality Initiative (BrokenQuality.com). The aim of BQI is to address industries' pervasive lack of knowledge regarding variation and the only tool capable of making sense of variation, the process behavior chart (control chart). .
Visit BrokenQuality.com for resources and more details regarding the application and use of process behavior charts.
Table of Contents
Prerequisites
Before you begin, ensure you have met the following requirements:
- You have installed Python 3.6 or higher.
- You have a working knowledge of Python and data analysis libraries such as pandas and matplotlib.
- You have a working knowledge of
Process Behavior ChartsandStatistical Process Control.
Installation
To install process_improvement.py directly from GitHub, enter the following command using the command prompt:
pip install git+https://github.com/jimlehner/process_improvement
Usage
After installation the process_improvement.py library can be used as follows:
- From process_improvement import xmr_charts module as xmr:
from process_improvement import xmr_charts as xmr - Call the function of interest from the requisite module:
xmr.xmrchart(df, 'Values', 'Observations', title='Example X-chart')
Modules
The process_improvement.py pacakge contains 5 modules:
- xmr_charts
- process_capability
- comparison_charts
- limit_charts
- network_analysis Each of these modules can be used to address a different aspect of understanding variation.
Functions
xmr_charts.py
The xmr_charts module contains 3 function:
xmrchart: Generates a process behavior chart of individual values and a moving range called an XmR Chart from the provided DataFrame.xchart: Generates the X Chart portion of an XmR Chart from the provided DataFrame.mrchart: Generates the moving range (mR) Chart portion of an XmR Chart from the provided DataFrame.
process_capability
The process_capability module contains 3 functions:
capability_histogram: Generates a capability histogram of the provided process data in the context of the specifciation limits and the option of displaying the process capability indices.multi_chart: Generates the X Chart portion of an XmR Chart and a capability histogram in the same figure to enable direct visual comparison of process behavior and the distribution of the data.process_capabilities: Calculates the process capability indices of Cp, Cpk, Pp, and Ppk, based on the provided process data, upper and lower specification limits, and target value.
comparison_charts
The comparison_charts module contains 3 functions:
xchart_comparison: Generates X Charts from the provided list of DataFrames and visually compares their statistics.mrchart_comparison: Generates moving range (mR) Charts from the provided list of DataFrames and visually compares their statistics.xmr_comparison: Generates a 2x2 subplots of XmR Charts from the provided list of DataFrames and visually compares their statistics.
limit_charts
The limit_chart module contains 1 function:
limit_chart: Generates a limit chart that sequentially plots process data in the context of the provided specification limits and target.
network_analysis
The network_analysis module contains 2 function:
network_analysis: Generates a list of small multiples each containing the X Chart portion of an XmR Chart from the provided list of DataFrames. For an example of how to usenetwork_analysissee the essay Network Analysis: Advancing the utility of SPClimit_chart_network_analysis: Generates a grid of small multiples composed of the list of dataframes provided by df_list.
Notes
If you are unfamiliar with process behavior charts (control charts) visit BrokenQuality.com.
Contributing
To contribute to DataDrivenImprovement, follow these steps:
- Fork this repository.
- Create a branch:
git checkout -b <branch_name>. - Make your changes and commit them:
git commit -m '<commit_message>' - Push to the original branch:
git push origin <DataDrivenImprovement>/<location>. - Create the pull request.
Alternatively see the GitHub documentation on creating a pull request.
Contact
If you want to contact me you can reach me at James.Lehner@gmail.com.
License
This project uses the following license: MIT License.
Additional Information
- Parts of a Process Behavior Chart: Invented by Dr. Walter Shewhart in the mid-1920s at Bell Laboratories, PBCs are composed of two charts: the
X-chartand themR-chart. Where theX-chartbounds the variation associated with individual values themR-chartbounds the value-to-value variation. This is made possible through the calculation of a trio of limits known as process limits. Theupper process limit (UPL)andlower process limit (LPL)are used on theX-chart. Theupper range limit (URL)is used on themR-chart. - Two types of variation: Inherent in the characterizations of
predictableandunpredictableis the tyoe of variation action a process. A predictable process is influenced by onlyroutinecauses of variation. Anunpredictableprocess is influenced by bothroutine causes of variationandassignablecauses of variation. - Improvement:
- Predictable: To improve a predictable process
routinecauses of variation must beidentified,understood, andmitigated. This requires fundamental changes to the process must be made. These include, but are not limited to, changes to raw materials, adjustment to system settings, redesign of stations, redesign of software, calibration of measurement systems. - Unpredictable: To improve an unpredictable process
assignablecauses of variation must beidentifed,understood, andeliminated. To begin this process, an investigation into values that fall outside the process limits on thePBCmust be performed.
- Predictable: To improve a predictable process
- For those unfamiliar with process behavior charts (control charts) that are interested in learning more visit BrokenQuality.com.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file process_improvement-0.1.0.tar.gz.
File metadata
- Download URL: process_improvement-0.1.0.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0704c76ded7ab2a86e8e09f30af58099f0a6a9639b386ba3fa461210caeec1bf
|
|
| MD5 |
499d550b7e8d0b22d6ef0605d7449f8f
|
|
| BLAKE2b-256 |
37c3d60b83ae61daff9c5a90c854f5bd0d4aa8f3949757c7081d752200cf2e70
|
File details
Details for the file process_improvement-0.1.0-py3-none-any.whl.
File metadata
- Download URL: process_improvement-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64e5168c5d518dbca57bf24cac54ce3c3b00e598257ef34d1315b44c8e5bcfbf
|
|
| MD5 |
1d381818d16b5aac1febb4fb37fa5ad2
|
|
| BLAKE2b-256 |
d84967fb4cb4f98c91cfbe9639280b107a783efa3d1a4cb8a9889f00f2adf820
|