This project demonstrates the Measurement Phase of the Lean Six Sigma methodology, focusing on data generation, control charting, and process capability analysis using Python. It includes two dataset sourcing options and applies key statistical tools used in quality improvement initiatives. This was created the time I currently having my training in Yellow Belt Lean Six Sigma Certification by MF OpEx of Prof. Marcelo Machado Fernandes
The goal of this activity is to simulate data collection, evaluate process behavior, and assess capability through Python-powered visualizations and statistical insights.
You can either:
Option 1: Generate a random datasetby specifying column names and their value ranges.
Option 2: Load an external dataset from a CSV file.
The dataset includes metrics such as:
- Delivery Time
- Sample Size
- Defective Units
Data manipulation features allow you to dynamically add or remove rows for simulation and training purposes.
Used for analyzing individual data points, this chart helps in:
- Identifying process shifts
- Detecting outliers
- Determining stability of the process
This chart evaluates:
- Proportion of defective units
- Statistical control of categorical outcomes
- Control limits and stability remarks
A graphical report to:
- Assess normality
- Calculate Z-scores
- Identify sigma level (performance capability)
Explores defect rates through:
- Cumulative defect percentages
- Rate of defectives per sample
- Histogram for distribution
- Process sigma evaluation based on target limits
- Individual and P-Charts
- Process Capability Reports
- Statistical remarks and sigma level assessments
- Exportable visual plots
- Python
- pandas
- matplotlib
- numpy
- scipy.stats
Clone the repository and run the notebook in a Jupyter or Colab environment. Choose the preferred data input method and explore how the control charts and capability analysis adapt to varying process behavior.
The app/ directory contains a responsive HTML summary of the notebook.
-
Preview locally:
- Open a terminal in the repository root.
- Run
python -m http.server. - Visit
http://localhost:8000/app/in your browser.
-
Host with GitHub Pages:
- Commit and push the repository to GitHub.
- In the repository settings, enable GitHub Pages and choose the
mainbranch. - Set the site root to
/so theapp/directory is published athttps://<username>.github.io/<repository>/app/.