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.2.0.tar.gz (24.1 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.2.0-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file qda_toolkit-0.2.0.tar.gz.

File metadata

  • Download URL: qda_toolkit-0.2.0.tar.gz
  • Upload date:
  • Size: 24.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qda_toolkit-0.2.0.tar.gz
Algorithm Hash digest
SHA256 bd62daa2253cf9805d27e2fe526ee4b37698a2264bcf32d89dfa22c30722e13e
MD5 500472921e3da39a294b8a0d7f2f178d
BLAKE2b-256 6e8a44b515dae7d5be9eb64e05b0122d8dfb4a21c23c7cd724d292bf01f6860e

See more details on using hashes here.

Provenance

The following attestation bundles were made for qda_toolkit-0.2.0.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: qda_toolkit-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 24.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for qda_toolkit-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 373a7a28082b15db781f197b02e8d42a9e17f14fcf34e756f1432d170ddde6da
MD5 20318bb1bd8f906154d58df84e1caf18
BLAKE2b-256 c07adbbe61cd7cdda2239d513b3b7e3936351e49f05c1fc710229eca84e8234f

See more details on using hashes here.

Provenance

The following attestation bundles were made for qda_toolkit-0.2.0-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