Skip to main content

Companion package engstats

A companion Python package for GEN_ENG 231 (IEMS 201) 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
p = es.normal_prob(1.96)          # P(Z ≤ 1.96) ≈ 0.975
es.plot_normal_curve(mean=70, std=5, shade_above=80)

Example Datasets

Name Description
concrete Compressive strength vs. water-cement ratio + age
bridges Load capacity vs. span length, by material
circuits Resistor tolerance measurements across batches
es.load_dataset("list")   # print all available datasets

Running Tests

pytest tests/ -v

Metadata

Release files for engstats 0.2.2

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.2.2
File Size Uploaded
engstats-0.2.2.tar.gz 18.1 kB Details

Built distribution (wheel)

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

Total release size: 44.8 kB

Release files / engstats-0.2.2.tar.gz

Download URL engstats-0.2.2.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
62549b248886d2cbf2beda2a6daa94cdba51b9247dff2d2cf5ab39a173818e80
BLAKE2b-256 checksum
How to use checksums
2ffc9c9e88939befbfba972527d40593102d78ddad687c3cb8981cdb60b87afa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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.2.2-py3-none-any.whl

Download URL engstats-0.2.2-py3-none-any.whl
Size 26.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1efdd862bbb5c87a5e4439dd34dc4f83b461fe272a755498b955b5ccd62e9163
BLAKE2b-256 checksum
How to use checksums
cdc7f630190dd29ab79899b8153ffd66f88ad024ef12248c2a4026afc34c206d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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 history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

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