Skip to main content

Quantitative assessment of discrimination based on the binomial distribution

Project description

Binomial Bias

Library to compute and plot quantitative assessments of discrimination within organizations, based on the binomial distribution.

This code supports the following paper:

Quantitative assessment of discrimination in appointments to senior Australian university positions. Robinson PA, Kerr CC. Under review (2023).

There are several ways to use this library, described below.

Webapp

A live webapp is running at https://binomialbias.sciris.org.

Local installation and usage

Python

To use locally with Python, run

pip install binomialbias

This can then be run via e.g.:

import binomialbias as bb
bb.plot_bias(n=20, n_e=10, n_a=7)

This example shows the statistics for the case where there were n = 20 appointments (e.g., the size of a committee), out of which n_e = 10 people were expected to belong to a given group (e.g., female), and for which n_a = 7 actually were.

Shiny

To run the Shiny app, clone the repository from GitHub, then install with

pip install -e .[app]

The PyShiny app can then be run locally via the run script.

Structure

  • All code for the Python package is in the binomialbias folder.
  • The script for generating the figure in the papers is in the scripts folder.
  • Continuous integration tests are in the tests folder.
  • Older Jupyter and Matplotlib versions are available in the archive folder.

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

binomialbias-1.1.2.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

binomialbias-1.1.2-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file binomialbias-1.1.2.tar.gz.

File metadata

  • Download URL: binomialbias-1.1.2.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for binomialbias-1.1.2.tar.gz
Algorithm Hash digest
SHA256 05e9a4576dbc21abfda120d324f31bfbb3a2cee4f9ad4261b6a2d0239ae6f22c
MD5 d955075281a08ffcb56b14ea36457ac3
BLAKE2b-256 a4c2c59d57ec4900ca21f1783762b7579d8d2344fb1c88b63d17e57296625919

See more details on using hashes here.

File details

Details for the file binomialbias-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: binomialbias-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for binomialbias-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 85a4756bf8f8ea7fa04796f0e8d723c0f9169285ec850818e86f54e429465655
MD5 37333bafa2e03e846f170c70840e7782
BLAKE2b-256 5f6d30a9c2fd2fe423d82308bf0ca83c25bd1962452c1e8a2066377f11b47176

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page