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.0

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.0
File Size Uploaded Provenance Actions
engstats-0.3.0.tar.gz 230.3 kB Without provenance Details for engstats-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 270.6 kB

Release files / engstats-0.3.0.tar.gz

Download URL engstats-0.3.0.tar.gz
Size 230.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a10926c242c022d68b1fbc915af57aca5b9ffa47c904c6c72c263f50ab76823b
BLAKE2b-256 checksum
How to use checksums
c9c253a6e80681e0d8f9987646cdf3233004a0c2e674a5251e54b4a1fb4a5531
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.0-py3-none-any.whl

Download URL engstats-0.3.0-py3-none-any.whl
Size 40.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa9c039483a262469d75f14573ac19a6040503b06f315b86bc9a51283385d336
BLAKE2b-256 checksum
How to use checksums
61942d1dbc91360893640d7b6a4f7926ec516275e8fe121d3cc0ae417e775cf2
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.0

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