A package for evaluating distributions in python
Project description
pystats_norm
pystats_norm is a lightweight statistical package that performs normal distributions calculations. Inspired by the simplicity and functionality of statistical tools in base R, pystats_norm provides a focused set of functions for generating random samples, calculating cumulative probabilities, determining quantiles, and evaluating probability density functions. This package hopes to serve statisticians, data scientists, and researchers looking to derive meaningful insights from their data.
It features the following core functions:
rnorm: Generate random samples from a normal distributionpnorm: Compute probabilities for a given quantile (cumulative distribution function)qnorm: Calculate the quantile (inverse of cumulative distribution function) for a given probabilitydnorm: Evaluate the probability density function.
Contributors
The members of the pystats_norm team are:
- Sarah Eshafi
- Jason Lee
- Abdul Safdar
- Rong Wan
Installation
To use pystats_norm, please follow these instructions:
1. Install the package
In your terminal, type the following:
$ pip install pystats_norm
2. Import the functions
In your favourite Python IDE, you can import the pystats_norm functions as follows:
>>> from pystats_norm.pnorm import pnorm
>>> from pystats_norm.dnorm import dnorm
>>> from pystats_norm.qnorm import qnorm
>>> from pystats_norm.rnorm import rnorm
You can now use the functions in your Python IDE!
Functions
rnorm(n, mean=0, sd=1):
Generates a NumPy array of length n containing normally distributed random variables with mean equal to mean and sd equal to sd.
pnorm(q, mean=0, sd=1, lower_tail=True):
Computes the cumulative distribution function (CDF) for a given quantile.
qnorm(p, mean=0, sd=1, lower_tail=True):
Computes the quantile (inverse CDF) for a given probability.
dnorm(x, mean=0, sd=1):
Calculates the Probability Density of the normal distribution for a given value
Python Ecosystem Integration
pystats_norm is designed as a lightweight and intuitive package for normal distribution calculations. While similar functionality exists in libraries such as SciPy and NumPy, pystats_norm focuses exclusively on normal distributions, offering simplified functions with user-friendly syntax designed for statistical analysis. By providing well-documented and focused functionality, it serves as a niche yet essential tool in the Python ecosystem.
Related Packages:
- numpy.random.normal - Generates random samples from a normal distribution.
- scipy.stats.norm - PDF and CDF calculations for normal distributions.
Usage & Documentation
For full documentation, please visit our documentation site.
Contributing
Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.
License
pystats_norm was created by Sarah Eshafi, Jason Lee, Abdul Safdar, Rong Wan. It is licensed under the terms of the MIT license.
Credits
pystats_norm was created with cookiecutter and the py-pkgs-cookiecutter template.
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 pystats_norm-0.1.3.tar.gz.
File metadata
- Download URL: pystats_norm-0.1.3.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33ec421235b2711410e21b1b1d876454d2f75889379f61de1d39f643caf980fc
|
|
| MD5 |
0a57e140dfdc137d534719cb0f0336a7
|
|
| BLAKE2b-256 |
26bb75670af8516cbf936fc9489f0c1f81633a122ec8787d7e81129a7d3c93c9
|
File details
Details for the file pystats_norm-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pystats_norm-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
079ce88979f90c71b83f9414f41ee48451fb274a128f61009d69be956b20c2c4
|
|
| MD5 |
96a25ac14ac0e250bf4285c8155fca0e
|
|
| BLAKE2b-256 |
9fb4e557898c1d9d2c450d7da5e0643c9a0b2c03587844b25bea9a789fff2c4a
|