Skip to main content

A package for identifying, understanding, and eliminating sources of variation from business and manufacturing processes.

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 Charts and Statistical 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:

  1. From process_improvement import xmr_charts module as xmr: from process_improvement import xmr_charts as xmr
  2. 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:

  1. xmr_charts
  2. process_capability
  3. comparison_charts
  4. limit_charts
  5. 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:

  1. xmrchart: Generates a process behavior chart of individual values and a moving range called an XmR Chart from the provided DataFrame.
  2. xchart: Generates the X Chart portion of an XmR Chart from the provided DataFrame.
  3. 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:

  1. 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.
  2. 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.
  3. 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:

  1. xchart_comparison: Generates X Charts from the provided list of DataFrames and visually compares their statistics.
  2. mrchart_comparison: Generates moving range (mR) Charts from the provided list of DataFrames and visually compares their statistics.
  3. 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:

  1. 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:

  1. 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 use network_analysis see the essay Network Analysis: Advancing the utility of SPC
  2. limit_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:

  1. Fork this repository.
  2. Create a branch: git checkout -b <branch_name>.
  3. Make your changes and commit them: git commit -m '<commit_message>'
  4. Push to the original branch: git push origin <DataDrivenImprovement>/<location>.
  5. 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-chart and the mR-chart. Where the X-chart bounds the variation associated with individual values the mR-chart bounds the value-to-value variation. This is made possible through the calculation of a trio of limits known as process limits. The upper process limit (UPL) and lower process limit (LPL) are used on the X-chart. The upper range limit (URL) is used on the mR-chart.
  • Two types of variation: Inherent in the characterizations of predictable and unpredictable is the tyoe of variation action a process. A predictable process is influenced by only routine causes of variation. An unpredictable process is influenced by both routine causes of variation and assignable causes of variation.
  • Improvement:
    • Predictable: To improve a predictable process routine causes of variation must be identified, understood, and mitigated. 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 assignable causes of variation must be identifed, understood, and eliminated. To begin this process, an investigation into values that fall outside the process limits on the PBC must be performed.
  • For those unfamiliar with process behavior charts (control charts) that are interested in learning more visit BrokenQuality.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

process_improvement-1.0.1.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

process_improvement-1.0.1-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file process_improvement-1.0.1.tar.gz.

File metadata

  • Download URL: process_improvement-1.0.1.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

Hashes for process_improvement-1.0.1.tar.gz
Algorithm Hash digest
SHA256 5119330fce48f5c8d0ac338837d7e11a88c5f0f44d447b4bfe84fbf46718b5b4
MD5 727a0c23f312221f08ff5ecb5c47f19c
BLAKE2b-256 05904d00cbdae4d604ea35c994f02e490b148f66300e7f54558a5edd47d6e65d

See more details on using hashes here.

File details

Details for the file process_improvement-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for process_improvement-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 12fd3acc67bbede6bdfcbe8a9669327f8cc9cd7a961793458c7ad5b903b5514b
MD5 a1f642c64737956d0441420600028051
BLAKE2b-256 98c92427e6f4e810f8c5fa2f910760747559323f53f20f78cf724620478ef3ba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page