skip to content

case studies from practice (general form only) · lesson 4 of 9 · sources checked 2026-11-20

break-even is not a margin

This lesson shows a price check that tested break-even in place of the margin floor, and a cost cut that destroys the sample.

status of this lesson: documented in my test system

purpose

A price check that passes can still approve a price that loses the business. The check must test the margin floor, not only break-even. A cost cut can also remove the data that the product sells.

objectives

  1. Name the first belief, the measurement, and the cause of the case.
  2. Classify the two errors of the case as an economics error and a measurement error.
  3. Write a price check that tests the margin floor and gives the break-even value beside it.
  4. Explain why a sample of one trial cannot give a claim about a pass rate.

new terms

how it works

A case study here has six parts: the situation, the first belief, the measurement, the result, the cause, and the general lesson.

The words of the case:

wordmeaning
PriceWhat the customer pays for one benchmark
CostWhat one benchmark costs the operator
MarginThe price minus the cost, divided by the price
RatioThe price divided by the cost

the situation and the first belief

The benchmark platform, my test system, has a price check in its code. The check compares the price of a benchmark with the marginal cost of one benchmark. The test passed with a wide gap. Thus the first belief was that the price covered the cost with room.

the measurement

The check computed break-even, not the margin. It asked one question: is the price above the cost? A margin calculation from the same code asks a different question: is the margin above the floor? The answers can differ.

example Take an example margin floor of 50% and an example cost of 2.00 cost units. A price of 3.10 units clears break-even. Its margin is 35.5%, below the example floor. The check passes, and the margin floor test fails.

A margin alarm of the scheduler also uses break-even. Thus no check reported the low margin.

the cause

A test with a floor at zero margin cannot report a margin problem. It finds only a price below cost. For example, a margin of 1% passes it.

The unit cost of a benchmark is an estimate that nobody measured. Two internal cost estimates of the platform disagree. Thus the cost input of the check has no measured base.

the correction

The correction has three parts in my model:

  1. Compute the correct price from the margin floor: the cost divided by one minus the floor.
  2. Store the cost of each run when the run writes its result. Then the cost input is a measurement.
  3. Give an input with no known cost a pessimistic cost, never zero. A zero cost makes each price look good.

For example, an example cost of 2.00 units and an example floor of 50% give a price of 4.00 units. The code example computes this.

the second trap: a smaller sample

A cost cut can also change the sample. For example, a benchmark can run one trial in place of many trials to save cost.

The Wilson interval shows what one trial can show. NIST gives the Wilson limits as a function of the observed proportion, the sample size, and the normal critical value NIST, source 1.

With z = 1.96 and one trial, one success gives an interval from 0.2065 to 1. Zero successes give an interval from 0 to 0.7935. Each result leaves most of the range open.

Thus a run of one trial is not a cheaper benchmark. It is a different product that knows much less. A price for each attempt is a change of the price. A run of one trial changes what the product can claim.

The platform has a proposal to bill by attempt. It is a proposal, and it is not built.

the general lesson

Test the margin floor, not break-even. Measure the unit cost before a price change. Keep the sample size that the claim must have, also when it costs more. For example, a published pass rate must keep its full count of trials.

the two sides

automation sidedetection side
The operator read "price above cost" as a good price. A cut to one trial looked like a saving.No detection signal applies to this case. The finance view sees a margin below the floor. The measurement view sees an interval that covers most of the range.

design decisions

optiongaincostwhen it is correct
Test break-even onlyOne simple comparisonIt cannot see a margin below the floorNever as the only price check
Test the margin floor, and show break-even beside itThe check fails on a thin margin. The reader sees both values.The floor must be a written valueEach price check
Use an estimated costA check can run before a measurement existsThe check is only as good as the estimateUntil a measured cost exists, with the word "estimate"
Store a measured cost for each runThe cost input is dataEach run must record its cost partsBefore each price change
Cut the trials to save costA lower cost for each benchmarkThe interval becomes too wide for a claimNever for a published pass rate

diagram

The first diagram gives the six parts of a case.

the six parts of a case, in reading order

A case starts at the first belief and ends at a check that you can use on a new system.source: My model of the parts of a case study

The second diagram applies the two tests of this case to example ratios.

A matrix of five example ratios of price to cost: 0.9, 1.0, 1.55, 2.0, and 3.0. Columns give the margin, the break-even test, and the margin floor test at an example floor of 50%. At 1.0 and 1.55 the break-even test passes and the margin floor test fails.

two tests on one price axis, with an example margin floor of 50%
price divided by costmarginbreak-even testmargin floor test
0.9-11%failfail
1.00%passfail
1.5535%passfail
2.050%passpass
3.067%passpass
Each row is an example ratio of price to cost. Only the margin floor test fails the thin margin.source: My model of a price check against an example margin floor

code example

The example uses synthetic example values in cost units. It holds no real price and no real cost.

m35-x05-price-from-floor.tstypescript

Compute the price from an example margin floor, and give the break-even test and the margin floor test beside it.

// Price from a margin floor, with the break-even value beside it.
// All inputs are synthetic example values in "cost units". No real price.
type Case = { name: string; cost: number | null; price: number };

const FLOOR = 0.5; // example margin floor of 50%
const PESSIMISTIC_COST = 3.1; // example cost for an input with no measured cost

function margin(price: number, cost: number): number {
  return (price - cost) / price;
}

function priceFromFloor(cost: number, floor: number): number {
  return cost / (1 - floor);
}

const cases: Case[] = [
  { name: "case A", cost: 2.0, price: 1.8 },
  { name: "case B", cost: 2.0, price: 3.1 },
  { name: "case C", cost: 2.0, price: 4.0 },
  { name: "case D", cost: null, price: 4.0 },
];

for (const c of cases) {
  // An input with no measured cost gets the pessimistic example cost, never 0.
  const cost = c.cost ?? PESSIMISTIC_COST;
  const m = margin(c.price, cost);
  const breakEven = c.price >= cost ? "pass" : "fail";
  const floorTest = m >= FLOOR ? "pass" : "fail";
  const need = priceFromFloor(cost, FLOOR);
  console.log(
    `${c.name}: cost=${cost.toFixed(2)} price=${c.price.toFixed(2)} ` +
      `margin=${(m * 100).toFixed(1)}% break-even=${breakEven} ` +
      `floor=${floorTest} price-from-floor=${need.toFixed(2)}`,
  );
}

output

One line for each case: the cost, the price, the margin, the two test results, and the price from the floor.

case A: cost=2.00 price=1.80 margin=-11.1% break-even=fail floor=fail price-from-floor=4.00
case B: cost=2.00 price=3.10 margin=35.5% break-even=pass floor=fail price-from-floor=4.00
case C: cost=2.00 price=4.00 margin=50.0% break-even=pass floor=pass price-from-floor=4.00
case D: cost=3.10 price=4.00 margin=22.5% break-even=pass floor=fail price-from-floor=6.20

The output shows that case B passes break-even and fails the margin floor test. Case D has no measured cost, so it gets the pessimistic example cost. Its price then fails the floor.

data

margin against the ratio of price to cost

status of this figure: example

margin against the ratio of price to cost0%20%33.33%50%60%66.67%75%80%87.5%90%break-even 0%example floor 50%11.251.522.5345810%

source: Benchmark platform, code (my test system): margin formula, with example ratios; date 2026-11-16; condition: Margin is revenue minus cost, divided by revenue. Values have 2 decimal places.

data table
margin against the ratio of price to cost
price divided by cost%
10
1.2520
1.533.33
250
2.560
366.67
475
580
887.5
1090
The curve is computed from the margin formula, with example ratios. A ratio of 1 is break-even, with a margin of 0%. An example margin floor of 50% is met at a ratio of 2. The chart has no price and no cost.

The first chart shows the gap between the two tests. Each ratio of 1 or more and less than 2 passes break-even and fails the example floor.

width of the wilson interval against the number of trials

status of this figure: example

width of the wilson interval against the number of trials89.0881.0974.9365.9252.6840.1426.7119.2313.738.736.1912351020501002005001000percentage points

source: Benchmark platform, code (my test system): Wilson interval formula, with an example pass rate; date 2026-11-16; condition: Example input: a pass rate of 50% and z = 1.96. Width is the upper bound minus the lower bound.

data table
width of the wilson interval against the number of trials
trialspercentage points
189.08
281.09
374.93
565.92
1052.68
2040.14
5026.71
10019.23
20013.73
5008.73
10006.19
The curve is computed from the Wilson formula with z = 1.96 and an example pass rate of 50%. At 1 trial the interval is almost the whole range. Values have 2 decimal places.

The second chart shows why a cut in trials removes the claim. The interval becomes narrow only with many trials.

failure modes

problemcausecorrection
A price passes its check with a thin margin.The check tests break-even, not the margin floor.Compute the price from the margin floor, and test the margin against the floor.
A margin alarm never fires.The alarm also uses break-even.Give the alarm the margin floor as its limit.
Two cost figures for one benchmark disagree.Nobody measured the cost of a run.Store the cost of each run when the run writes its result.
A new input makes each price look good.The input has no known cost, and the check uses zero.Give an input with no known cost a pessimistic cost.
A cheaper benchmark gives a pass rate with no meaning.A cost cut reduced the run to one trial.Keep the sample size that the claim must have. Change the price, not the sample.

check questions

  1. Name the first belief, the measurement, and the cause of the price check case.

    sample answer

    The first belief was that the price covered the cost with room, because the check passed. The measurement showed that the check computed break-even, not the margin. The cause was a test with a floor at zero margin, which cannot report a margin problem.

  2. A benchmark runs one trial in place of many trials to save cost. Which class of error is this?

    1. An operations error
    2. A measurement error
    3. A design error of the price check
    4. No error, because the cost goes down
    answer

    b. A measurement error

    One trial gives an interval that covers most of the range. The product then cannot support a claim about a pass rate.

  3. The example cost is 3.00 units and the example margin floor is 50%. Which price does the check compute from the floor?

    1. 3.00 units
    2. 4.50 units
    3. 6.00 units
    4. 1.50 units
    answer

    c. 6.00 units

    The price from the floor is the cost divided by one minus the floor: 3.00 divided by 0.5 is 6.00.

  4. An input has no known cost. Which cost does the price check use?

    1. A pessimistic cost
    2. Zero
    3. The lowest cost of the other inputs
    4. The price
    answer

    a. A pessimistic cost

    A zero cost makes each price look good. A pessimistic cost keeps the check strict until a measured cost exists.

  5. Explain why a run of one trial cannot support a claim about a pass rate.

    sample answer

    With one trial, the Wilson interval at z = 1.96 is from 0.2065 to 1 for one success and from 0 to 0.7935 for zero successes. Each result leaves most of the range open. Thus the run is a different product that knows much less, not a cheaper benchmark.

exercise

exercise Do this task on paper, or with the code example in your own lab. All values are synthetic example values in cost units.

The inputs:

casecostprice
15.006.50
25.0012.00
3no measured cost12.00

The rules: the example margin floor is 50%. The pessimistic example cost for an input with no measured cost is 8.50.

  1. Compute the margin of each case: the price minus the cost, divided by the price.
  2. Write the result of the break-even test for each case.
  3. Write the result of the margin floor test for each case.
  4. Compute the price from the floor for each case.
sample answer

The answer uses the three cases and the two rules.

  • Case 1: the margin is about 23.1%. Break-even passes. The floor test fails. The price from the floor is 10.00.
  • Case 2: the margin is about 58.3%. Both tests pass. The price from the floor is 10.00.
  • Case 3: the cost is the pessimistic 8.50. The margin is about 29.2%. Break-even passes. The floor test fails. The price from the floor is 17.00.

Case 1 is the error of the case study: a price that clears break-even and fails the floor.

sources

  1. Confidence intervals (for a proportion), NIST, documentation, read 2026-11-20
  2. Benchmark platform, code (my test system): a price check and a margin alarm that test break-even, and a proposal to bill by attempt, 2026-11 (not public).
  3. My model of the price check against a margin floor, with example values, 2026-11 (not public).