Quality data analysis toolkit
Project description
qda-toolkit: a Python Package for Statistical Process Control and Quality Data Analysis
This repository contains qda-toolkit, a Python package that provides functions for creating control charts and statistical models. The output is designed to be user-friendly and similar to the one provided by other popular commercial software for statistical process control and quality data modeling.
Features
The QDA module contains several classes, each with its own functionality:
-
ControlCharts: This class provides several methods for creating control charts (Shewhart, small shifts and multivariate CC):
IMR: This method creates an Individual and Moving Range (IMR) control chart.XbarR: This method creates an X-bar and R control chart.XbarS: This method creates an X-bar and S control chart.EWMA: This method creates the exponentially weighted moving average (EWMA) control chart for detecting small shifts.CUSUM: This method creates the cumulative sum (CUSUM) control chart for detecting small shifts.T2hotelling: This method creates the Hotelling's T^2 control chart for multivariate data.
Each of these methods returns a dataframe with the calculated control limits and plots the control chart if
plotitis set toTrue. -
constants: This class provides static methods to get various statistical constants such as
d2,d3,c4,A2,D3, andD4. These constants are used by theControlChartsclass to design the control charts. -
Models: This class provides the methods to fit an
ARIMAof any order(p,d,q)(i.e., AR(p), I(d), MA(q)). -
StepwiseRegression: This class provides methods for performing stepwise regression, a method of fitting regression models in which the choice of predictive variables is carried out by an automatic procedure. The class provides methods for fitting the model (
fit), forward selection (forward_selection), backward elimination (backward_elimination), and summarizing the model (SWsummary). -
Summary: This class provides a method for summarizing the results of a linear regression (
regression) or ARIMA (ARIMA) model in a user-friendly way that mimics the output of other popular software for statistical analysis. The output of the summary functions output the final estimates of parameters, the residual sum of squares, and Ljung-Box Chi-Square Statistics, where applicable.
Installation
To install the QDA module, you can install it via pip.
pip install qda-toolkit
Usage
After installation, you can import the qdatoolkit module in your Python script as follows:
import qdatoolkit as qda
Then, you can create an instance of the QDAModule class and use its methods to create control charts and fit models.
# control charts
qda.ControlCharts.IMR(dataframe, column_name)
# summary of a linear regression model
qda.Summary.regression(regression_model_object)
License
This project is licensed under the CC BY-NC-SA 4.0 license. See the LICENSE.md file for details.
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 qda_toolkit-0.1.9.tar.gz.
File metadata
- Download URL: qda_toolkit-0.1.9.tar.gz
- Upload date:
- Size: 22.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8133c6c385c1fb04ebb6cc8e0b8dacc80e16b53d1181c1f8b51ee2f3ae70ed0
|
|
| MD5 |
17eb93f471a1531f4c98395e144c97f1
|
|
| BLAKE2b-256 |
4d5a6ad296430dea71dfb69853d25b15e0059841cd5ce9646b03e5bf477e94d0
|
Provenance
The following attestation bundles were made for qda_toolkit-0.1.9.tar.gz:
Publisher:
publish.yml on polimi-iclabs/qda-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qda_toolkit-0.1.9.tar.gz -
Subject digest:
e8133c6c385c1fb04ebb6cc8e0b8dacc80e16b53d1181c1f8b51ee2f3ae70ed0 - Sigstore transparency entry: 983742799
- Sigstore integration time:
-
Permalink:
polimi-iclabs/qda-toolkit@40857e491e1a759481a8156a08be5b1f485ed386 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/polimi-iclabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@40857e491e1a759481a8156a08be5b1f485ed386 -
Trigger Event:
release
-
Statement type:
File details
Details for the file qda_toolkit-0.1.9-py3-none-any.whl.
File metadata
- Download URL: qda_toolkit-0.1.9-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5434eb9e75cece158dd172f1cf251d63ff76846db60252a0c990f6c08debab61
|
|
| MD5 |
1dafdb34cf8e2de6f92a5d2a02fd7730
|
|
| BLAKE2b-256 |
96a2b3ac0ef860cc2fefa25f6fec1f327d76b791fdf26873ee8d57b065ac052c
|
Provenance
The following attestation bundles were made for qda_toolkit-0.1.9-py3-none-any.whl:
Publisher:
publish.yml on polimi-iclabs/qda-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
qda_toolkit-0.1.9-py3-none-any.whl -
Subject digest:
5434eb9e75cece158dd172f1cf251d63ff76846db60252a0c990f6c08debab61 - Sigstore transparency entry: 983742811
- Sigstore integration time:
-
Permalink:
polimi-iclabs/qda-toolkit@40857e491e1a759481a8156a08be5b1f485ed386 -
Branch / Tag:
refs/tags/v0.1.9 - Owner: https://github.com/polimi-iclabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@40857e491e1a759481a8156a08be5b1f485ed386 -
Trigger Event:
release
-
Statement type: