Skip to main content

Quality data analysis toolkit

Project description

Logo

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:

  1. 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 plotit is set to True.

  2. constants: This class provides static methods to get various statistical constants such as d2, d3, c4, A2, D3, and D4. These constants are used by the ControlCharts class to design the control charts.

  3. Models: This class provides the methods to fit an ARIMA of any order (p,d,q) (i.e., AR(p), I(d), MA(q)).

  4. 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).

  5. 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


Download files

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

Source Distribution

qda_toolkit-0.1.9.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.

qda_toolkit-0.1.9-py3-none-any.whl (22.7 kB view details)

Uploaded Python 3

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

Hashes for qda_toolkit-0.1.9.tar.gz
Algorithm Hash digest
SHA256 e8133c6c385c1fb04ebb6cc8e0b8dacc80e16b53d1181c1f8b51ee2f3ae70ed0
MD5 17eb93f471a1531f4c98395e144c97f1
BLAKE2b-256 4d5a6ad296430dea71dfb69853d25b15e0059841cd5ce9646b03e5bf477e94d0

See more details on using hashes here.

Provenance

The following attestation bundles were made for qda_toolkit-0.1.9.tar.gz:

Publisher: publish.yml on polimi-iclabs/qda-toolkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for qda_toolkit-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5434eb9e75cece158dd172f1cf251d63ff76846db60252a0c990f6c08debab61
MD5 1dafdb34cf8e2de6f92a5d2a02fd7730
BLAKE2b-256 96a2b3ac0ef860cc2fefa25f6fec1f327d76b791fdf26873ee8d57b065ac052c

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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