One Resistance Reading Can Fit Many Different Networks
A meter reports 1,000 ohms of resistance across a small resistor network. Does that tell you which resistors are inside? Two 2,000 ohm branches and a different pair, 1,500 ohms with 3,000 ohms, both give the same calculated answer from their labelled values. A more accurate reading at those same terminals cannot always resolve the choice. The missing ingredient is an independent observation: new information obtained by changing what is measured.
Verification scope: this is an unpowered resistor experiment with complete offline code tested on a standard computer. The examples and graph are constructed calculations, not physical readings. No instrument connection, hardware test or physical readings are claimed.
What information did the meter actually obtain?
A resistor opposes electric current, the flow of electric charge. Its resistance is measured in ohms (Ω); one kilohm (kΩ) is 1,000 Ω. A node is one continuous electrical connection. Two branches are parallel when both connect between the same two nodes. Their equivalent resistance is the resistance of a single model resistor that gives the same terminal voltage-to-current ratio.
We call the fixed branch Rtarget and the removable parallel branch Rparallel. A digital multimeter (DMM) displays electrical measurements as numbers. In resistance mode this DMM applies its own small test current and observes all current paths between its probes. It reports the network's terminal resistance, rather than separately identifying each component.
Voltage is measured in volts (V). Current is measured in amperes (A); a milliampere (mA) is 0.001 A and a microampere (µA) is 0.000001 A. Direct current (DC) keeps one direction here. These units also appear on the meter sockets. The red lead uses the socket marked V/Ω, and the black lead uses COM, meaning common. HI (high) and LO (low) below label the red and black measurement terminals. These resistors have no positive or negative lead.
Nonidentifiability means that different internal values can produce the same observation. It is a lack of information in this experiment, separate from display resolution, the smallest displayed step, or measurement error. Even a perfect terminal measurement supplies only one equation for two unrestricted unknown branch values.
Build a detached, unpowered fixture
Use only the isolated resistor assembly described here. It has no battery, supply, capacitor, semiconductor or connection to another board. Do not extend this exercise to an unknown powered circuit. Follow the meter's safety instructions: disconnect external power and discharge stored energy before resistance measurement. With probes in the correct voltage sockets, verify zero DC voltage across the detached fixture before selecting resistance mode.
A shunt is a removable conductive cap that joins two connector pins. J1 is a two-pin header with one shunt. Fitting it completes the Rparallel branch; removing it leaves that branch open. Remove both meter probes before every shunt, resistor or wiring change. This also removes the meter's own test excitation during handling.
Nominal means the labelled design value. A ±1% initial tolerance permits a range around that value; it does not establish each individual resistor's value by comparison with a reference. A display count is one smallest shown increment: on the chosen fixed 6.000 kΩ range, one count is 0.001 kΩ = 1 Ω.
| Item | Exact choice and role |
|---|---|
| Meter and leads | Fluke 87V MAX with its TL175 test leads. Normal 6000-count display, fixed 6.000 kΩ resistance range; red V/Ω socket and black COM socket. Current sockets remain unused. |
| Population A | Two Vishay MRS25 2.00 kΩ ±1% axial resistors, ordering code MRS25000C2001FCT00. One is Rtarget; the other is Rparallel. |
| Population B | Vishay MRS25 1.50 kΩ ±1%, MRS25000C1501FCT00, as Rtarget; 3.00 kΩ ±1%, MRS25000C3001FCT00, as Rparallel. |
| Connections | One two-pin header and its removable shorting cap, two exposed probe terminals H/L, short insulated wires and secure resistor contacts. Build one reusable fixture or two separately labelled fixtures. Check the actual contacts rather than assuming an unseen breadboard rail connection. |
A watt (W) measures power, the rate of energy transfer. The MRS25 data sheet specifies 0.6 W rated dissipation at 70 °C subject to the permitted film temperature, and a 350 V operating-voltage limit. Those are component limits, not this fixture's operating targets. The experiment uses only the meter's small resistance-test excitation at 18–28 °C.
The MRS25 body is an axial package, with a wire emerging from each end: maximum body length 6.5 mm, diameter 2.5 mm and nominal lead diameter 0.6 mm. It is nonpolar. Its specified temperature coefficient is ±50 parts per million per kelvin (ppm/K): a relative resistance change per degree of temperature change; a one-kelvin change has the same size as a one-degree-Celsius change. The data sheet also discusses operating-time drift. Neither the initial ±1% nor this coefficient certifies an installed, aged resistor's present value.
The figure is available as a full-size Portable Network Graphics (PNG) raster image made of pixels and an editable Scalable Vector Graphics (SVG) drawing. Open the full-size version before wiring. The meter is a functional socket sketch; it does not show unverified internal connections or an enclosure build.

Trace each connection before measuring
| Terminal or part | Electrical connection |
|---|---|
| H | Red HI probe from the meter V/Ω socket; upper end of Rtarget; upper end of Rparallel. |
| L | Black LO probe from COM; lower end of Rtarget; J1 pin 2. |
| Rparallel lower end | J1 pin 1 only. It has no other path to L. |
| J1 fitted | Pin 1 joins pin 2 through the shunt: both resistor branches conduct between H and L. |
| J1 removed | Pin 1 is intentionally open from pin 2. Rparallel still touches H at one end but has no complete path to L; only Rtarget spans the measurement terminals. |
The dark dots in the drawing mark junctions. No wire crossing or protective-earth connection is used. The fixture's L label identifies a measurement node, not a connection to the building's earth. Do not connect another meter, computer, supply or oscilloscope: an extra path changes the topology, meaning the pattern of electrical connections.
The first reading has infinitely many explanations
Our ideal model treats both resistances as positive constant values with no extra current paths. Call the closed-state equivalent resistance E. Then:
E = Rtarget × Rparallel / (Rtarget + Rparallel) Rparallel = E × Rtarget / (Rtarget − E), provided Rtarget > E > 0.
For E = 1,000 Ω, any chosen Rtarget above 1,000 Ω gives a positive Rparallel through the second expression. Examples are (2,000, 2,000), (1,500, 3,000) and the ordered swap (3,000, 1,500), in ohms. The order matters once Rtarget names a particular physical branch. All lie on the same constant-E curve.

Manufacturing tolerance means your two physical populations need not display identical numbers. That does not invalidate the nonidentifiability result: exact equal-value examples are possible, and many unknown positive branch pairs fit one terminal value. Repeatedly measuring the same terminals more precisely does not add a second independent equation.
The earlier resistor colour-band experiment explains why adding a parallel path changes a reading. Here we ask the inverse question: which different hidden pairs remain consistent with one reading, and when can a second observation bound the separate values? The Pico MiniMeter corrects a known internal path. An unknown external path cannot be removed by guessing that correction.
Keep meter excitation and measurement error separate
Use the 87V MAX's fixed 6.000 kΩ range in its normal 6000-count mode. A count is one smallest displayed increment: here 0.001 kΩ = 1 Ω. Its resistance accuracy on this range is ±(0.2% of reading + 1 count). The current manual specifies the detailed accuracy for two years after calibration at 18–28 °C and 0–95% relative humidity. Read the complete manual and use a sound, appropriately calibrated instrument under its stated conditions. Calibration compares an instrument with reference values and their uncertainties; its status must be documented rather than assumed from the display. The higher-resolution display mode has a different count treatment; it is outside this worksheet.
At 1,000 Ω the stated meter term is 0.002 × 1,000 + 1 = 3 Ω. At 1,500 Ω it is 4 Ω, and at 2,000 Ω it is 5 Ω. These terms alone do not cover every lead, contact, jumper, leakage, handling or time-dependent error in the assembly. The manual describes lead errors around 0.1–0.2 Ω, but that is not a guaranteed bound for your contacts.
The manual lists a typical 100 µA short-circuit test current (with probe tips joined) for the 6 kΩ range, with an open-circuit test voltage below 2.8 V DC. Typical current is not a guaranteed maximum. At a nominal 1 kΩ load, a 100 µA illustration gives about 0.1 V and 10 µW total power; a microwatt (µW) is 0.000001 W. This calculation is not a measured test signal. As an illustrative passive-component check, applying the 2.8 V test-voltage envelope to a 1,485 Ω branch gives less than 0.00528 W, well below the 0.6 W component rating under this room-temperature experiment. The 1,485 Ω value is the initial −1% endpoint of the nominal 1.50 kΩ part, not a certified value at every temperature or age. Do not connect any external voltage in ohms mode.
The ohmmeter is an active test source. Do not model its resistance mode as the 10 megaohm (MΩ) input used for voltage measurement; one MΩ is one million ohms. Non-ohmic parts, meaning parts whose voltage/current relation is not proportional here, can change with the test excitation. The fixture contains only the specified resistors. A semiconductor, damp board, finger touching metal or additional branch invalidates the two-resistor model unless separately addressed.
For the controls below, an error bound is a justified maximum departure from a stated stable reference. Its interval contains every value between a lower and upper limit under the declared assumptions. It is not merely repeated-display scatter or a probability claim.
Take a closed–isolated–restored sequence
- With the detached fixture and both probes removed, inspect H/L, branch identities and J1. If another person prepares hidden populations, keep its record separate; do not let a label substitute for an observation. The builder should still verify the intended values and wiring before concealment.
- Check that leads use V/Ω and COM, and use the voltage function to confirm no external voltage before selecting Ω. With no fixture attached, check open leads and then short the probe tips. Record the short indication before and after the sequence. Leave relative (REL) mode, which subtracts a stored reference, off; this avoids silently reusing an old offset. This lead check does not calibrate the whole assembly.
- Fit J1 while both probes are detached. Connect red HI to H and black LO to L. Select the fixed 6.000 kΩ range and normal display mode. Record five settled displayed readings and their times. If they wander, investigate contacts, handling and temperature before using a bound. Transcribe one chosen reading and document enough extra allowance to cover its departures from the defined stable reference; do not divide a common error by the square root of the number of readings.
- Remove both probes. Remove J1 without moving Rtarget or its connections. Reconnect the same probes at the same H/L terminals, keeping fingers off bare metal. Record the isolated reading: it observes Rtarget plus measurement-path effects. It does not measure the now open Rparallel branch directly.
- Remove both probes again, refit J1, reconnect and record the restored reading. Compare its interval with the original closed interval. Non-overlap fails this restoration control; stop the branch calculation. Overlap is a necessary consistency check, not proof of correct topology, no drift or a complete error budget.
- Repeat the whole sequence for the other population, with probes removed before exchanging parts. Retain every actual raw reading, range, environmental condition, instrument identity/calibration status and contact observation. Keep the constructed files separate from your physical worksheet.
Comma-separated values (CSV) is a plain-text table format with one record per line. A blank sheet is supplied as observations-blank.csv. The blank file intentionally fails validation until readings and extra bounds are filled in. No serial cable, instrument application programming interface or acquisition command is supplied or claimed.
What an honest interval can identify
The reference here is the stable ideal-resistor network. For each observation the program constructs:
u_total = 0.002 × displayed_reading + 1 Ω + extra_bound interval = [displayed_reading − u_total, displayed_reading + u_total]
The nonnegative extra bound must cover effects outside the stated meter term: lead/contact offsets and changes, J1 resistance's influence on the closed reading, temperature effects and self-heating (warming from the resistor's own dissipated power), leakage (unintended current paths), settling and changes between states, all relative to the intended bare-resistor reference. Quantify those effects or leave measured bounds unqualified. An arbitrary extra number and a passing restoration check cannot turn them into established limits. The software cannot inspect your wiring, calibration or justification.
In the constructed B example the closed and restored displays are both 1,000 Ω and the isolated display is 1,500 Ω. We choose an illustrative extra allowance of 1 Ω on each, without claiming that 1 Ω covers a physical build. Then E lies in [996, 1004] Ω and Rtarget in [1495, 1505] Ω. If the same two positive, stable resistors and controlled isolation model apply, the other branch is bounded by:
Rparallel_low = E_low × Rtarget_high / (Rtarget_high − E_low) Rparallel_high = E_high × Rtarget_low / (Rtarget_low − E_high) Required separation: Rtarget_low > E_high > 0.
This follows because the reconstructed Rparallel increases with E and decreases with Rtarget in that positive-denominator region. The enclosing result, rounded outward, is [2944.950884, 3056.985744] Ω. Those decimal places show arithmetic enclosure; they do not add physical accuracy. Separate per-observation intervals give a conservative rectangle of possibilities even if some measurement errors move together.
If Rtarget_low ≤ E_high, the denominator can approach or cross zero. The program withholds a finite Rparallel interval rather than reporting a very large guessed resistor. If even Rtarget_high ≤ E_low, the observations are inconsistent with two finite positive parallel resistors. A missing or failed restoration control also withholds inference. Restored data are not averaged into a tighter closed interval.
Run the complete offline experiment
Use Python 3.9 or later. The program uses its standard library and reads only the file you provide. Download the reader ZIP archive, a bundle containing this article, diagrams, complete code, tests and worksheets. Extract it first. Run the following from its extracted folder. Output uses JavaScript Object Notation (JSON), a structured text format with named fields and lists.
python3 code/parallel_resistors.py constructed-closed-only.csv python3 code/parallel_resistors.py constructed-example.csv python3 code/parallel_resistors.py constructed-wide-bounds.csv python3 -m unittest discover -s tests -v
The first input retains the closed-reading ambiguity. The second gives two constructed three-state cases: alias_A bounds a target near 2 kΩ and alias_B near 1.5 kΩ. The third is the unresolved challenge below. A code test runs on the host computer; it is not a meter test, physical measurement or target firmware result.
The finite illustrative catalogue contains ordered nominal values 1,500, 2,000 and 3,000 Ω, with an explicitly chosen ±2% model envelope. This is not a Vishay specification, an exhaustive inventory of unknown resistors or a calibrated tolerance claim. The code intersects the target model with the isolated interval and checks the predicted parallel range. It reports all compatible ordered models, never just the first match. The three closed-only models reduce to the B model after a narrow 1.5 kΩ isolation observation. A different valid pair outside the toy catalogue can still have a legitimate continuous inferred interval.
Each CSV row has exactly these columns: case,state,reading_ohm,extra_bound_ohm,source_kind,bounds_scope. Cases contain the ordered prefix closed, optionally isolated, then restored. Use constructed for invented numbers and measured only for actual observations. A file cannot mix those source kinds. The bounds scope may be assumed, unqualified or qualified; keep it constant within a case. Measured entries default to unqualified and retain conditional observation diagnostics while target/other-branch intervals and catalogue identification are withheld. Selecting qualified is your documented declaration, not a software certification.
Measured readings on this fixed range must be whole-ohm display counts. Numeric fields accept plain nonnegative decimal notation with at most six fractional digits; scientific notation, nonfinite values and silent whitespace are refused. Readings must be greater than zero and less than 6,000 Ω, total intervals strictly positive, and extra bounds at most 1,000 Ω. At most eight cases, 24 complete rows and 128 kibibytes (KiB) are accepted; one KiB is 1,024 bytes. Malformed headers, duplicate states, invalid order, unknown qualifications, invalid text encoding and missing files fail with exit status 2 and a refusal message. No partial successful output is printed.
The actual main program is below, followed by the complete host tests. The rational-number arithmetic, using exact fractions of integers, keeps decimal inputs exact and rounds reported interval endpoints outward to six decimal places. It does not model extra paths, changing resistors, contact intermittency or nonlinear components; a passing code test cannot establish those physical assumptions.
Complete analyzer: code/parallel_resistors.py
#!/usr/bin/env python3
"""Offline parallel-resistor inference; standard-library CPython 3.9+.
All observations are manual CSV entries, never acquired from an instrument.
Intervals are conditional on the documented fixture, meter configuration,
stability and user-justified extra error bound. A declaration does not verify
those conditions. The finite 2%-band catalogue is illustrative, not exhaustive.
"""
import argparse
import csv
from fractions import Fraction as F
import io
import json
from pathlib import Path
import re
import sys
HEADER = ["case", "state", "reading_ohm", "extra_bound_ohm",
"source_kind", "bounds_scope"]
MAX_BYTES = 131072
CATALOGUE = (1500, 2000, 3000)
CATALOGUE_FRACTION = F(2, 100) # Chosen model envelope, not a data-sheet limit.
NUMBER = re.compile(r"(?:0|[1-9][0-9]{0,5})(?:\.[0-9]{1,6})?\Z")
def parallel(a, b):
"""Equivalent resistance of two positive ideal branches."""
if a <= 0 or b <= 0:
raise ValueError("branch resistances must be positive")
return a * b / (a + b)
def decimal_bound(value, upper=False):
"""Round outward to six decimal places using integer arithmetic."""
scale = 1000000
x = value * scale
units = -((-x.numerator) // x.denominator) if upper else x.numerator // x.denominator
sign = "-" if units < 0 else ""
whole, fraction = divmod(abs(units), scale)
text = "%s%d.%06d" % (sign, whole, fraction)
return text.rstrip("0").rstrip(".") if fraction else sign + str(whole)
def display_interval(interval):
return {"low_ohm": decimal_bound(interval[0]),
"high_ohm": decimal_bound(interval[1], upper=True)}
def overlap(a, b):
return max(a[0], b[0]) <= min(a[1], b[1])
def number(text, label):
if not NUMBER.fullmatch(text):
raise ValueError(label + " needs a plain nonnegative decimal with at most six decimal places")
return F(text)
def load_rows(data):
"""Strict bounded UTF-8 CSV; rows form each case's ordered prefix."""
if len(data) > MAX_BYTES:
raise ValueError("input exceeds 128 KiB")
try:
reader = csv.reader(io.StringIO(data.decode("utf-8"), newline=""), strict=True)
if next(reader, None) != HEADER:
raise ValueError("header must exactly match the documented six columns")
groups = {}
row_count = 0
common_kind = None
for row in reader:
row_count += 1
if row_count > 24 or len(row) != len(HEADER):
raise ValueError("expected at most 24 complete rows; blank and wrong-width rows are refused")
case, state, reading_text, extra_text, kind, scope = row
if not re.fullmatch(r"[A-Za-z0-9_-]{1,32}", case):
raise ValueError("case needs 1-32 letters, digits, underscores or hyphens")
if state not in ("closed", "isolated", "restored"):
raise ValueError("state must be closed, isolated or restored")
if kind not in ("constructed", "measured") or scope not in ("assumed", "unqualified", "qualified"):
raise ValueError("unknown source_kind or bounds_scope")
if common_kind is not None and kind != common_kind:
raise ValueError("do not mix constructed and measured data in one file")
common_kind = kind
reading = number(reading_text, "reading_ohm")
extra = number(extra_text, "extra_bound_ohm")
if kind == "measured" and reading.denominator != 1:
raise ValueError("measured readings on the fixed 6-kohm range need whole-ohm display counts")
if not 0 < reading < 6000 or extra > 1000:
raise ValueError("reading must be between 0 and 6000 ohm; extra bound at most 1000 ohm")
# Fixed normal 6000-count 6.000-kohm range: 0.2% reading + 1 ohm.
total = reading * F(2, 1000) + 1 + extra
if reading - total <= 0:
raise ValueError("the total observation interval must be strictly positive")
group = groups.setdefault(case, [])
if len(groups) > 8:
raise ValueError("at most eight cases are supported")
expected = ("closed", "isolated", "restored")
if len(group) >= 3 or state != expected[len(group)]:
raise ValueError("each case must be the ordered prefix closed, isolated, restored")
if group and (group[0]["kind"], group[0]["scope"]) != (kind, scope):
raise ValueError("source_kind and bounds_scope must stay fixed within a case")
group.append({"state": state, "reading": reading, "extra": extra,
"total": total, "interval": (reading - total, reading + total),
"kind": kind, "scope": scope})
if not groups:
raise ValueError("at least one observation row is required")
return groups
except (csv.Error, UnicodeError) as exc:
raise ValueError("input must be well-formed UTF-8 CSV") from exc
def catalogue_models(equivalent, isolated=None):
"""All compatible ordered models in a deliberately finite toy catalogue.
Monotonic parallel resistance maps each positive model rectangle to the
interval between its two matching corners. Intersecting its target axis
with the isolated observation preserves the necessary shared target value.
"""
models = []
for target in CATALOGUE:
x = (F(target) * (1 - CATALOGUE_FRACTION),
F(target) * (1 + CATALOGUE_FRACTION))
if isolated is not None:
x = (max(x[0], isolated[0]), min(x[1], isolated[1]))
if x[0] > x[1]:
continue
for other in CATALOGUE:
y = (F(other) * (1 - CATALOGUE_FRACTION),
F(other) * (1 + CATALOGUE_FRACTION))
possible = (parallel(x[0], y[0]), parallel(x[1], y[1]))
if overlap(possible, equivalent):
models.append({"target_nominal_ohm": target, "parallel_nominal_ohm": other})
return models
def analyze_case(case, rows):
first = rows[0]
e = first["interval"]
result = {"case": case, "source_kind": first["kind"],
"bounds_scope": first["scope"],
"qualification_verified_by_software": False,
"observations": {}, "target_ohm": None,
"inferred_parallel_ohm": None, "illustrative_catalogue_models": None,
"status": None}
for row in rows:
result["observations"][row["state"]] = {
"reading_ohm": decimal_bound(row["reading"]),
"assumed_total_bound_ohm": decimal_bound(row["total"], upper=True),
"conditional_interval": display_interval(row["interval"])}
if first["kind"] == "measured" and first["scope"] != "qualified":
result["status"] = "measured_bounds_unqualified"
return result
if len(rows) == 1:
result["status"] = "nonidentifiable_from_closed_only"
result["illustrative_catalogue_models"] = catalogue_models(e)
return result
if len(rows) != 3:
result["status"] = "restoration_missing"
return result
if not overlap(e, rows[2]["interval"]):
result["status"] = "restoration_failed"
return result
# Restore overlap is a necessary control, not proof of topology or stability.
# Do not average or shrink the closed interval using the restore observation.
a = rows[1]["interval"]
result["target_ohm"] = display_interval(a)
if a[1] <= e[0]:
result["status"] = "inconsistent_positive_parallel_model"
return result
if a[0] <= e[1]:
result["status"] = "denominator_not_separated_from_zero"
return result
# g(e,a)=e*a/(a-e) increases with e and decreases with a for a>e>0.
low = e[0] * a[1] / (a[1] - e[0])
high = e[1] * a[0] / (a[0] - e[1])
result["inferred_parallel_ohm"] = display_interval((low, high))
result["illustrative_catalogue_models"] = catalogue_models(e, a)
result["status"] = "bounded_under_fixture_assumptions"
return result
def analyze(data):
groups = load_rows(data)
return {"model": "two positive ideal stable resistors; controlled branch isolation",
"range": "Fluke87V MAX normal6000-count fixed6.000kohm",
"catalogue": {"nominal_values_ohm": list(CATALOGUE),
"fractional_model_envelope": "0.02",
"exhaustive_of_unknown_physical_resistors": False},
"physical_measurement_performed_by_program": False,
"cases": [analyze_case(case, rows) for case, rows in groups.items()]}
def main(argv=None):
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("csv_path", type=Path)
args = parser.parse_args(argv)
try:
with args.csv_path.open("rb") as source:
data = source.read(MAX_BYTES + 1)
output = analyze(data)
except (ValueError, OSError) as exc:
print("Refused: " + str(exc), file=sys.stderr)
return 2
print(json.dumps(output, indent=2, sort_keys=True, allow_nan=False))
return 0
if __name__ == "__main__":
raise SystemExit(main())
Complete host behavior and fault tests: tests/test_parallel_resistors.py
"""Host behavior tests using constructed numbers; no meter or hardware access."""
import csv
import importlib.util
import io
import json
from pathlib import Path
import subprocess
import sys
import tempfile
import unittest
from fractions import Fraction as F
ROOT = Path(__file__).resolve().parents[1]
spec = importlib.util.spec_from_file_location("parallel_resistors", ROOT / "code/parallel_resistors.py")
model = importlib.util.module_from_spec(spec)
spec.loader.exec_module(model)
def fixture(closed="1000", isolated="1500", restored="1000", kind="constructed", scope="assumed", extra="1"):
rows = [["X", "closed", closed, extra, kind, scope]]
if isolated is not None:
rows.append(["X", "isolated", isolated, extra, kind, scope])
if restored is not None and isolated is not None:
rows.append(["X", "restored", restored, extra, kind, scope])
s = io.StringIO(newline="")
w = csv.writer(s, lineterminator="\n")
w.writerow(model.HEADER)
w.writerows(rows)
return s.getvalue().encode("utf-8")
def result(**kwargs):
return model.analyze(fixture(**kwargs))["cases"][0]
class Mathematics(unittest.TestCase):
def test_two_nominal_aliases(self):
self.assertEqual(model.parallel(F(2000), F(2000)), 1000)
self.assertEqual(model.parallel(F(1500), F(3000)), 1000)
def test_continuum_has_same_equivalent(self):
for a in [1001, 1200, 1500, 2000, 3000, 5000, 1000000]:
b = F(1000 * a, a - 1000)
self.assertEqual(model.parallel(F(a), b), 1000)
def test_closed_only_preserves_ambiguity(self):
r = result(isolated=None)
self.assertEqual(r["status"], "nonidentifiable_from_closed_only")
self.assertIsNone(r["inferred_parallel_ohm"])
self.assertEqual(len(r["illustrative_catalogue_models"]), 3)
def test_isolation_distinguishes_ordered_models(self):
r = result()
self.assertEqual(r["status"], "bounded_under_fixture_assumptions")
self.assertEqual(r["illustrative_catalogue_models"], [{"target_nominal_ohm": 1500, "parallel_nominal_ohm": 3000}])
def test_equal_pair_is_not_doubled(self):
r = result(isolated="2000")
self.assertEqual(r["illustrative_catalogue_models"], [{"target_nominal_ohm": 2000, "parallel_nominal_ohm": 2000}])
def test_endpoint_and_all_corner_enclosure(self):
r = result()["inferred_parallel_ohm"]
low, high = F(r["low_ohm"]), F(r["high_ohm"])
self.assertLessEqual(low, F(996 * 1505, 1505 - 996))
self.assertGreaterEqual(high, F(1004 * 1495, 1495 - 1004))
for e in [F(996), F(1000), F(1004)]:
for a in [F(1495), F(1500), F(1505)]:
b = e * a / (a - e)
self.assertLessEqual(low, b)
self.assertGreaterEqual(high, b)
def test_outward_rounding(self):
self.assertEqual(model.display_interval((F(1, 3), F(2, 3))), {"low_ohm": "0.333333", "high_ohm": "0.666667"})
self.assertEqual(model.display_interval((F(-2, 3), F(-1, 3))), {"low_ohm": "-0.666667", "high_ohm": "-0.333333"})
def test_denominator_crosses_zero(self):
r = result(isolated="1010", extra="20")
self.assertEqual(r["status"], "denominator_not_separated_from_zero")
self.assertIsNone(r["inferred_parallel_ohm"])
def test_inconsistent_positive_model(self):
r = result(isolated="900")
self.assertEqual(r["status"], "inconsistent_positive_parallel_model")
self.assertIsNone(r["inferred_parallel_ohm"])
def test_catalogue_does_not_limit_continuous_inference(self):
r = result(isolated="4000")
self.assertEqual(r["status"], "bounded_under_fixture_assumptions")
self.assertEqual(r["illustrative_catalogue_models"], [])
self.assertIsNotNone(r["inferred_parallel_ohm"])
class Controls(unittest.TestCase):
def test_restore_missing_withholds(self):
r = result(restored=None)
self.assertEqual(r["status"], "restoration_missing")
self.assertIsNone(r["inferred_parallel_ohm"])
def test_restore_failed_withholds(self):
r = result(restored="1100")
self.assertEqual(r["status"], "restoration_failed")
self.assertIsNone(r["illustrative_catalogue_models"])
def test_measured_unqualified_withholds(self):
for scope in ["assumed", "unqualified"]:
r = result(kind="measured", scope=scope)
self.assertEqual(r["status"], "measured_bounds_unqualified")
self.assertIsNone(r["target_ohm"])
self.assertIsNone(r["inferred_parallel_ohm"])
self.assertIsNone(r["illustrative_catalogue_models"])
def test_measured_qualified_is_conditional(self):
r = result(kind="measured", scope="qualified")
self.assertEqual(r["status"], "bounded_under_fixture_assumptions")
self.assertFalse(r["qualification_verified_by_software"])
def test_accuracy_term_is_reading_dependent(self):
r = result(isolated="2000")
self.assertEqual(r["observations"]["closed"]["assumed_total_bound_ohm"], "4")
self.assertEqual(r["observations"]["isolated"]["assumed_total_bound_ohm"], "6")
def test_multiple_cases_remain_distinct(self):
b = fixture() + fixture(isolated="2000").split(b"\n", 1)[1].replace(b"X,", b"Y,")
r = model.analyze(b)
self.assertEqual([x["case"] for x in r["cases"]], ["X", "Y"])
self.assertNotEqual(r["cases"][0]["illustrative_catalogue_models"], r["cases"][1]["illustrative_catalogue_models"])
class InputFaults(unittest.TestCase):
def refusal(self, b):
with self.assertRaises(ValueError):
model.analyze(b)
def test_measured_fractional_display_is_refused(self):
self.refusal(fixture(closed="1000.1", kind="measured", scope="qualified"))
def test_zero_and_negative_ideal_branches_refused(self):
for a, b in [(0, 1), (1, 0), (-1, 2)]:
with self.assertRaises(ValueError):
model.parallel(F(a), F(b))
def test_exact_zero_denominator_boundary_withholds(self):
data = fixture().replace(b"X,isolated,1500,1", b"X,isolated,2000,991")
self.assertEqual(model.analyze(data)["cases"][0]["status"], "denominator_not_separated_from_zero")
def test_bad_and_duplicate_headers(self):
self.refusal(b"wrong,header\n")
self.refusal((",".join(model.HEADER[:-1] + [model.HEADER[0]]) + "\n").encode())
def test_malformed_quoted_header(self):
self.refusal(b'"case,state\n')
def test_invalid_utf8(self):
self.refusal(b"\xff")
def test_empty_and_header_only(self):
self.refusal(b"")
self.refusal((",".join(model.HEADER) + "\n").encode())
def test_oversize(self):
self.refusal(b"x" * (model.MAX_BYTES + 1))
def test_blank_or_wrong_width_row(self):
self.refusal(fixture() + b"\n")
self.refusal(fixture().replace(b"X,closed,1000,1", b"X,closed,1000"))
def test_non_plain_numbers(self):
for s in ["nan", "inf", "1e3", " 1000", "-1000", "1000.0000001"]:
self.refusal(fixture(closed=s))
def test_range_and_nonpositive_interval(self):
for kw in [{"closed": "6000"}, {"closed": "0"}, {"extra": "1001"}, {"closed": "1", "extra": "1"}]:
self.refusal(fixture(**kw))
def test_duplicate_state_and_bad_order(self):
self.refusal(fixture().replace(b"X,restored", b"X,closed"))
self.refusal(fixture().replace(b"X,closed", b"X,restored"))
def test_unknown_state_and_qualification(self):
self.refusal(fixture().replace(b",isolated,", b",open?,"))
self.refusal(fixture(scope="certified"))
def test_mixed_source_or_scope(self):
self.refusal(fixture().replace(b"X,isolated,1500,1,constructed,assumed", b"X,isolated,1500,1,measured,qualified"))
def test_case_name_and_case_limit(self):
self.refusal(fixture().replace(b"X,", b"../X,"))
rows = fixture(isolated=None).split(b"\n", 1)
self.refusal(rows[0] + b"\n" + b"".join(rows[1].replace(b"X,", ("X%d," % i).encode()) for i in range(9)))
def test_actual_cli_success_and_clean_refusal(self):
with tempfile.TemporaryDirectory() as d:
p = Path(d) / "input.csv"
p.write_bytes(fixture())
good = subprocess.run([sys.executable, str(ROOT / "code/parallel_resistors.py"), str(p)], capture_output=True)
self.assertEqual(good.returncode, 0, good.stderr)
self.assertEqual(json.loads(good.stdout)["cases"][0]["status"], "bounded_under_fixture_assumptions")
for b in [b'"case,state\n', b"\xff", b"x" * (model.MAX_BYTES + 1)]:
p.write_bytes(b)
bad = subprocess.run([sys.executable, str(ROOT / "code/parallel_resistors.py"), str(p)], capture_output=True)
self.assertEqual(bad.returncode, 2)
self.assertEqual(bad.stdout, b"")
self.assertIn(b"Refused:", bad.stderr)
self.assertNotIn(b"Traceback", bad.stderr)
if __name__ == "__main__":
unittest.main()
Challenge: when does the second observation still fail?
A constructed closed observation is 1,000 Ω with total bound 10 Ω. The isolated observation is 1,010 Ω with total bound 20 Ω, and the restored closed interval overlaps the first. Can you announce Rparallel = 101 kΩ from the central values? State the interval result instead, and name an experiment change that could improve identifiability.
Show the full answer
The central arithmetic gives 1,000 × 1,010/(1,010 − 1,000) = 101,000 Ω. But E spans [990, 1010] Ω and Rtarget spans [990, 1030] Ω. The possible denominator spans [−20, 40] Ω and includes zero. A finite enclosing upper limit is not justified. The code returns denominator_not_separated_from_zero with the inferred parallel interval withheld. This is a conditioning problem: small allowed changes around two nearly equal observations create very large changes in the reconstructed branch.
Within the detached passive fixture, remove both probes and physically isolate the other resistor as well, then measure it directly under an appropriate range and new justified error budget. That supplies information where the subtraction of near-equal readings was weak. It does not justify applying the old 6 kΩ range formula to a 101 kΩ measurement, or generalizing this procedure to an unknown powered board. Improving qualified bounds may help, but a more precise version of the original closed-only reading alone still cannot identify two unrestricted unknowns.
Primary sources and verification limits
- Fluke 87V MAX product and current manual links; Users Manual, October 2019, Rev. 1 February 2020, resistance procedure and Figure 5, detailed accuracy and input characteristics; October 2021 manual supplement. The posted supplement corrects alternating-current (AC) accuracy and battery-screw wording; it does not revise this resistance range.
- Fluke 87V MAX safety information. Use the actual instrument and leads only as specified. This experiment's detached resistor-only scope does not authorize hazardous-circuit measurements.
- Vishay MRS16/MRS25 product information and data sheet 28724, technical revision 7 March 2016: ordering codes, tolerance, temperature coefficient, axial dimensions and operating/thermal qualifications. The current official file includes the January 2026 disclaimer; this is not a claim of newly revised technical specifications.
Verification status: 32 actual host behavior tests pass for the supplied code, including rational interval enclosure, catalogue ambiguity, control failures and real command-line refusals. Original editable circuit and graph files accompany the full-size images. The circuit and calculations were reviewed against the cited primary documents. No physical fixture, measured error budget or meter calibration is claimed.