# 099. Biological measurement plausibility

**Question:** Which observations violate simple dimensional or mass consistency checks?

## Result

The largest computed metric is 155 for Measured components exceed whole; the smallest is 0 for Nonpositive ring count. Metric: flagged_rows (Rows flagged).

Component weights can differ because of measurement timing and preparation. Flags are review candidates, not established errors.

![Biological measurement plausibility](outputs/chart.png)

| rule | flagged_rows | checked_rows | flagged_share |
| --- | --- | --- | --- |
| Nonpositive height | 2 | 4177 | 0.0004788 |
| Diameter exceeds length | 1 | 4177 | 0.0002394 |
| Shell weight exceeds whole | 1 | 4177 | 0.0002394 |
| Shucked weight exceeds whole | 4 | 4177 | 0.0009576 |
| Nonpositive ring count | 0 | 4177 | 0 |
| Measured components exceed whole | 155 | 4177 | 0.03711 |

The chart shows 6 of 6 result rows; the table previews the first 6 in the analysis-defined order. [Download the full result table](outputs/results.csv). Numerical values are computed from the source; missing results stay unavailable.

## Method

Transparent physical measurement screens with explicit denominators.

The study uses shared source preparation and reusable statistical routines. Its specific transformations are in [analysis.py](analysis.py), and common model/evaluation code is in [portfolio/methods.py](../../portfolio/methods.py). The [notebook](analysis.ipynb) executes the study and displays the saved results.

## Decision and limitations

Inspect original records before excluding extreme or inconsistent specimens.

Physical measurements use source scaling. Rings are the modeled target; the source describes an approximate age conversion. Site and animal group identifiers are unavailable, limiting biological generalization. 

Related studies may share observations or holdouts. These are focused analytical studies, not independent replications or deployed business systems. Any model refinements informed by these results need new untouched evaluation data. No commercial impact is inferred from an association or backtest.

## Reproduce

From the repository root, after installing `requirements.txt`:

```powershell
python projects/099-biological-measurement-plausibility/analysis.py
```

Source data are downloaded automatically if absent. Original archives are retained unchanged and checked by SHA-256. The cleaned cache normalizes column names; field-specific changes are visible in [data preparation](../../portfolio/data.py). Runtime evidence is in [receipt.json](outputs/receipt.json).

## Source

[Abalone](https://archive.ics.uci.edu/dataset/1/abalone), Nash et al. (1994). [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Source data are transformed and aggregated in this study. [Source provenance](../../data/provenance/abalone.json) and [prepared-data audit](../../data/provenance/abalone_prepared.json) record the downloaded files, field coverage and hashes.
