Skip to main content

Companion package engstats

A companion Python package for GEN_ENG 231 introductory engineering statistics class.

The package engstats provides a companion package to handle making visualizations for an introductory engineering statistics class.

A user manual is currently under construction.


Installation

pip install -U engstats

Or from source:

git clone https://github.com/prof-mc/engstats
cd engstats
pip install -e ".[dev]"

Quick Start

import engstats as es

# Load a bundled dataset
df = es.load_dataset("concrete")
df.head()

# Descriptive statistics
es.five_number_summary(df["strength_mpa"])
es.summary_stats(df["strength_mpa"])

# Simple linear regression
model = es.simple_linear_regression(df, x="water_cement", y="strength_mpa")
model.summary()

# Diagnostic plots
es.plot_scatter_regression(df, x="water_cement", y="strength_mpa")
es.plot_residuals(model)
es.plot_qq(model)

# Hypothesis testing
group_a = df[df["age_days"] <= 14]["strength_mpa"]
group_b = df[df["age_days"] >= 28]["strength_mpa"]
result = es.two_sample_ttest(group_a, group_b)
print(result)

# Probability (use scipy.stats directly)
from scipy import stats
p = stats.norm.cdf(1.96)          # P(Z ≤ 1.96) ≈ 0.975

Running Tests

pytest tests/ -v

Metadata

Release files for engstats 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for engstats 0.3.1
File Size Uploaded Provenance Actions
engstats-0.3.1.tar.gz 232.9 kB Without provenance Details for engstats-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for engstats 0.3.1
File Interpreter ABI Platform Actions
engstats-0.3.1-py3-none-any.whl Python 3 none any Details for engstats-0.3.1-py3-none-any.whl

Total release size: 276.1 kB

Release files / engstats-0.3.1.tar.gz

Download URL engstats-0.3.1.tar.gz
Size 232.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b32e9a6392c6de37d310c191daf4adc3c38a63a79488767ce5b9b3e423678bc5
BLAKE2b-256 checksum
How to use checksums
4fb1883a3f8ad40487618425387cfae90581952a1618462038ccb51708387b5c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / engstats-0.3.1-py3-none-any.whl

Download URL engstats-0.3.1-py3-none-any.whl
Size 43.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1699a9d54a51444cda8b420fd604af57ccaad9bf33e8d015d47fdf0ed24c849a
BLAKE2b-256 checksum
How to use checksums
557d512668cf9f492d256e8e8510f7722ff122c2f2220daa6f63eedbe7b6f451
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for engstats 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page