Market Sizing and Opportunity Assessment Questions
Estimating the size of a market or opportunity and judging whether it is worth pursuing. Covers TAM/SAM/SOM definitions and calculation, top-down and bottom-up sizing, back-of-the-envelope estimates of customers or users from stated assumptions, counting target accounts from company lists and public datasets, choosing and reconciling conflicting data sources, sizing new categories or two-sided markets with little spend data, adoption-curve and market-growth estimation, sensitivity, scenario and uncertainty analysis, segment selection and ability to win, obtainable share given incumbent lock-in, channel partners and competitor reactions, ranking opportunities or regions, early signals that sizing assumptions are wrong, and turning a sizing result into a go/no-go or investment recommendation. Tests structured quantitative reasoning and the ability to defend each assumption. Pricing design, unit-economics and NPV modelling, A/B test statistics, go-to-market execution plans, competitor analysis, market-entry strategy and roadmap prioritization are covered elsewhere.
Estimate how many people would pay for a $10-a-month consumer subscription fitness app in a city of 3 million people. State your assumptions, then say how you would sanity-check the order of magnitude.
Sample Answer
The idea in plain words
This is a Fermi estimate: a number you cannot look up, built by chaining small guesses that you can defend one at a time, and judged by its order of magnitude (is it hundreds, thousands or hundreds of thousands?) rather than by its last digit. Start from the 3 million residents and keep only the people who pass each filter: right age, owns a smartphone, exercises, already uses fitness apps, becomes an active user of this app, and then pays. The product of the shares is the answer, and the price turns payers into revenue. The estimate is only as good as the assumptions, so state each with a range, find out which ones move the answer most, and check the result with a second route.
The method, in the order you would do it
- Define the unit. "People who pay" at which moment? Here: paying subscribers at the end of the first year, which also gives the monthly recurring revenue (MRR: what all subscribers pay in one month).
- Write the funnel (a chain of filters) from the population down, one share per stage, each a plausible assumption with a low, base and high value.
- Place the reachable population. The people who already use some fitness app each month (the pool you can actually reach, like a SAM, the serviceable addressable market) is a better anchor than "all residents", because a person who never uses apps will not be won by a launch.
- Add the launch-year view. In year one the app will not hold a steady-state share. MAU (monthly active users: people who open the app at least once in a month) is a launch-year quantity, and payers are a share of MAU.
- Convert to revenue. Payers x 10 USD x 12 months is the annual run rate (the current monthly revenue multiplied by 12, which holds today's level for a year; it is not a forecast of what the year will actually bring in). ARPU (average revenue per user) divides revenue over all monthly actives, while ARPPU (average revenue per paying user) divides over payers only.
- Show the range (one input at a time, and all inputs together) and sanity-check with a second route.
With stage shares p1,…,p6 and population P:
payers=P×p1×p2×p3×p4×p5×p6Assumptions and the program
Every share below is an assumption with a plausible range, not a statistic about a real city. The shares are treated as independent (knowing one tells you nothing about another) and multiplied; in a real population they are correlated (people who exercise weekly are more likely to own a smartphone), which this simple version ignores.
In an interview you would not have the figures to hand, so say where each would come from and give your own first guess: the age band from the city's age structure (a census or a population pyramid), smartphone ownership from a national telecom or household survey, weekly exercise from a public-health or lifestyle survey, monthly use of any fitness app from an app-usage report or your own sample of friends, and the last two shares (monthly active in our app, and paying) from comparable subscription apps or a pilot. The first four describe the city and can be looked up; the last two describe your product and can only be guessed until you test.
| Stage | Low | Base | High |
|---|---|---|---|
| Aged 18 to 54 | 0.40 | 0.45 | 0.50 |
| Has a smartphone | 0.85 | 0.90 | 0.95 |
| Exercises weekly | 0.30 | 0.40 | 0.50 |
| Uses any fitness app monthly (the reachable pool) | 0.25 | 0.35 | 0.45 |
| Is monthly active in our app (launch year) | 0.02 | 0.06 | 0.12 |
| Pays, given monthly active in our app | 0.10 | 0.25 | 0.35 |
The program has three parts: the core funnel (the multiplication that answers the question), a one-input-at-a-time swing table, and an optional simulation with four self-checks that are extra depth. A line-by-line reading follows the output.
import math
import numpy as np
POP = 3_000_000 # given: city population
PRICE = 10 # given: USD per month
# ASSUMPTIONS (low, base, high), each a share of the previous stage
STAGES = [
("aged 18 to 54", 0.40, 0.45, 0.50),
("has a smartphone", 0.85, 0.90, 0.95),
("exercises weekly", 0.30, 0.40, 0.50),
("uses any fitness app monthly", 0.25, 0.35, 0.45),
("is monthly active in OUR app", 0.02, 0.06, 0.12),
("pays, given monthly active in our app", 0.10, 0.25, 0.35),
]
def payers(values):
n = POP
for v in values:
n *= v
return n
base = [s[2] for s in STAGES]
n = POP
print("Base funnel")
for label, lo, b, hi in STAGES:
n *= b
print(f" {label:<40} x{b:.2f} -> {n:>10,.0f}")
p = payers(base)
print(f"Payers {p:,.0f}; monthly revenue USD {p*PRICE:,.0f}; annual run rate USD {p*PRICE*12:,.0f}")
print("One input at a time (payers at low / high, others at base)")
for i, (label, lo, b, hi) in enumerate(STAGES):
a = payers(base[:i] + [lo] + base[i+1:])
c = payers(base[:i] + [hi] + base[i+1:])
print(f" {label:<40} {a:>7,.0f} / {c:>7,.0f} swing {c-a:>7,.0f}")
rng = np.random.default_rng(7)
draws = np.ones(200_000) * POP
for _, lo, b, hi in STAGES:
draws *= rng.triangular(lo, b, hi, size=200_000)
p10, p50, p90 = np.percentile(draws, [10, 50, 90])
print(f"Simulation (triangular inputs, 200,000 draws, seed 7): P10 {p10:,.0f}, P50 {p50:,.0f}, P90 {p90:,.0f}")
# Checks
ok_prod = math.isclose(p, POP * math.prod(base), rel_tol=1e-12)
print("check 1, loop equals math.prod:", "PASS" if ok_prod else "FAIL")
ok_nest = all(0 < v <= 1 for v in base)
print("check 2, every stage is a share between 0 and 1:", "PASS" if ok_nest else "FAIL")
analytic_mean = POP * math.prod((lo + b + hi) / 3 for _, lo, b, hi in STAGES)
ok_mc = abs(draws.mean() / analytic_mean - 1) < 0.01
print(f"check 3, simulated mean {draws.mean():,.0f} vs analytic {analytic_mean:,.0f}:", "PASS" if ok_mc else "FAIL")
# Second route with different assumptions: adults x pays for any fitness subscription x our share of payers
route_b = POP * 0.76 * 0.04 * 0.03
ratio = p / route_b
ok_route = 1 / 3 <= ratio <= 3
print(f"check 4, second route {route_b:,.0f} payers, ratio {ratio:.2f}, within a factor of 3:", "PASS" if ok_route else "FAIL")
print(f"payers per 1,000 residents: {p / POP * 1000:.2f}")
Output:
Base funnel
aged 18 to 54 x0.45 -> 1,350,000
has a smartphone x0.90 -> 1,215,000
exercises weekly x0.40 -> 486,000
uses any fitness app monthly x0.35 -> 170,100
is monthly active in OUR app x0.06 -> 10,206
pays, given monthly active in our app x0.25 -> 2,552
Payers 2,552; monthly revenue USD 25,515; annual run rate USD 306,180
One input at a time (payers at low / high, others at base)
aged 18 to 54 2,268 / 2,835 swing 567
has a smartphone 2,410 / 2,693 swing 284
exercises weekly 1,914 / 3,189 swing 1,276
uses any fitness app monthly 1,822 / 3,280 swing 1,458
is monthly active in OUR app 850 / 5,103 swing 4,252
pays, given monthly active in our app 1,021 / 3,572 swing 2,552
Simulation (triangular inputs, 200,000 draws, seed 7): P10 1,338, P50 2,483, P90 4,171
check 1, loop equals math.prod: PASS
check 2, every stage is a share between 0 and 1: PASS
check 3, simulated mean 2,643 vs analytic 2,646: PASS
check 4, second route 2,736 payers, ratio 0.93, within a factor of 3: PASS
payers per 1,000 residents: 0.85
Reading the program and its output, block by block
- "Base funnel" lines. Each line multiplies the running count by the base share of that stage: 3,000,000 x 0.45 = 1,350,000 people aged 18 to 54, x 0.90 = 1,215,000 with a smartphone, and so on down to 2,552 payers (2,551.5 before rounding). The final "Payers" line then multiplies by the price and by 12.
- "One input at a time" lines. For each stage the program sets that share to its low value, then its high value, leaving the other five at base, and prints the two payer counts. The swing is the high result minus the low result, so a large swing marks an input worth testing first.
- "Simulation" line (optional depth). Instead of fixing every share at its base, each share is drawn at random from a triangular distribution: a shape defined by a low, a most likely (base) and a high value, with values near the base drawn more often. One draw is one random pass through all six stages, giving one payer count. The program makes 200,000 draws and sorts the results. P10, P50 and P90 are percentiles: P10 = 1,338 means 10% of the draws came out below 1,338 payers, P50 = 2,483 is the median (half below, half above) and P90 = 4,171 means 90% came out below it, so 80% of draws fall between P10 and P90. The seed (7) fixes the random generator's starting state so a rerun prints the same numbers; a different seed gives slightly different percentiles. The P50 (2,483) sits a little under the base case (2,552) while the simulated average (2,643, check 3) sits above it: the monthly-active share has more room above its base (up to 0.12) than below it (down to 0.02), and multiplying uncertain shares together gives a long tail of high outcomes that lifts the average above the middle.
- Checks 1 to 4. Check 1 compares the loop with Python's product function. Check 2 confirms every share lies between 0 and 1. Check 3 compares the simulated average with the analytic mean, the exact average calculated by formula: the mean of a triangular distribution is (low + base + high) / 3, and for independent shares the mean of a product is the product of the means. Check 4 is the second route used below.
Reading the result
Base case. About 2,550 paying subscribers at the end of year one (2,551.5 before rounding): 170,100 reachable people x 0.06 = 10,206 monthly actives, x 0.25 = 2,551.5 payers. Monthly revenue is 2,551.5 x 10 = 25,515 USD and the annual run rate is 306,180 USD. ARPU is 25,515 / 10,206 = 2.50 USD per monthly active user per month, against an ARPPU of 10 USD, because only a quarter of the actives pay.
The range. Holding the others at base, the swing is largest for our monthly-active share (850 to 5,103 payers) and for the payer share (1,021 to 3,572). The four population shares move the answer by 284 to 1,458 payers each. The uncertainty that matters is about how well this product wins people, not about the city. With all six inputs drawn together from triangular distributions (a distribution with a stated low, most likely and high value), the middle 80% of outcomes runs from 1,338 to 4,171 payers, about a threefold spread. Multiplying all six lows together, or all six highs, gives a far wider range than that, which is why simultaneous extremes are not used as the plausible range.
What I would say in the room. "About 2,500 paying subscribers by the end of year one, plausibly 1,300 to 4,200, roughly 25,000 USD a month. The result depends mostly on how many app users we convert to active users and then to payers, so that is what we should test first."
Sanity-checking the order of magnitude
Three checks on whether the answer is hundreds, thousands or tens of thousands:
- A second route with different assumptions. Adults are 76% of residents (assumption); 4% of adults pay for any fitness subscription (assumption); our share of those payers is 3% (assumption). 3,000,000 x 0.76 x 0.04 x 0.03 = 2,736, a ratio of 0.93 to the funnel, so two routes built on different assumptions land within a factor of 3 (the program's check 4).
- Per-capita and share-of-pool scale. 2,552 payers is 0.85 per 1,000 residents, and 2,551.5 / 170,100 = 1.5% of the people already using fitness apps. Ask whether a new app winning 1.5% of the pool in a year feels plausible, and compare with anything locally observable: gym membership counts, a competing app's visible rating counts, the city's total smartphone owners. A result of 30% of the pool would look implausible at once.
- Bounds. An estimate above the number of reachable people (170,100) or below a handful is wrong before any detail is examined. Here 2,552 sits well inside the bounds.
The program also runs three checks on its own arithmetic: a loop against math.prod, shares between 0 and 1, and the simulated mean against the analytic mean. Entering the payer share as percentages (10, 25, 35 instead of 0.10, 0.25, 0.35) makes checks 2 and 4 print FAIL. These checks cover typing and arithmetic slips only. They do not tell you whether an assumption is right; that needs data such as a survey, a landing-page test or a pilot.
Common mistakes
- Starting from all 3 million residents and applying one "adoption rate" guess, which hides the assumptions.
- Mixing months and years (10 USD a month against annual conversion), or counting free users as payers.
- Giving a single number with no range and no statement of what drives it.
- Treating a launch-year estimate as a steady-state market size.
Running the code
Requires Python 3 and numpy.
Save the program as fitness_sizing.py and run:
python fitness_sizing.py
You have company lists that cover roughly half of your target market, tagged by size and industry. How would you build a bottom-up estimate of the whole market and express how uncertain it is?
Sample Answer
The idea in plain words
If your lists cover about half of the target market, the tempting move is to total what the lists contain and double it. That fails for a reason that matters more than the count: lists are not random halves. They over-represent large, visible companies, and large companies carry most of the revenue. So doubling can be badly wrong in dollars even when it is close in company counts. The better method has three parts. Estimate how many companies exist in each size and industry cell, using what the lists tell you about their own coverage. Multiply by an assumed revenue per company for that cell. Then carry the uncertainty from every step into an interval, and state which assumptions the interval does not cover.
What to say in an interview, and what is extra depth. The core, which is enough for most interviews, is: work cell by cell (size by industry), estimate each cell's coverage from an official count or from the overlap of two lists, multiply count by revenue per company, add up, and give a range with the assumptions it does not cover. The two-list estimator, its variance formula, the Monte Carlo interval and the 500-world check are optional depth that shows you can test your own method. Read them after the core, and skip them if the interviewer does not ask.
Terms. Bottom-up sizing counts units (companies) and multiplies by value per unit. A stratum, or cell, is a group of similar companies (here, size tier by industry). Coverage is the share of a cell's companies that appear on a list. Capture-recapture is a way to estimate a total from two overlapping lists: it asks what share of one list is also on the other, and uses that as an estimate of the other list's coverage.
The idea in numbers first
Suppose list A names 100 companies in a cell and list B names 80, and 40 companies appear on both. If the two lists were built independently of each other, then B is a fair sample of the cell as far as A is concerned. The 40 overlap companies are 40 out of B's 80, so A catches half of whatever B holds, and the best guess is that A catches half of the whole cell. A holds 100 companies, so the cell is about 100 / 0.5 = 200 companies. That is the product rule n1n2/m=100×80/40=200. A bigger overlap would mean higher coverage and a smaller cell; a tiny overlap would mean low coverage and a much larger cell. The overlap is what tells you the coverage.
The method, in order
- Work cell by cell, never on the pooled list. Coverage differs by size, so the pooled "about half" hides it.
- Estimate the number of companies in each cell. Two routes:
- If an official count by cell exists (a business registry or census table), the total is known, and coverage is the listed count divided by it. Example: 2,000 mid-size companies in the registry and 1,300 on the list give coverage 1,300/2,000=0.65.
- If no total exists, use two independent lists. Let n1 and n2 be the companies on lists A and B in the cell and m the number on both. If the lists are independent within the cell, the share of B's companies that A also holds estimates A's coverage, m/n2, so the cell total is about n1n2/m. The Chapman form (a small adjustment by Chapman, adding 1 to the counts, which keeps the estimate sensible when the overlap m is small or zero) is
with approximate variance (m+1)2(m+2)(n1+1)(n2+1)(n1−m)(n2−m). Variance is the square of the typical size of the estimate's error (its square root is the standard deviation). On the tiny example the Chapman estimate is 198.5 and the variance is about 278, so the standard deviation is about 16.7: the cell holds roughly 200 companies, give or take 17. The variance gets smaller as the overlap m gets larger, so more overlap means a tighter estimate.
3. Multiply each cell's estimated count by revenue per company (adoption rate times price, both assumptions with ranges) and add up the cells.
4. Build the interval by Monte Carlo simulation (repeat the whole calculation thousands of times with random inputs and look at the spread of the results): draw each cell's count from its estimate and variance, never below the number of distinct companies actually seen; draw a multiplicative error on revenue per company by tier (the revenue per company is multiplied by a random factor, for example 0.8 or 1.25, so the error scales with the amount); add up; take the 5th and 95th percentiles for a 90% interval. A percentile is the value below which that share of the results fall, so the 5th and 95th percentiles of the totals bound the middle 90% of them.
5. Check the method on a world where the truth is known: simulate many worlds, build the interval in each, and see whether it covers the truth about 90% of the time (the interval's coverage: the share of worlds in which the interval contains the true value), and compare with the naive method.
6. Run sensitivities on the assumptions the interval does not contain: whether companies on no list earn less than listed ones, and whether the two lists are independent.
Worked example in code
How to read the program before you read the lines. There are four helper pieces and one driver.
draw_listsbuilds a fake world with known truth. For each of the six cells it takes the true number of firms and lets each firm land in one of four outcomes: on both lists, on A only, on B only, on neither.rng.multinomialis that draw (a multinomial draw is like rolling a four-sided weighted die once per firm and counting how often each face came up). It returns n1, n2 and m per cell. The argumentkis the dependence between the lists:k=0means independent, and a largerkmakes a firm on the smaller list more likely to be on the other one too.chapmanis the formula above, applied to every cell at once, returning the estimate and its variance.intervalis the Monte Carlo step: 4,000 random draws of the six counts and of the revenue error, summed to a revenue total each time, then the 5th and 95th percentiles.SIGMA = 0.20is the log-sd: the standard deviation of the natural logarithm of the revenue factor, which in plain terms means revenue per firm is typically off by about 20 percent either way.hold_counts=Truefreezes the counts so you can see how much of the width comes from revenue per firm alone.- The first block after the helpers draws one dataset, prints the cell table, the point estimate, the naive estimate and the interval.
replicaterepeats that for 500 fresh worlds and counts how often the 90% interval contains the truth. In each world the truth for the revenue interval includes its own random revenue factor, so the check is fair to the interval.
The check at the end is a binomial test: if the interval is honest, 500 worlds should give about 450 covers, and the test asks how surprising the observed count would be if the true coverage were exactly 0.90. The p-value is that probability of a result at least as far from 450 as the one seen. A small p-value (below 0.01 here) would say the coverage is not 0.90; a large one (p = 0.296 below) means no evidence against it. Passing does not prove coverage is exactly 0.90, only that the program found no departure.
All inputs are assumptions for illustration, with a plausible range in the comments. The data is simulated, so the true totals are known and can be compared with what the method recovers; in a real project they would not be. The tiny hand check of one cell: for large-A the output table has n1=273, n2=210, m=191, so N^=274×211/192−1=300.1, which the program rounds to 300.
import numpy as np
from scipy import stats
# Every input is an assumption for illustration, with a plausible range in the comment.
cells = ["small-A", "small-B", "mid-A", "mid-B", "large-A", "large-B"] # size tier x industry
true_n = np.array([4000, 2500, 1200, 800, 300, 200]) # firms per cell (unknown in practice)
cov_a = np.array([.40, .40, .65, .65, .90, .90]) # list A inclusion probability (0.2 to 0.95)
cov_b = np.array([.25, .25, .45, .45, .70, .70]) # list B inclusion probability (0.1 to 0.8)
rev = np.array([150, 150, 1600, 1600, 12000, 12000.]) # USD per firm per year = adoption x price
tier = np.array([0, 0, 1, 1, 2, 2]) # size tier of each cell
SIGMA = 0.20 # log-sd of the error in revenue per firm (0.1 to 0.4)
def draw_lists(rng, k=0.0):
"""Counts per cell: both lists, A only, B only. k=0 means the lists are independent."""
p11 = cov_a * cov_b + k * (np.minimum(cov_a, cov_b) - cov_a * cov_b)
probs = np.stack([p11, cov_a - p11, cov_b - p11, 1 - cov_a - cov_b + p11], axis=1)
out = np.array([rng.multinomial(n, p) for n, p in zip(true_n, probs)])
both, only_a, only_b = out[:, 0], out[:, 1], out[:, 2]
return both + only_a, both + only_b, both # n1, n2, m
def chapman(n1, n2, m):
est = (n1 + 1) * (n2 + 1) / (m + 1) - 1
var = (n1 + 1) * (n2 + 1) * (n1 - m) * (n2 - m) / ((m + 1) ** 2 * (m + 2))
return est, var
def interval(n1, n2, m, rng, draws=4000, hold_counts=False):
est, var = chapman(n1, n2, m)
seen = n1 + n2 - m
sd = 0 if hold_counts else np.sqrt(var)
n_draw = np.maximum(est + rng.normal(size=(draws, 6)) * sd, seen)
f = np.exp(rng.normal(0, SIGMA, size=(draws, 3)))[:, tier]
revenue = (n_draw * rev * f).sum(axis=1)
return np.percentile(revenue, [5, 95]), np.percentile(n_draw.sum(axis=1), [5, 95])
# One dataset, shown in full
rng = np.random.default_rng(43)
n1, n2, m = draw_lists(rng)
est, var = chapman(n1, n2, m)
print("cell listA listB both seen est_firms true_firms")
for i, c in enumerate(cells):
print(f"{c:8s} {n1[i]:6d}{n2[i]:6d}{m[i]:5d}{n1[i]+n2[i]-m[i]:6d}{est[i]:11.0f}{true_n[i]:12d}")
point = (est * rev).sum()
(lo, hi), (clo, chi) = interval(n1, n2, m, rng)
naive = (n1 * rev).sum() / 0.5
truth = (true_n * rev).sum()
print(f"\nlist A covers {n1.sum()/true_n.sum():.2f} of all firms but {(n1*rev).sum()/truth:.2f} of the revenue")
print(f"naive (list A revenue / 0.5): {naive:,.0f} USD")
print(f"stratified capture-recapture: {point:,.0f} USD, 90% interval {lo:,.0f} to {hi:,.0f}")
(hlo, hhi), _ = interval(n1, n2, m, rng, hold_counts=True)
print(f" same interval with the firm counts held at their estimates: {hlo:,.0f} to {hhi:,.0f}")
print(f"firms: {est.sum():,.0f}, 90% interval {clo:,.0f} to {chi:,.0f}")
print(f"truth (known only because the data is simulated): {truth:,.0f} USD, {true_n.sum()} firms")
seen = n1 + n2 - m
print("\nSensitivity: revenue per firm of never-listed firms relative to listed firms")
for d in (1.0, 0.6, 0.3):
print(f" ratio {d}: {((seen + d * (est - seen)) * rev).sum():,.0f} USD")
# Repeat over many simulated worlds: does a 90% interval cover the truth about 90% of the time?
def replicate(k, reps=500, seed=7, bias=0.0):
rng = np.random.default_rng(seed)
cov_rev = cov_cnt = 0
err_strat, err_naive = [], []
for _ in range(reps):
a, b, c = draw_lists(rng, k)
e, _ = chapman(a, b, c)
e = e + bias * a # bias=0 is the real estimator
f_true = np.exp(rng.normal(0, SIGMA, size=3))[tier]
t_nominal = (true_n * rev).sum()
t_actual = (true_n * rev * f_true).sum()
(l, h), (cl, ch) = interval(a, b, c, rng)
cov_rev += l <= t_actual <= h
cov_cnt += cl <= true_n.sum() <= ch
err_strat.append((e * rev).sum() / t_nominal - 1)
err_naive.append((a * rev).sum() / 0.5 / t_nominal - 1)
return cov_rev, cov_cnt, np.mean(err_strat), np.mean(err_naive), reps
cov_rev, cov_cnt, es, en, reps = replicate(k=0.0)
print(f"\nIndependent lists, {reps} simulated worlds")
print(f" mean relative error of revenue: stratified {es:+.3f}, naive {en:+.3f}")
print(f" 90% interval covers the truth: revenue {cov_rev}/{reps}, firm count {cov_cnt}/{reps}")
p_rev = stats.binomtest(cov_rev, reps, 0.9).pvalue
p_cnt = stats.binomtest(cov_cnt, reps, 0.9).pvalue
print(f" binomial test against 0.90: p = {p_rev:.3f} (revenue), p = {p_cnt:.3f} (firm count)")
ok = p_rev > 0.01 and p_cnt > 0.01 and abs(es) < 0.02 and en > 0.2
print(" check:", "PASS" if ok else "FAIL")
_, _, es_dep, _, _ = replicate(k=0.3)
print(f"Positively dependent lists (k=0.3): stratified mean relative error {es_dep:+.3f}")
# Does the check have teeth? Add 15% of list A's count to every cell estimate and run the same check.
cr_b, cc_b, es_b, en_b, _ = replicate(k=0.0, bias=0.15)
ok_b = abs(es_b) < 0.02 and en_b > 0.2
print(f"Deliberately biased estimator: mean relative error {es_b:+.3f}, check: {'PASS' if ok_b else 'FAIL'}")
Output (numpy 2.1.3, scipy 1.14.1):
cell listA listB both seen est_firms true_firms
small-A 1576 1066 434 2208 3867 4000
small-B 1001 584 243 1342 2401 2500
mid-A 764 542 355 951 1166 1200
mid-B 530 356 244 642 773 800
large-A 273 210 191 292 300 300
large-B 181 146 130 197 203 200
list A covers 0.48 of all firms but 0.78 of the revenue
naive (list A revenue / 0.5): 15,809,900 USD
stratified capture-recapture: 10,082,133 USD, 90% interval 8,212,601 to 12,778,798
same interval with the firm counts held at their estimates: 8,230,595 to 12,694,075
firms: 8,710, 90% interval 8,442 to 8,980
truth (known only because the data is simulated): 10,175,000 USD, 9000 firms
Sensitivity: revenue per firm of never-listed firms relative to listed firms
ratio 1.0: 10,082,133 USD
ratio 0.6: 9,629,000 USD
ratio 0.3: 9,289,150 USD
Independent lists, 500 simulated worlds
mean relative error of revenue: stratified +0.001, naive +0.548
90% interval covers the truth: revenue 443/500, firm count 447/500
binomial test against 0.90: p = 0.296 (revenue), p = 0.654 (firm count)
check: PASS
Positively dependent lists (k=0.3): stratified mean relative error -0.092
Deliberately biased estimator: mean relative error +0.117, check: FAIL
Reading the result
- List A covers 48% of the firms but 78% of the revenue, because large firms are covered at 90% and small firms at 40%. The naive estimate (list A revenue divided by 0.5) is 15,809,900 USD, 55% above the true 10,175,000 USD. Across 500 simulated worlds the naive method is about 55% too high on average (+0.548) while the stratified method is within a tenth of a percent (+0.001).
- The stratified estimate for this dataset is 10,082,133 USD with a 90% interval of 8,212,601 to 12,778,798 USD (about -19% to +27% around the point). It contains the truth. The firm-count interval, 8,442 to 8,980, narrowly misses the true 9,000, which is the roughly one-in-ten outcome a 90% interval is expected to produce; across 500 worlds it covered 447 times and the revenue interval 443 times.
- Holding the counts at their estimates barely changes the revenue interval (8,230,595 to 12,694,075). The large cells are almost fully observed (292 of about 300 and 197 of about 200 firms seen) and carry 59% of the true revenue, so most of the revenue interval comes from the assumed 20% error in revenue per firm, not from counting. For the number of firms the count uncertainty is the only source of width.
- Sensitivity: if companies on neither list earn 60% of what listed companies earn per firm, the estimate falls to 9,629,000 USD (-4.5%); at 30% it falls to 9,289,150 USD (-7.9%). The effect is small here because most unseen firms are small ones.
- Check: the binomial test of coverage against 0.90 gives p = 0.296 for revenue and p = 0.654 for the firm count (no sign that coverage differs from 0.90 across 500 worlds), and the stratified bias is under 2%, so it prints PASS. To show the check has teeth, the last line of the program adds 15% of list A's count to every cell estimate and runs the same bias test: the mean relative error becomes +0.117 and the check prints FAIL. The bias clause is what fires there, not the interval coverage, because the program leaves the intervals unchanged.
- Dependence matters. If a firm on list A is more likely to be on list B (k = 0.3 in the program makes the overlap larger than independence would give), the overlap looks like high coverage, the cell totals are too small, and the revenue estimate is 9.2% low on average (-0.092).
What the check does and does not cover
The check uses simulated worlds built to satisfy the method's assumptions (independent lists inside each cell, accurate size and industry tags, one company never counted twice), so it confirms the arithmetic and calibration of the interval under those assumptions and detects a biased estimator. It cannot show that real lists are independent. A real project also needs company matching across lists (the same firm spelled two ways), a view on firms that closed or merged, cells defined well enough that revenue per firm is similar inside them, a plan to validate adoption and price with customer evidence, and a decision whether unlisted firms differ in kind.
Judgment
I would report the market as about 10 million USD a year with a 90% interval of roughly 8 to 13 million, state that it assumes independent lists and a 20% error on revenue per firm, and say the figure is biased low if the lists share a bias. The next spend should go to estimating revenue per firm for the large cells with real customer or pricing evidence, since that drives the interval, and to testing list independence, since that drives the bias.
Common mistakes
- Doubling the listed total when coverage is uneven by size.
- Reporting an interval for counts only, with revenue per firm treated as exact.
- Using two lists that share a source (both scraped from the same directory) as if they were independent.
- Calling a flat sensitivity "robust" when the bias source (list dependence) was never varied.
Running the code
Python 3.12 with numpy 2.1.3 and scipy 1.14.1 installed. Save the code as list_coverage_estimate.py and run python list_coverage_estimate.py. No other files or configuration are needed; the random seeds are fixed, so the output is the same on each run.
A consumer hardware device with an attached subscription is about to launch. How would you model its adoption over time, where would your starting parameters come from, and how sensitive would the forecast be to marketing spend?
Sample Answer
The idea in plain words
A new product does not sell at a steady rate. Sales start slowly, take off as early owners tell others, then slow down as the pool of possible buyers runs out. A diffusion model (a model of how a product spreads through a population) captures that shape, and the standard one is the Bass model. It needs three things: how many people will ever buy, how fast people buy because of outside influence such as advertising, and how fast they buy because of people who already own it. Then you add the subscription as a second layer: only some buyers subscribe, and subscribers leave. The one insight for the marketing question: in this model marketing mostly moves WHEN people buy, while the size of the eventual pool, the attach rate and the churn move HOW MANY, so spend is a weaker lever than it looks.
The method
- Fix the unit and the horizon: households, months, 36 months.
- Model device adoption with the Bass equation. With N(t) the cumulative buyers at month t and M the households that will ever buy:
p is the external-influence rate per month (advertising, press, anything that reaches people regardless of existing owners). q is the imitation rate per month (word of mouth: it grows with the share who already own it). M−N is the households still available. The closed-form solution is
N(t)=M1+pqe−(p+q)t1−e−(p+q)tand new buyers per month peak at t∗=p+qln(q/p).
3. Connect marketing to the model through p only: p(s)=porg+pad(1−e−s/s0) for a monthly spend s. The exponential gives diminishing returns: each extra dollar adds less than the one before.
4. Add the subscription: new subscribers each month are attach rate times new buyers, and the stock (the number of subscribers in force at the end of a month) decays by churn (the share of subscribers who leave each month):
with a the attach rate and c the monthly churn. Track subscriber-months (the sum of St over time, where each subscriber in force for a month counts once), which is proportional to subscription revenue.
5. Choose starting parameters from evidence, in this order of strength, and carry ranges rather than points (see the next section).
6. Run the model across spend levels and across the other inputs, and report which inputs move the forecast.
Reading the equations
Read dN/dt as "how many new buyers arrive per month": the rate at which the cumulative count N is growing. The equation says new buyers per month equal the chance that a still-available household buys this month, p+qN/M, times the number of households still available, M−N. Early on N is near zero, so only the outside-influence term p matters and sales are slow. As N grows, the word-of-mouth term qN/M grows and sales accelerate. Late in the life, M−N is small and sales fade. The equation is an ODE (ordinary differential equation), an equation linking a quantity to its own rate of change. A closed-form solution is a formula that gives N(t) directly; a numerical solution steps the equation forward on a computer, a small time step at a time, and the program compares the two as a self-check.
Where the peak formula comes from: rewrite the closed form as new buyers per month =Mq(p+q)2⋅(1+x)2x with x=pqe−(p+q)t. The fraction x/(1+x)2 is largest when x=1, because (1+x)2≥4x with equality only at x=1. Setting x=1 gives e−(p+q)t=p/q, so t∗=ln(q/p)/(p+q). At 200 thousand USD per month the peak is about 48,500 new buyers in a month.
How to read the program, in the order it prints:
- The spend table. For each monthly spend it computes p, builds N(t) from the closed form, takes month-to-month differences as new buyers, and runs the subscriber balance. The last columns show extra subscriber-months against no spend and the gross profit of those months net of the spend itself.
- The sensitivity block reruns the same function changing one input at a time and prints subscribers at month 12 and subscriber-months over 36 months.
- The fit block makes artificial monthly sales from known values, multiplied by random noise (lognormal noise: each month is scaled by a positive random factor whose logarithm is normal, here with a typical spread of about 15%). Seed 11 fixes the random generator so the same noise appears on every run.
curve_fitis a least-squares routine: it searches for the M, p and q that bring the model's monthly sales closest to the noisy sales. The covariance it returns is a table of how uncertain each fitted value is and how the uncertainties move together; the square root of its diagonal is a standard error, and 1.96 standard errors give the approximate 95% interval. Settingabsolute_sigma=Truetells it the stated noise sizes are real, so the intervals come out in real units. - The peak block finds the busiest month two ways: the formula, and a grid search (try 3,600 evenly spaced times between 0 and 36 months and keep the one with the highest sales rate).
- The last block solves the differential equation numerically and checks it against the closed form. A maximum gap near 2e-9 of M means they agree.
Which parts matter most: the Bass shape and the finding that marketing moves timing, not pool size (the spend table and the sensitivity block). The fit and the ODE check are supporting evidence, showing how little early data pins down and that the formula is typed correctly.
Where the starting parameters come from
- M: bottom-up sizing. Households with the problem the device solves, times households able and willing to pay for the device and the subscription, times compatibility with their home setup. This is a sizing exercise with its own ranges; here 200,000 to 1,000,000 households.
- p and q: analogues first. Fit the Bass model to the early sales history of comparable devices and read off ranges. Then pre-launch signals: waitlist and pre-order counts (stated intent overstates purchase, so discount it), and a small paid test campaign, which measures p directly as sign-ups per month at a known spend.
- The spend response p(s): from the test campaign at two or three spend levels, ideally split by region so that other effects are held constant.
- Attach rate and churn: from comparable subscription products and from the first beta cohorts.
- After launch, refit weekly. The program shows why the first weeks cannot pin the model down.
Worked example
Every input is an assumption with a plausible range, not a statistic about a real product: M=500,000 (200,000 to 1,000,000), q=0.35 per month (0.2 to 0.5), porg=0.004 (0.001 to 0.01), pad=0.03 (0.01 to 0.05), s0=300 thousand USD per month (150 to 600), attach rate 0.60 (0.4 to 0.8), churn 0.03 per month (0.02 to 0.06), and 6 USD gross profit per subscriber-month (3 to 9; device margin is left out).
By hand, at 200 thousand USD per month: p=0.004+0.03(1−e−200/300)=0.004+0.03×(1−0.5134)=0.0186. The peak month is ln(0.35/0.0186)/(0.0186+0.35)=2.935/0.3686=7.96. With no spend, p=0.004 and the peak is ln(87.5)/0.354=12.63. So 200 thousand USD per month brings the peak about 4.7 months earlier. To see the headline numbers by hand, evaluate the closed form at month 12. With no spend, p=0.004: the exponent is (0.004+0.35)×12=4.248, e−4.248=0.01429, and N(12)=500,000×(1−0.01429)/(1+87.5×0.01429)=500,000×0.98571/2.2506=218,986. At 200 thousand USD per month, using the unrounded p=0.018597: the exponent is 0.368597×12=4.4232, e−4.4232=0.011996, and N(12)=500,000×0.988004/(1+18.82×0.011996)=500,000×0.988004/1.22576=403,015. The subscriber balance works month by month: with no spend the closed form gives N(1)=2,388 and N(2)=5,752 buyers, so S1=0.6×2388=1,433 and S2=1433×0.97+0.6×(5752−2388)=1,390+2,018=3,408. The program repeats that for 36 months and adds the balances to get subscriber-months. The program reproduces these, tabulates spend levels, runs the sensitivity, fits the model to noisy early sales, and checks the closed form against a numerical solution.
import numpy as np
from scipy.integrate import solve_ivp
from scipy.optimize import curve_fit
# All inputs are assumptions, with a plausible range in the comment.
M = 500_000 # households that would ever buy (200,000 to 1,000,000)
Q = 0.35 # word-of-mouth (imitation) rate per month (0.2 to 0.5)
P_ORG = 0.004 # external-influence rate per month with no marketing (0.001 to 0.01)
P_AD = 0.03 # extra rate per month that marketing can add at most (0.01 to 0.05)
SCALE = 300.0 # monthly spend (thousand USD) at which ~63% of that maximum is reached (150 to 600)
ATTACH = 0.60 # share of device buyers who take the subscription (0.4 to 0.8)
CHURN = 0.03 # monthly subscription churn (0.02 to 0.06)
SUB_GP = 6.0 # gross profit per subscriber-month, USD (3 to 9); device margin is left out
def p_of(spend_k):
return P_ORG + P_AD * (1 - np.exp(-spend_k / SCALE))
def bass_cum(t, m, p, q):
# Closed-form cumulative adopters of the Bass model at time t (months).
e = np.exp(-(p + q) * t)
return m * (1 - e) / (1 + (q / p) * e)
def subscribers(spend_k, months=36, m=M, q=Q, attach=ATTACH, churn=CHURN):
n = bass_cum(np.arange(0, months + 1), m, p_of(spend_k), q)
new = np.diff(n)
s, out = 0.0, []
for x in new:
s = s * (1 - churn) + attach * x
out.append(s)
return n, np.array(out)
print("spend_k/mo p adopters@12 adopters@36 subs@12 sub-months@36 extra sub-months net of spend (USD)")
base_sm = subscribers(0)[1].sum()
for sp in (0, 100, 200, 400, 800):
n, s = subscribers(sp)
extra = s.sum() - base_sm
net = extra * SUB_GP - sp * 36 * 1000
print(f"{sp:8d} {p_of(sp):.4f} {n[12]:10.0f} {n[36]:11.0f} {s[11]:8.0f} {s.sum():13.0f} {extra:16.0f} {net:18,.0f}")
print("\nSensitivity at 200 thousand USD per month: subscribers at month 12, subscriber-months over 36 months")
cases = {
"base": {}, "q 0.20": dict(q=0.20), "q 0.50": dict(q=0.50),
"M 200k": dict(m=200_000), "M 1000k": dict(m=1_000_000),
"attach 0.4": dict(attach=0.4), "attach 0.8": dict(attach=0.8),
"churn 0.06": dict(churn=0.06),
}
for name, kw in cases.items():
_, s = subscribers(200, **kw)
print(f"{name:11s} {s[11]:9.0f} {s.sum():11.0f}")
# Learning the parameters from early sales: noisy synthetic monthly sales from known values.
rng = np.random.default_rng(11)
true = (M, p_of(200), Q)
sales = np.diff(bass_cum(np.arange(0, 37), *true)) * rng.lognormal(0.0, 0.15, 36)
def monthly(t, m, p, q):
return bass_cum(t, m, p, q) - bass_cum(t - 1, m, p, q)
print("\nFit to the first k months of sales (true M = 500000, true q = 0.35)")
for k in (6, 12, 24):
t = np.arange(1, k + 1)
try:
popt, pcov = curve_fit(monthly, t, sales[:k], p0=(300_000, 0.01, 0.3), sigma=0.15 * sales[:k],
absolute_sigma=True, bounds=([10_000, 1e-4, 0.01], [5_000_000, 0.2, 1.5]),
maxfev=20000)
se = np.sqrt(np.diag(pcov))
print(f"k={k:2d} M_hat {popt[0]:9.0f} (95% +/- {1.96*se[0]:9.0f}) q_hat {popt[2]:.3f} (+/- {1.96*se[2]:.3f})")
except RuntimeError:
print(f"k={k:2d} fit did not converge")
print("\nMonth of peak new adopters: formula ln(q/p)/(p+q) against a grid search")
for sp in (0, 200, 800):
p = p_of(sp)
tt = np.linspace(0.01, 36, 3600)
rate = np.gradient(bass_cum(tt, M, p, Q), tt)
print(f"spend {sp:3d}: formula {np.log(Q / p) / (p + Q):5.2f} grid {tt[np.argmax(rate)]:5.2f}")
# Self-check: integrate the Bass differential equation numerically and compare with the closed form.
def check(rhs_factory):
worst = 0.0
for sp in (0, 200, 800):
p = p_of(sp)
sol = solve_ivp(rhs_factory(p), (0, 36), [0.0], t_eval=np.arange(0, 37), rtol=1e-9, atol=1e-6)
worst = max(worst, np.max(np.abs(sol.y[0] - bass_cum(np.arange(0, 37), M, p, Q))) / M)
return worst
right = lambda p: (lambda t, y: (p + Q * y / M) * (M - y))
w = check(right)
print(f"\nmax gap between ODE solution and closed form, as a share of M: {w:.2e}")
assert w < 1e-6
print("check: closed form matches the numerical solution")
Output (numpy 2.1.3, scipy 1.14.1):
spend_k/mo p adopters@12 adopters@36 subs@12 sub-months@36 extra sub-months net of spend (USD)
0 0.0040 218986 499871 120447 5085765 0 0
100 0.0125 362567 499969 193298 5547108 461344 -831,938
200 0.0186 403015 499983 211508 5695332 609568 -3,542,594
400 0.0261 431112 499991 222811 5816160 730395 -10,017,630
800 0.0319 444993 499994 227727 5885402 799637 -24,002,178
Sensitivity at 200 thousand USD per month: subscribers at month 12, subscriber-months over 36 months
base 211508 5695332
q 0.20 137198 5103178
q 0.50 243043 5951660
M 200k 84603 2278133
M 1000k 423015 11390664
attach 0.4 141005 3796888
attach 0.8 282010 7593776
churn 0.06 185736 4079651
Fit to the first k months of sales (true M = 500000, true q = 0.35)
k= 6 M_hat 321704 (95% +/- 318882) q_hat 0.381 (+/- 0.230)
k=12 M_hat 501148 (95% +/- 63933) q_hat 0.327 (+/- 0.062)
k=24 M_hat 499613 (95% +/- 37130) q_hat 0.351 (+/- 0.018)
Month of peak new adopters: formula ln(q/p)/(p+q) against a grid search
spend 0: formula 12.63 grid 12.63
spend 200: formula 7.96 grid 7.96
spend 800: formula 6.27 grid 6.27
max gap between ODE solution and closed form, as a share of M: 1.97e-09
check: closed form matches the numerical solution
Reading the result
- Marketing moves timing. By month 12 the buyers are 218,986 with no spend and 403,015 at 200 thousand USD per month (84% more). By month 36 the two are 499,871 and 499,983: almost the same, because the pool is the same and word of mouth fills it either way.
- Diminishing returns are visible: going from 100 to 200 thousand USD per month adds 148,224 subscriber-months, while doubling from 400 to 800 adds 69,242 for four times the extra spend.
- Under these assumptions the spend does not pay for itself through subscription gross profit: at 200 thousand USD per month, 609,568 extra subscriber-months at 6 USD is about 3.66 million USD, against 7.2 million USD of spend (net minus 3,542,594 USD in the table). The case for spending has to rest on what the model leaves out: device margin earned sooner, learning, or marketing that enlarges M rather than only speeding up p. That last point is a modelling choice to test with the campaign data, since this model gives marketing no way to enlarge M.
- Sensitivity: across the assumed ranges, M (2.28 million to 11.39 million subscriber-months), attach rate (3.80 million to 7.59 million) and churn (4.08 million at 0.06) move the 36-month subscription total far more than the whole 0 to 800 thousand USD spend range does (5.09 million to 5.89 million, a 16% difference).
- Early data is a weak guide. In one noisy synthetic run (seed 11, truth M = 500,000), the first 6 months give M of about 321,704 with an approximate 95% interval of plus or minus 318,882, and the first 12 months give 501,148 plus or minus 63,933. The plus or minus 318,882 means the 6-month data are consistent with a pool anywhere from about 2,800 to 640,600 households, which is no guide at all (the true value, 500,000, is inside it). The intervals come from the fit's covariance and assume the model shape is right, so they are optimistic. Report the ranges, not the fitted point, in the first quarter after launch.
Decision
Present three scenarios (low, base, high on M, q, attach and churn) and a spend table, not one curve. Recommend a moderate test-sized spend (in this model 100 thousand USD per month delivers about 63% of the month-12 gain that 800 thousand USD delivers) and use the first 8 weeks to measure how sign-ups respond to spend. Scale up only if the measured response is larger than assumed here or if the campaign also lifts M.
What this check does and does not cover
The check confirms that the closed-form curve solves the equation for these parameters; a version with the wrong growth term fails it. It does not validate the assumptions. A real model also needs seasonality and launch-week effects, supply limits, repeat and replacement purchases, price changes, subscription tiers, and a decision about discounting.
Common mistakes
- Treating survey intent or a waitlist as sales.
- Fitting M from the first weeks and presenting it as a forecast.
- Letting marketing multiply the whole curve instead of moving p with diminishing returns.
- Counting subscribers as cumulative buyers and forgetting churn.
- Reporting one curve with no range.
Running the code
# Python 3.12, numpy 2.1.3, scipy 1.14.1
python adoption_model.py
Your CRM and third-party firmographic data show which accounts historically convert. How would you use that data to refine your addressable-market estimate, and would a machine-learning model be worth building for it?
Sample Answer
The idea in plain words
An addressable market counted as "all accounts that match the profile" treats every matching account as equally winnable. Your CRM (customer relationship management system, the sales team's record of accounts and deals) tells you something better: which kinds of accounts have actually been won. Firmographic data (facts about companies such as industry, size, region and the software they use) lets you describe every account in the universe, including those never contacted. So refine the estimate by weighting each segment of the universe by its historical conversion rate, which turns a count of accounts into an expected number of winnable accounts. The catch is selection: the CRM only contains accounts that sales chose to work, and those were not picked at random, so their conversion rate is likely higher than the same segment's never-contacted accounts. A machine-learning model does not fix that, because it learns only from accounts that were worked.
On the second question: for sizing, a plain table of conversion by segment gets most of the value. A model is worth building only if the score will be used in a repeated decision (such as ranking accounts for outreach) and it beats the table on later data by more than noise.
The method
- Define the outcome and the denominator. Outcome: closed-won within a fixed window (say 180 days) of the first sales touch, so old and new accounts are compared on the same clock. Denominator: accounts that were actually worked, not every account in the CRM. Drop or set aside opportunities still open, because counting them as losses understates the rate (statisticians call an outcome that has not happened yet right-censored: you know the account has not won so far, not that it never will).
- Attach firmographics as they were when the opportunity was created. A company's current size or tech stack may reflect that it became a customer, which leaks the outcome into the features.
- Build the segment table: accounts in the universe, accounts worked, wins, conversion rate with an interval (a range of rates the data cannot rule out), and expected winnable accounts (universe times rate). With a rate of zero, an upper bound is still needed: after 0 events in n trials, about 3/n is a rough 95% upper bound (the "rule of three"). The reason: if the true rate were p, the chance of seeing 0 wins in n tries is (1−p)n≈e−pn, which falls to 5% when pn≈3 because ln0.05≈−3. Any rate above 3/n would have made a zero result unlikely, so the data cannot support a higher rate.
- Correct for selection with an explicit haircut (a deliberate discount factor) for never-worked accounts and show the range; do not hide it.
- Only then ask whether a model improves on the table, using later data held out.
Worked example (counts are assumptions)
The universe from the third-party data has 20,000 accounts in four segments. Conversion is wins divided by accounts worked. The interval is the normal approximation p±1.96p(1−p)/n, where p is the observed rate (wins divided by worked accounts) and n is the number of worked accounts. The square root is the standard error, the typical size of the random wobble in p from one sample of n accounts to the next, and 1.96 is the multiplier that makes the interval cover the true rate about 95% of the time when that wobble is bell-shaped.
| Segment | Universe | Worked | Wins | Rate | 95% interval | Raw expected winnable (universe x rate) |
|---|---|---|---|---|---|---|
| A | 4,000 | 800 | 120 | 15.0% | 12.5% to 17.5% | 4000×0.15=600 |
| B | 6,000 | 600 | 30 | 5.0% | 3.3% to 6.7% | 6000×0.05=300 |
| C | 7,000 | 350 | 7 | 2.0% | 0.5% to 3.5% | 7000×0.02=140 |
| D | 3,000 | 50 | 0 | 0% | 0% to about 6% (3/50) | 0 (up to 3000×0.06=180) |
| Total | 20,000 | 1,800 | 157 | 1,040 (range 734 to 1,526) |
The range sums the interval ends: at the lower ends 501.0+195.4+37.3+0=733.7, and at the upper ends 699.0+404.6+242.7+180=1,526.3. Segment D shows why zero wins must not be read as zero potential: 50 worked accounts cannot rule out a 6% rate.
The 1,040 in the total row is the raw figure: it applies each segment's observed rate to every account in the universe, as if never-worked accounts were as winnable as worked ones. It splits into the 157 wins already booked plus 480+270+133=883 expected from the never-worked accounts at the full rate. The selection correction below discounts that 883, and its result (about 690) is the refined figure used in the judgment, so 1,040 and 690 are the same quantity before and after the haircut.
Selection correction. Of the 20,000 accounts, 1,800 were worked and 157 won (the table's 480, 270 and 133 above are these never-worked accounts at full rate: 3200×0.15, 5400×0.05, 6650×0.02). The other 18,200 were never worked: A 3,200, B 5,400, C 6,650, D 2,950. Assume those would convert at 0.6 of their segment's observed rate (a haircut; plausible range 0.3 to 0.9, and the least certain input, to be narrowed by a randomised outreach test sized as set out in the judgment section below). Expected wins from the never-worked accounts:
3200×0.15×0.6=288,5400×0.05×0.6=162,6650×0.02×0.6=79.8,0
which sum to 529.8. Adding the 157 wins already booked gives 157+529.8=686.8 expected winnable accounts. With a haircut of 0.3 the unworked contribution is 0.3×(480+270+133)=264.9, total 421.9; with 0.9 it is 0.9×883=794.7, total 951.7. So the refined addressable estimate is about 690 winnable accounts (range about 420 to 950 across the haircut), compared with 20,000 matching accounts in the raw universe. Multiply by contract value to get a revenue figure. The segment-level weights also show where the market actually is: segment A holds 4,000 of 20,000 accounts (20%) but 600 of 1,040 (58%) of the expected wins on the raw table.
Would machine learning be worth building?
For the sizing itself, probably not. The table above captures the main signal (segment) and the uncertainty that matters, the selection haircut, cannot be reduced by a better model, because the CRM holds no outcomes for accounts nobody worked. A model adds value in a different job: ranking accounts so that sales spends effort where conversion is highest. My test is three conditions, all of which must hold:
- A repeated decision will use the score (ranking accounts for outreach each quarter), so there is an action to improve.
- There are enough wins for the model complexity. Two model types matter here. Logistic regression is the simple one: a weighted sum of account features turned into a probability. A gradient-boosted model is a flexible one that builds many small decision trees in sequence and can fit intricate patterns. A rough rule for logistic regression is 10 to 20 events (wins) per predictor (one input feature), so 157 wins supports roughly 8 to 15 predictors; a gradient-boosted model with dozens of features on 157 wins mostly learns noise.
- It beats the segment table on held-out later data (train on older quarters, test on the most recent ones, which the model never saw), by more than the noise. Measure the top-20% capture rate: score every account in the held-out period (the table's score is just its segment's rate; the model gives each account its own probability), sort from highest to lowest (the table has only a few distinct scores, so break ties at random inside a segment), take the top 20% of accounts, and compute wins inside that group divided by all wins in the period. Then check calibration: group accounts into ten equal bins (deciles) by predicted rate and compare each bin's predicted rate with its actual rate, because sizing needs rates that are right, not just a good ranking. For example, a bin predicted at 12% that actually wins 6% would double the sizing for those accounts even if the ranking is good.
Conditions 1 and 3 decide the question; condition 2 is a quick screen. The calibration and bootstrap checks matter only once a model has passed them, so they are not needed to reject a model early.
Noise matters. Suppose the held-out window holds 40 wins and the table captures 18 of them (45%) in the top 20% of accounts while the model captures 20 (50%). A single capture rate from 40 wins has a standard error (the typical size of random wobble in a figure) near 0.5×0.5/40=7.9 points. Because both methods are scored on the same 40 wins, only wins that one method catches and the other misses can separate them, and a 2-win gap is within noise whatever the overlap: if the model caught 2 such wins and the table none, the chance of a split at least that lopsided when the two methods are equally good is 25%, and a gap of 2 built from more such wins (3 against 1, 4 against 2) is more likely still. A bootstrap over held-out accounts shows the same thing directly: redraw the held-out accounts with replacement many times, recompute both capture rates on each redraw, and count how often the model still leads. If the lead disappears in a large share of redraws, it is noise. Adopt the model only if the gap holds up there and the later quarters confirm it.
Judgment
Deliver the segment table with intervals and the selection range first: about 690 winnable accounts, range roughly 420 to 950 from the haircut alone (sampling error in the segment rates widens it), with segment A carrying most of the value. Recommend a randomised outreach to never-worked accounts to replace the 0.6 haircut with a measured number, sized by arithmetic. Across the never-worked accounts the expected conversion at a 0.6 haircut is 529.8/18200=2.9%, so 100 accounts give about 3 wins, and the exact 95% interval for 3 wins in 100 (0.6% to 8.5%) corresponds to haircuts from about 0.1 to above 1, so 100 accounts is a smoke test and no more. 25 wins (a relative standard error of 20%) need about 25/0.029≈860 accounts spread across segments, which narrows the haircut to roughly 0.4 to 0.9. Concentrating the sample in segment A, where the expected rate at a 0.6 haircut is 9%, reaches 25 wins with about 280 accounts, at the price of assuming the haircut is similar in the other segments. Propose a model as a second step only if sales will use the ranking, starting with logistic regression on a few features against the table.
What would flip it: a much larger CRM (thousands of wins) and a real prioritisation process would justify a boosted model; evidence that the haircut is near 1 (sales worked accounts almost at random) would make the raw table nearly sufficient.
What this example does and does not cover
The counts, the haircut and the 40-win holdout are illustrations. A real process also needs handling of right-censoring (the open opportunities from step 1), duplicate and merged accounts, changes in sales strategy over the period, lead source and rep effects that the firmographics do not capture, and correlated features. The normal-approximation intervals are rough at the smaller counts; exact intervals are wider.
Common mistakes
- Treating CRM conversion as the conversion of the whole universe.
- Reading 0 wins from a small sample as "this segment never converts".
- Using today's company attributes as features for an opportunity from two years ago.
- Reporting model accuracy on the same data used to fit it.
- Building a gradient-boosted model on a few hundred wins because it sounds more advanced.
Adoption, pricing and acquisition cost are all highly uncertain in your sizing model. How do you decide which assumptions matter most, what ranges to test, and when the range is wide enough to change the decision?
Sample Answer
The idea in plain words
An input matters to a decision for two separate reasons: the output is sensitive to it (a small change in the input moves the result a lot), and you are unsure about it (its plausible range is wide). Multiply the two. Then ask the question that actually matters: does the plausible range of this input contain the point where the decision flips? An input whose whole range leaves the decision unchanged needs no more work, however uncertain it feels. An input whose range straddles the flip point is where effort goes.
Method
- Pick the output the decision uses, and a threshold for it (the go / no-go line).
- Write each uncertain input with a base value and a low-high range tied to evidence (a source, a pilot, a comparable), not to a flat plus or minus 20%.
- Run a one-at-a-time sensitivity (also called a tornado analysis): move one input across its range with the others at base and record the output swing. Rank by swing.
- Compute each input's flip point: the value at which the output equals the threshold, with the others at base.
- Compare each range with its flip point. If the range contains the flip point, that input can change the decision.
- Then combine inputs into scenarios, because inputs move together and the worst case on every input at once is much less likely than any one extreme.
Elasticity (percent change in the output per percent change in an input) shows why a modest-looking input can dominate: when the output is a difference of two large numbers, the percentage swing in each is magnified.
Worked example (all numbers are assumptions)
Output: year-one contribution M=N×a×(P−C), where N=5,000 target accounts, a the adoption rate (share of accounts that buy), P the annual price per customer, and C the acquisition cost per customer (CAC: the sales and marketing spend needed to win one customer). So P−C is the contribution per customer, what is left of the first-year price after paying to win the customer, and M is total contribution. This leaves out retention (customers who stay), ramp (the gradual build-up of customers over time) and discounting (valuing later money below money today), which unit-economics modelling (profit per customer over its life) covers separately. Threshold: go if M≥1,000,000 USD.
Base: a=0.05, P=12,000, C=7,000. Customers =5,000×0.05=250; M=250×(12,000−7,000)=1,250,000 USD.
| Input | Range (evidence) | M at low | M at high | Swing | Flip point |
|---|---|---|---|---|---|
| Adoption a | 2% to 8% (pilot conversions are few) | 500,000 | 2,000,000 | 1,500,000 | 4.0% |
| Price P | 11,000 to 13,000 (quotes from comparable products) | 1,000,000 | 1,500,000 | 500,000 | 11,000 |
| CAC C | 5,000 to 11,000 (no channel history) | 1,750,000 | 250,000 | 1,500,000 | 8,000 |
Each M figure follows from the formula: adoption 2% gives 5,000×0.02×5,000=500,000; price 11,000 gives 250×(11,000−7,000)=1,000,000; CAC 11,000 gives 250×(12,000−11,000)=250,000. Flip points: adoption 1,000,000/(5,000×5,000)=0.04; CAC 12,000−1,000,000/250=8,000; price 7,000+1,000,000/250=11,000.
Reading it:
- Adoption and CAC dominate (each swings M by 1.5 million USD), price is minor (0.5 million), because its range is narrow.
- Elasticities at base: adoption 1.0; price 12,000/5,000=2.4; CAC −7,000/5,000=−1.4. A 10% price change moves M by 24%, the most of the three, but price has a narrow range, so its swing is the smallest. If the quotes were wide, price would join the top of the list.
- The adoption range (2% to 8%) contains its flip point (4%), and the CAC range (5,000 to 11,000) contains 8,000. Those two can change the decision, so they get the research effort. Each flip point holds the other inputs at base, and the inputs interact: adoption of 4.1% with CAC of 7,900 gives 5,000×0.041×(12,000−7,900)=840,500, which fails the threshold although neither input is past its own flip point. Price reaches its flip point only at the bottom of its range, so it is a watch item.
Blending top-down growth with bottom-up pipeline into scenarios
Why a second example: the tornado above ranks inputs for a one-year yes-or-no decision. A multi-year revenue path is usually presented as a few named scenarios, so this shows how to build them. It is a different output with its own threshold (year-3 revenue), so read it as a separate, shorter case.
Near-term revenue comes from the bottom-up pipeline: each open deal is weighted by the chance of winning it at its stage, and the weighted values are added. For example (assumed): 3 deals in negotiation at 0.60 chance and 0.30 million USD each give 3×0.60×0.30=0.54; 5 deals at proposal stage at 0.30 chance and 0.20 million each give 5×0.30×0.20=0.30; 8 early-stage deals at 0.10 chance and 0.20 million each give 8×0.10×0.20=0.16. The total is 0.54+0.30+0.16=1.00 million USD, the base-case year-1 figure in the table (the conservative and aggressive cases use lower and higher stage probabilities). Later years come from top-down market growth plus share gain, so that revenue growth is r=(1+g)(1+s)−1, where g is market growth and s is the share gain. Both are yearly relative changes, not percentage points: a 30% share gain means the company's share is multiplied by 1.3 each year (a 5% share becomes 6.5%, not 35%), which is a big gain and plausible only for a young entrant starting from a small share. Year-3 revenue is year-1 revenue grown for two more years, year 1×(1+r)2.
| Scenario | Year-1 revenue from pipeline (million USD) | Market growth g | Share gain s | Revenue growth r | Year-3 revenue (million USD) |
|---|---|---|---|---|---|
| Conservative | 0.8 | 5% | 20% | 1.05×1.20−1=0.26 | 0.8×1.262=1.27 |
| Base | 1.0 | 8% | 30% | 1.08×1.30−1=0.404 | 1.0×1.4042=1.97 |
| Aggressive | 1.2 | 10% | 50% | 1.10×1.50−1=0.65 | 1.2×1.652=3.27 |
If the go line is 1.5 million USD of year-3 revenue, only the conservative scenario fails it. Scenario inputs are chosen from the inner part of each range, not the extremes. The bands are judgment ranges, not statistical intervals, and should be labelled that way. To give them probabilities, assign them explicitly (for example 0.25, 0.50, 0.25) and show how the decision depends on them.
Presenting to leadership
Show one chart with the three scenarios from a shared starting point and the threshold drawn as a line; a table of the drivers ranked by swing with their flip points; the decision in one sentence ("go if adoption times the gap between price and CAC is at least 200 USD, because 5,000×a×(P−C)≥1,000,000 is the same as a×(P−C)≥200; at base price and CAC that means adoption of at least 4%, and at base adoption and price it means CAC of at most 8,000"); and the next step, the cheapest way to narrow adoption and CAC (a pilot, a channel test). Say what the bands are and are not.
Common mistakes
- Using the same plus or minus percentage for every input.
- Ranking by sensitivity alone, or by uncertainty alone.
- Stacking all worst cases and calling it the downside.
- Presenting a scenario range as if it were a statistical confidence interval.
- Never stating the decision threshold, so no range can be judged wide or narrow.
Unlock Full Question Bank
Get access to all 10 Market Sizing and Opportunity Assessment interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.