Giter Site home page Giter Site logo

sanjaymjoshi / relistats Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.79 MB

Computation of Reliability Statistics: Reliability, Confidence, Assurance

Home Page: https://github.com/sanjaymjoshi/relistats

License: MIT License

Python 5.21% Jupyter Notebook 94.79%
bernoulli-trial binomial-distribution confidence-estimation reliability reliability-engineering statistics

relistats's Introduction

Reliable Statistics

Statistics often get bad rap for being inaccurate or misleading. They are after all guesses. We can improve their quality by adding information about confidence in these numbers. This project provides tools to compute the confidence levels. Example of usage in real-life situations is reliability engineering.

Reliability engineering deals with estimating parameters or qualities of a product or process or experiment. For simplicity, we assume that all units of a product or results of an experiment are random variables. Collectively, let's call them samples. We assume that the samples are independent (one sample has no effect on another sample) and identically distributed (the reliability or properties of underlying random variable stay the same for each sample).

Concepts

  • Reliability is probability of success. The math assumes infinite number of samples, but we can get access to only a finite number of samples. Therefore, we can compute only an estimate of the actual reliability. Based on the number of samples, we qualify the quality of this estimate using confidence.
  • Confidence in reliability is probability that the actual reliability of the population is at least the provided reliability level. For example, we can say "If we see zero failures in 10 samples of a success-failure experiment, we have 95% confidence that the reliability is at least about 74%".
  • Assurance simplifies reliability and confidence by setting both of them the same. The result is just one number that is easier to communicate. For example, 90% assurance means 90% reliability with 90% confidence. Given the number of samples and number of failures, assurance is just one number.

This library provides methods to calculate these statistics for infinite and finite population sizes.

Example usage in a python file:

from relistats.binomial import assurance

n = 22
a = assurance(n, 0) or 0
print(f"Assurance at {n} good samples: {a*100:.1f}%")

References

Additional documentation.

  • Usage for installation and how to use.
  • Background for concepts and mathematical background.
  • CHANGELOG.md for revision history.

Credits

This package was originally created with Cookiecutter and the sourcery-ai/python-best-practices-cookiecutter project template. Later modified by author.

relistats's People

Contributors

sanjaymjoshi avatar

Stargazers

 avatar

Watchers

 avatar  avatar

relistats's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.