SIYNRR BlG Official website
Promote useful digital products. Apply to become an affiliate. Apply now
Opening SIYNRR Links...

Market Sizing: TAM SAM SOM Model in Python

Ask AI to investigate this article ChatGPT Claude Gemini Grok Perplexity
Show prompt to copy by hand
by
5 mins Locked Article Buy Me A Coffee
Dark blue market sizing graphic showing nested TAM, SAM and SOM blocks next to the title Market Sizing: TAM SAM SOM Model in Python
Total, serviceable and obtainable market, built from the bottom up.

Updated November 25, 2026. This is a substantive revision of the article published on November 24, 2026, after a detailed editorial and technical review. A second same-day revision went further: the Monte Carlo no longer samples a capture share of the market at all; uncertainty now runs through the acquisition model itself, the go-to-market plan carries full mechanics (staffing, sales-cycle lag, onboarding capacity, expansion), and the sensitivity section uses a formal variance decomposition. What changed and why is documented in the reproducibility package changelog. The revision keeps the parts that were sound: real Census firm counts, exposed assumptions, Monte Carlo ranges and sensitivity testing.

Third revision, same day, after a second 20-point technical review that went at the foundations: the Census size-code mapping is now verified against the raw file's own labels instead of assumed (the published reference file's numbering genuinely does not match this dataset, and the article now shows why the codes used are still correct), the correlation test has three rungs instead of two, and every published number now sits in a verification table with its source and its check. No headline market figure changed. What changed and why is in the changelog.

Contents

  1. Executive summary
  2. Business and product definition
  3. Target customer definition
  4. Data sources and extraction methodology
  5. TAM calculation
  6. Customer segmentation
  7. SAM calculation
  8. Pricing research
  9. SOM and the go-to-market model
  10. Monte Carlo methodology
  11. Correlation and sensitivity analysis
  12. Downside, base and upside scenarios
  13. Commercial viability: revenue is not profit
  14. Limitations and unresolved questions
  15. Reproducibility
  16. Independent verification table
  17. Page performance, measured
  18. Conclusions
  19. Sources

1. Executive summary

This article sizes the market for a hypothetical client-reporting automation tool sold to US professional services firms with 10 to 99 employees, built bottom-up in Python. After the revision, the model says:

  • Theoretical TAM: $291.4M per year. 102,728 firms times a segmented annual price. This is a revenue ceiling if every firm bought, not a measurement of demand. The first version of this article used one flat price and got $369.8M; segmenting by firm size moves the ceiling down.
  • SAM: $11.7M / $29.1M / $58.3M under a 4% / 10% / 20% fit share. The fit share is an unvalidated hypothesis. No published data measures demand for this product in this segment, so the honest output is a scenario range, not a point. It also barely matters for year 3: the acquisition model never comes close to the market ceiling (section 10).
  • SOM: $22k / $225k / $1,098k of end-of-year-3 ARR under downside / base / upside go-to-market execution, with the Monte Carlo median at $232k. SOM comes from a full acquisition model: staffing, a decomposed funnel with a sales-cycle lag, onboarding capacity, inbound, churn and expansion. No market-share percentage is assumed anywhere.
  • Commercial viability is not guaranteed. In the downside the business ends three years with negative contribution (-$1k before any founder draw, -$109k after an illustrative $3k/month draw).

Every TAM, SAM and SOM figure in this article is a conditional estimate, not an independently verified measurement of actual demand. A mathematically correct calculation is not an empirically validated market opportunity. The register below says which inputs are facts and which are assumptions; the rest of the article shows the work.

The assumptions register

InputValue usedClassificationBasis
Firm count, NAICS 54, 10-19 employees58,337Census-derived estimateSUSB 2022, exact extraction documented below
Firm count, NAICS 54, 20-99 employees44,391Census-derived estimateSUSB 2022, same file
Competitor list prices$44 to $760 per monthVerified facts (checked 2026-11-25)Vendor pricing pages, cited in the pricing section
Cold-email reply rate0.45% of sendsVerified external benchmarkBelkins 2026 study, 7.5M cold emails
Free-to-paid conversion8% medianVerified external benchmarkChartMogul Conversion Report, January 2026
Monthly churn benchmarks2.2% to 6.1%Verified external benchmarkChartMogul churn data by ARPA band
Annual contract value, 10-19 firms$1,800 (range $1,200-$3,000)Commercial assumptionInside the observed competitor band; not validated with buyers
Annual contract value, 20-99 firms$4,200 (range $2,400-$6,000)Commercial assumptionSame band; larger firms run more reports and seats
Fit share (able and willing to buy)4% / 10% / 20% scenariosUnvalidated hypothesisNo published demand measurement exists; enters the model only as a customer ceiling
Outbound capacity2,000 / 3,000 / 4,000 emails per monthPlanning assumptionOne founder, basic tooling; a scheduled hire adds capacity
Sales hire staffing and salary1 hire at month 13 (base), $4,500/moPlanning assumption, unvalidatedIllustrative salary and 2-month ramp
Reply-to-meeting, meeting-to-trial, trial-to-paid20-35%, 50-70%, 20-36%Commercial assumptionsNo external anchor; replace with pipeline data
Sales cycle (reply to paying)1-3 monthsHypothesisNot measured for this product
Onboarding capacity10 / 20 / 40 new customers per monthPlanning assumptionBinds only in the upside
Inbound volume by month 3615 / 40 / 100 signups per monthUnvalidated hypothesisContent ramp from zero; the largest variance driver
Expansion / contraction0-1.5% / 0.1-1.0% of book MRR per monthUnvalidated hypothesesNo cohort data exists for this product
Cost lines (tools, support, infra, processing, draw)see section 13Illustrative cost assumptionsCash estimates, not measured

The register's classes map onto four evidence kinds used throughout: observed data (reported by an identified source), calculated results (transparent arithmetic on documented inputs), model assumptions (hypothetical inputs chosen to explore outcomes) and author interpretation (my conclusions). If a sentence states a number without a source, it belongs to one of the last two classes and is labeled as such where it appears.

2. Business and product definition

The example product is a client-reporting automation tool: it connects to a firm's data sources, generates client-ready reports on a schedule and delivers them under the firm's brand. The buyer is the owner or operations lead of a US professional services firm with 10 to 99 employees. I picked that segment because it is narrow enough to count with public data and wide enough to matter.

3. Target customer definition

The segment is a filter, not a sentence: NAICS 54 (Professional, Scientific, and Technical Services), employer firms, 10 to 99 employees, United States. Anyone can reproduce that filter. "SMB professional services" is not reproducible.

Horizontal bar chart: 6,395,635 US employer firms, 872,305 in professional, scientific and technical services, and 102,728 of those with 10 to 99 employees
Census SUSB 2022. NAICS 54 with 10-19 employees (58,337 firms) plus 20-99 employees (44,391 firms) gives 102,728. Tap the chart to enlarge.

One distinction with real consequences: a statistical firm is not necessarily an independently addressable software customer. The segment holds 102,728 firms but 118,829 establishments. A firm can run several establishments, subsidiaries or franchise locations, and a company with centralized purchasing buys one subscription, not one per location. The firm count is the right unit for counting potential accounts; it is still an upper bound on independent buying units, because one enterprise can appear once per industry or geography in the source data.

4. Data sources and extraction methodology

The firm counts come from the Census Bureau's Statistics of U.S. Businesses (SUSB). The exact extraction:

  • Dataset and file: SUSB 2022 annual data, file us_state_6digitnaics_2022.txt (56 MB, one row per state x industry x enterprise-size class), from the 2022 SUSB annual tables page. Direct download: https://www2.census.gov/programs-surveys/susb/tables/2022/us_state_6digitnaics_2022.txt.
  • Publication and reference dates: the 2022 annual tables were published in April 2025; the underlying reference period is the March 2022 payroll. Publication date and observation date are not the same thing.
  • Why this dataset: as of November 2026 it is the latest annual SUSB release (the SUSB updates page lists May 2025, covering 2022 data, as the most recent release; no 2023 annual SUSB exists yet).
  • Filters: STATE == "00" (US total), NAICS == "54", ENTRSIZE in {"26", "34"} (10-19 and 20-99 employees), reading the FIRM, ESTB and EMPL columns. The 2022 SUSB uses the 2017 NAICS classification and covers the 50 states and DC. Extraction last verified against the raw file on 2026-11-25.
  • Aggregation: 58,337 + 44,391 = 102,728. No exclusions or transformations beyond the filter.
NAICSSize codeMeaningFirmsEstablishmentsEmployment
--01All US employer firms6,395,635
5401Professional, Scientific, and Technical Services, all sizes872,305974,30310,152,104
542610-19 employees58,33761,147777,354
543420-99 employees44,39157,6821,699,372
5426+34The segment102,728118,8292,476,726

Verifying the size-code mapping instead of assuming it

The second review's highest-priority question was whether codes 26 and 34 really mean 10-19 and 20-99 employees, because the Census Bureau's published enterprise-size reference file says something different at first glance. The concern is legitimate, and the answer is worth showing in full. The reference file documents two coding lists: an aggregate list (01 = Total, 02 = <5, 03 = 5-9, 04 = 10-19, 05 = <20, 06 = 20-99, 07 = 100-499, 08 = <500, 09 = 500+) and a detailed list (01-26, where 26 = 5,000+). Neither list's bare numbers match the ENTRSIZE column of us_state_6digitnaics_2022.txt: in this file, 10-19 employees is stored under the code 26 and 20-99 under 34.

The dataset resolves the ambiguity itself. Every row carries an ENTRSIZEDSCR description column, and it is self-describing:

ENTRSIZE value in the fileFile's own label (ENTRSIZEDSCR)Aggregate reference list (enterprise_codes_2017.txt)Detailed reference list (same file)
2604: 10-1904 = 10-19 employees: MATCH26 = 5,000+ employees: does not apply to this file
3406: 20-9906 = 20-99 employees: MATCH34 does not exist: does not apply to this file

The file's own labels for codes 26 and 34 read "04: 10-19" and "06: 20-99", exactly the aggregate reference list's meanings, so the filter selects the intended rows. The published script no longer trusts the bare numbers either way: load_segment() asserts the embedded label of every matched row before counting and aborts with an explicit error if Census ever relabels a code, it rejects duplicate (state, industry, size) records, and it requires the documented columns to be present. Three further checks ran on the raw file (570,106 data rows): the size classes reconcile arithmetically with their own aggregates (652,709 + 103,960 + 58,337 = 815,006 firms under 20; 815,006 + 44,391 + 9,132 = 868,529 under 500; 868,529 + 3,776 = 872,305 total), the two segment classes are separate non-overlapping rows, and there are zero duplicate (STATE, NAICS, ENTRSIZE) keys. The independent recount is 58,337 + 44,391 = 102,728 firms, unchanged from every previous version of this article.

One more unit distinction, from the SUSB glossary: the 102,728 figure counts firms (a firm equates to an enterprise: one or more domestic establishments under common ownership or control), not establishments (physical locations, 118,829 in the segment) and not separate legal entities per location. It also excludes nonemployer businesses entirely, because SUSB covers only firms with paid employees; the segment is defined as 10-99 employees, so that exclusion does not remove any potential segment member, but it does mean SUSB is not a picture of every US business.

Two data-quality notes. First, SUSB counts employer firms only; the SBA counts another 29,811,495 nonemployer firms, mostly solo operators, which do not fit a 10 to 99 employee segment. Second, SUSB cell values are noise-infused for disclosure avoidance, so detail need not add to totals: the nine subsector rows below sum to 103,113, about 0.4% above the 102,728 sector total. I use the sector total for TAM and the subsector rows for shares only.

How old is this data, and what else exists

SUSB 2022 reflects March 2022 payrolls. Three complementary sources say what has happened since, with different definitions, so none of them can simply be swapped in:

  • Business Dynamics Statistics (BDS) 2023, released September 2025: firm startups and shutdowns, job creation and destruction through 2023. It measures dynamics, not the size-class stock.
  • Business Formation Statistics (BFS): monthly business applications. Applications ran at 5,696,742 in 2025 (I summed the unadjusted monthly series from the Census CSV), well above the pre-2020 level of about 3.5 million in 2019. Applications are filings, not confirmed employer businesses, but sustained formation suggests the 2022 firm stock is more likely a floor than a ceiling. The direction is plausible; the magnitude of drift in this specific segment is not measured.
  • 2022 Economic Census: same reference year, richer industry detail, but its size statistics are establishment-based, which is a different unit from the SUSB enterprise-definition firm. Mixing the two would break comparability.

So 2022 SUSB remains the best comparable dataset for this model, with an explicit caveat: consolidation, closures and formation since March 2022 move the firm count in both directions, and this model does not measure that drift.

5. TAM calculation

TAM is every firm in the segment times the annual revenue one firm would pay. The first version of this article used one flat $3,600. That average hid a real economic difference: a 13-employee consultancy (the average in the 10-19 class) and a 38-employee firm (the average in 20-99) differ in client count, reporting volume, seats and budget. The revision prices the two classes separately: $1,800 per year ($150/mo) for 10-19 employee firms and $4,200 per year ($350/mo) for 20-99 employee firms, both inside the competitor price band documented in section 8.

  • Flat (v1): 102,728 x $3,600 = $369.8M
  • Segmented (v2): 58,337 x $1,800 + 44,391 x $4,200 = $291.4M (blended ACV $2,837)

Both are theoretical TAM: a revenue ceiling if every firm bought. The economically relevant market is smaller, because many of these firms do not have the problem, do not have the budget, or already solved it. TAM answers "how big could this ever be," nothing more.

6. Customer segmentation

NAICS 54 is nine subsectors with different reporting work, different client cadence and different buying behavior:

NAICSSubsectorFirms with 10-99 employeesShare
5416Management, scientific and technical consulting15,37314.9%
5413Architecture, engineering and related16,77716.3%
5415Computer systems design and IT services16,12215.6%
5411Legal services17,81317.3%
5419Other professional, scientific and technical13,99713.6%
5412Accounting, tax, bookkeeping and payroll12,10811.7%
5418Advertising, PR and related4,7514.6%
5417Scientific research and development3,8843.8%
5414Specialized design2,2882.2%

Shares are computed on the subsector sum of 103,113 (see the noise-infusion note in section 4). Legal, architecture and engineering, IT services, consulting and accounting are the five largest pools, about 76% of the segment. A serious go-to-market plan would pick one or two subsectors first (accounting and consulting firms, for example, live on recurring client deliverables) rather than selling to "NAICS 54." A more detailed segmentation usually produces a smaller but much more credible SAM, and the size-class split matters too: the 10-19 class holds 57% of firms but only about 36% of the segmented TAM, because the model prices it lower.

Bar chart of firms with 10 to 99 employees across nine NAICS 54 subsectors, from legal services at 17,813 down to specialized design at 2,288
Firms with 10-99 employees by 4-digit NAICS subsector, SUSB 2022. Tap the chart to enlarge.

7. SAM calculation

SAM is the share of TAM that can actually buy: firms that have the problem, feel it enough to pay, and can be reached. The first version set fit at 20% and anchored the bottom of the range at 7.6%, the share of all US businesses that reported using AI between September 2024 and August 2025 (SBA Office of Advocacy FAQ, February 2026). That anchoring was wrong, and this revision removes it. General AI adoption does not establish demand for a specific client-reporting product. AI use, reporting-automation adoption, operational need, technical suitability, budget, willingness to pay and actual purchasing are seven different measurements. The 7.6% is also an all-business aggregate, not a measurement of NAICS 54 firms with 10 to 99 employees.

What the AI data does say, as context: the SBA Advocacy AI Spotlight (September 2025, built on the Census Bureau's BTOS) found 8.8% of businesses under 250 employees used AI in the August 2025 window, up from 6.3% six months earlier, with a U-shaped pattern by size, and that 82% of the smallest non-adopters say AI is "not applicable" to their business. Two newer measurements exist, and they cannot simply be combined with the older ones because the questions, populations and periods differ: the Census Bureau's BTOS analysis published May 26, 2026 reports 17-20% of all businesses using AI over December 2025 to May 2026, but the survey wording was revised in November 2025 (from AI use "in producing goods or services" to use "in any business function"), which breaks comparability with the earlier BTOS series; and the Federal Reserve's 2025 Small Business Credit Survey (2026 Report on Employer Firms, fielded September to November 2025; see also the NY Fed's Liberty Street analysis) found 46% of employer firms already using AI tools and 15% planning to adopt within a year, a different instrument and population again. All of it is evidence about technology readiness, not demand for reporting automation. The honest position: the fit share is currently unknown.

The revised model treats fit as a hypothesis and runs scenarios. One possible decomposition, with conditional denominators made explicit, for the 10% base case: 65% of segment firms produce recurring client reports at all, 70% of those have enough reporting volume to feel the pain, 55% of those still run the workflow manually, and 40% of those have budget and willingness to switch vendors: 0.65 x 0.70 x 0.55 x 0.40 gives 10.0%. These characteristics overlap (firms with more reporting volume are more likely to have budget), so the chain is an illustration of what must be true, not four independent measurements. None of the four percentages has a published source. That is why the model reports scenarios instead of a point:

  • Low, 4% fit: SAM $11.7M.
  • Base, 10% fit: SAM $29.1M.
  • High, 20% fit: SAM $58.3M.

The way to replace these scenarios with evidence is primary research: customer interviews, competitor customer counts, survey data, and observed purchasing behavior. Twenty structured conversations with firm owners would narrow this more than any modeling. A second result from section 10 matters here: because the acquisition model never reaches the market ceiling in year 3, the fit share barely moves the year-3 SOM at all. Fit decides whether the year-5 story exists; capacity decides the year-3 one.

8. Pricing research

The $200 to $500 per month range in the first version had no independent support. The revision grounds it in what comparable tools actually charge:

ProductWhat it doesList price checked 2026-11-25
AgencyAnalyticsClient reporting for agencies$20 per client per month (annual billing): $200/mo at 10 clients, $500/mo at 25
DashThisReporting dashboards$44 / $139 / $279 / $429 per month for 3 / 10 / 25 / 50 dashboards (annual billing)
SwydoClient reportingEUR 62/mo (annual) including 10 data sources, then EUR 4.50 per extra source
WhatagraphMarketing reporting platformMax plan from EUR 699/mo (annual billing)
KarbonAccounting practice management with client workflows$59 per user per month (annual): $295/mo for a 5-seat firm
Scatter of monthly list prices for nine comparable tools and configurations from $44 to $760, with the modeled 100 to 500 dollar band shaded
List prices of comparable reporting and workflow tools, checked 2026-11-25. EUR converted at roughly 1.08 USD. Tap the chart to enlarge.

Two disciplines follow. First, the modeled ACVs ($150/mo for small firms, $350/mo for larger ones) sit inside the observed band, which makes them plausible, not proven. List price is not realized contract value: annual billing discounts, promotions and negotiation pull realized ACV below list. Second, per-client pricing (AgencyAnalytics) means the same tool costs a firm $200 or $500 a month depending on its client load, which is exactly why the revision prices the two size classes separately. A pricing sensitivity analysis is included in the Monte Carlo, but it cannot replace willingness-to-pay research. If you are building this, run pricing interviews before trusting any of these numbers.

9. SOM and the go-to-market model

The first version ended with "1.5% capture of SAM by year three," which assumed the conclusion. A company cannot acquire 1.5% of a market because the market is large; the sales process, distribution and resources decide what is achievable. The revision builds SOM from the actual mechanics of acquiring, onboarding, retaining and expanding customers:

ParameterDownsideBaseUpsideBasis
Founder outbound capacity2,000 emails/mo3,000 emails/mo4,000 emails/moPlanning assumption (one founder, basic tooling)
Sales hirenonemonth 13, +2,500 emails/mo, $4,500/mo, 2-month rampmonth 9, +3,000 emails/mo, $4,500/moPlan choice; salary and ramp are illustrative
Reply rate0.35%0.50%0.70%Anchored to Belkins 2026: 0.45% average across 7.5M cold emails; 0.49% for 11-50-employee firms
Reply to meeting20%30%35%Assumption, no external anchor
Meeting to trial50%60%70%Assumption, no external anchor
Trial to paying (outbound)20%33%36%Assumption; the chain product matches the v2 aggregate close rate
Sales cycle (reply to paying)3 months2 months1 monthHypothesis; modeled as a pipeline lag
Onboarding capacity10/mo20/mo40/moPlanning assumption; overflow waits in a backlog queue
Inbound signups by month 3615/mo40/mo100/moHypothesis: content ramps linearly from zero
Inbound free-to-paid6%8%10%Anchored to ChartMogul 8% median
Monthly churn6%4%2.5%Anchored to ChartMogul: 6.5% for firms under $300k ARR, 2.2% above $500 ARPA
Gross expansion0%/mo0.8%/mo1.5%/moHypothesis, applied to the installed book's MRR
Gross contraction1.0%/mo0.3%/mo0.1%/moHypothesis, same

The mechanics, exactly as coded: outbound replies become paying customers only after the sales-cycle lag (meetings and trials sit inside that lag). New customers pass through the onboarding cap; overflow waits in a backlog queue instead of vanishing. The installed book's average revenue drifts every month by expansion minus contraction. Churn removes logos monthly. Inbound ramps linearly from zero. Simulated month by month over 36 months:

ScenarioCustomers, end of year 3End-of-year-3 ARRCumulative 3-year revenue3-year contributionAfter founder draw
Downside11$22k$33k-$1k (loses money)-$109k
Base66$225k$279k$121k$13k
Upside235$1,098k$1,239k$1,009k$901k
Line chart of ARR run-rate over 36 months for three scenarios, ending at 22, 225 and 1,098 thousand dollars, with a dashed reference line showing the old 1.5 percent capture rate applied to the revised base SAM (437 thousand dollars) and a marker at the base plan's first sales hire in month 13
What the three go-to-market plans deliver. The dashed line is the old 1.5% capture rate applied to the revised base SAM, not the v1 dollar outcome. Tap the chart to enlarge.

Read the base row against the old assumption: 1.5% of base SAM is $437k of ARR, or 154 customers at the blended ACV. Holding the base churn rate, that requires acquiring about 10 new customers a month; the base plan exits year 3 at about 4.8 a month. The old SOM was therefore not a forecast, it was a wish with a percentage on it. The upside scenario does pass 154 customers, but only with reply rates, conversion, inbound volume and expansion all landing at the friendly end of their ranges at once.

The SOM definition is exact: end-of-year-3 ARR, meaning the annualized run-rate of active subscriptions in the final month, including the expansion drift on the book. The table also reports cumulative 3-year revenue, which is much lower than three times ARR because the book builds gradually. The first version never said which measure its $1.11M was; these are not interchangeable.

10. Monte Carlo methodology

The simulation quantifies uncertainty conditional on the distributions and ranges I chose. It does not establish the probability that the actual business achieves any outcome. P10, P50 and P90 below are percentiles of the simulated scenario distribution, not empirical confidence intervals and not calibrated probabilities of success.

A. What is sampled: the acquisition model, not a capture share

The previous revision of this article still sampled a "capture" fraction of SAM. That is the same shortcut as the original 1.5%, dressed in a distribution: it assumes a market share is something a business simply gets. This revision removes it. The Monte Carlo now samples the inputs of the acquisition model itself: reply rate, the three funnel conversion steps, inbound volume and conversion, churn, net expansion and the two prices, each triangular over the scenario bounds from section 9. Every one of the 100,000 simulated businesses is then run through the full 36-month mechanics: staffing schedule, pipeline lag, onboarding cap, churn and expansion. Market size enters only as a ceiling (firms x fit) on total customers.

Two results follow immediately. The ceiling binds in 0.0% of simulations: with a capacity-constrained plan, market size does not constrain the year-3 outcome at all, which is why the fit share's sensitivity share in section 11 is zero. And the SOM distribution is an output of mechanics, not an assumption: ARR P10/P50/P90 = $146k / $232k / $360k (independent inputs). The correlated runs (below) give $142k / $231k / $367k (moderate) and $139k / $231k / $371k (strong).

Range chart on a log scale showing P10, P50 and P90 for TAM (251 to 355 million dollars), SAM with fit sampled (21 to 50 million) and SOM from the acquisition model (146 to 360 thousand), with the three go-to-market scenario ARR results marked as triangles on the SOM row
Monte Carlo ranges. TAM and SAM come from the market model; the SOM row is an output of the acquisition model, not an assumed market share. The triangles mark the three deterministic go-to-market plans for cross-checking. Tap the chart to enlarge.

B. Reconciliation with the deterministic scenarios

Overlaid histograms of simulated year-3 ARR under independent, moderately correlated and strongly correlated inputs, with the deterministic base scenario near the median and the deterministic downside and upside far outside the P10 to P90 band
SOM from the acquisition model, not a capture percentage. Independent inputs, moderate correlation and strong correlation (doubled targets) all land on the same center; only the tails thicken. The deterministic corner scenarios sit far outside the percentile band, and that is expected. Tap the chart to enlarge.

The deterministic base ($225k) lands almost exactly on the Monte Carlo median ($232k): the plan's parameters are the distribution modes, and the mechanics are close to symmetric around them. The deterministic downside ($22k) sits far below P10 and the upside ($1,098k) far above P90. That is not a contradiction: each corner scenario sets all eleven inputs to their floor or ceiling at once, a joint event far more extreme than any single percentile of the output. The corners answer "what if everything goes wrong (or right) together"; the percentiles answer "what range covers the middle 80% of sampled plans." Both are reported because they answer different questions.

C. Correlation and dependency

Inputs are not independent: better targeting lifts reply and meeting rates together (+0.3), higher prices slow trial-to-paid (-0.2), brand strength lifts inbound volume and reply rates together (+0.2), and the two size-class prices move together (+0.6). These rank-correlation targets are judgment, stated openly, and the test suite verifies the copula recovers them. The correlated run changes the tails, not the center: P10/P50/P90 of $142k / $231k / $367k versus $146k / $232k / $360k independent. Because "moderate" is itself a judgment, the third revision adds the strong-correlation rung the second review asked for, roughly doubling every target (+0.6 reply-meeting, -0.4 price-trial, +0.4 inbound-reply, +0.8 between prices): P10/P50/P90 of $139k / $231k / $371k. Even doubling the assumed dependencies moves the median by less than half a percent; what moves the result is the choice of ranges, not the correlation structure. The dependency assumptions matter less here than in a market-fraction model, because the strongest drivers (inbound, expansion) are left uncorrelated with prices by design; adding those dependencies is listed in section 14 as an open modeling question.

D. Robustness to the chosen distributions

Why triangular distributions at all: each input needs a bounded range with a most-likely value, the bounds come from the downside and upside plans in section 9, the mode is the base plan, and the triangular is the minimum-structure distribution that carries exactly those three judgments and nothing else. The min/mode/max values are evidence where an anchor exists (reply, free-to-paid, churn, prices) and judgment everywhere else, and the register says which is which. The conclusion should not depend on convenient shapes. Replacing every triangular mode with the range midpoint (flat-topped distributions) moves the median from $232k to $241k. Widening the churn range to 2-8% and the reply range to 0.3-0.9% moves the median to $228k and the P90 to $361k. The qualitative read is stable: the center is modest, the right tail is real, and the ranges you choose dominate the result.

E. The market-fraction Monte Carlo, kept as a labeled comparison

For readers who want to see what the old method says, the capture-fraction simulation still runs in the package (capture 0.1-2.1% of SAM, the range the v2 GTM model implied). It gives SOM P10/P50/P90 of $110k / $269k / $563k. It is kept strictly as an educational comparison: it answers "if a business could simply claim a share of a market, what would the share be worth," which is not how acquisition works. The operational forecast is the acquisition-model distribution above.

11. Correlation and sensitivity analysis

Horizontal bar chart of first-order Sobol variance shares for year-3 ARR: inbound volume 0.41 and net expansion 0.24 dominate, prices contribute about 0.14 combined, funnel rates and churn are small, fit share is zero
Formal variance decomposition: the unvalidated hypotheses dominate, not the benchmark-anchored inputs. Tap the chart to enlarge.

This section now uses a formal variance decomposition: first-order Sobol indices, estimated with Saltelli sampling (8,192 base samples, 106,496 model runs). The method attributes the output variance to each input exactly, under one condition: the inputs must be independent. That condition holds in the independent design, so the shares above are methodologically valid there. Under the copula they are not computable in the same way: with dependent inputs, variance shares are not uniquely attributable (the shared variance has no canonical owner), so for the correlated run the package reports only descriptive rank associations (Spearman), and this article does not present them as a variance decomposition. Regression coefficients are not a substitute for Sobol indices and are not relabeled as one.

The shares say something the first version got backwards. The inputs that dominate year-3 ARR variance are inbound volume by month 36 (0.41) and net expansion (0.24), both pure hypotheses with no external anchor. The benchmark-anchored inputs (reply rate 0.02, churn 0.04, free-to-paid 0.03) contribute little, partly because their evidence narrows their ranges. The funnel conversion steps are small. And the fit share, the variable the SAM discussion worries about, contributes zero, because the market ceiling never binds in year 3. Statistical influence is still not practical leverage: inbound volume is moved by content investment over quarters, expansion by retention and packaging work, and both shares are conditional on the ranges chosen. But the direction of the next research dollar is now explicit: validate the inbound ramp and the expansion assumption before anything else, because they are simultaneously the least evidenced and the most consequential inputs in the model.

12. Downside, base and upside scenarios

Bar chart comparing downside, base and upside scenarios on end-of-year-3 ARR, three-year contribution, and profit after an illustrative founder draw; the downside shows negative contribution
Revenue is not profit: the same three scenarios on a contribution basis. Tap the chart to enlarge.

The scenario table is in section 9. The point of showing all three is discipline: the downside is not a rounding error. An 11-customer, $22k-ARR, negative-contribution outcome is fully consistent with every input landing inside its stated range. Any plan that only works in the upside is not a plan.

13. Commercial viability: revenue is not profit

Capturing customers and running a viable business are different claims. The model now carries an itemized (illustrative, not validated) cost structure so the gross unit economics can be distinguished from anything like profit:

Cost lineAmountType
Tools (reporting, CRM, sequencer)$500/moS&M fixed, cash
Data and lists$200/moS&M fixed, cash
Email infrastructure$50/moS&M fixed, cash
Sales hire salary$4,500/mo from the hire monthS&M, cash
Support$8 per customer per monthDirect, scales with book
Infrastructure$100/mo base + $2 per customer per monthDirect
Payment processing3% of revenueDirect
Founder draw$3,000/moReported separately, not in contribution

The base scenario over 36 months: revenue $279k, direct costs $22k (support, infrastructure, processing), S&M $135k (tools, data, email infrastructure, and the hire's salary from month 13), leaving contribution of $121k, and $13k after an illustrative $3,000/month founder draw. The downside never covers its own S&M spend: contribution of -$1k, and -$109k after the draw. Still excluded, because a blog model should not pretend to a full P&L: taxes, benefits, office and equipment, development tools beyond the lines above, and the founder's opportunity cost beyond the token draw. The earlier LTV/CAC view told the same story in one ratio (downside 0.9); the contribution view shows it in cash. Market size alone never establishes viability.

14. Limitations and unresolved questions

  • Fit share is unvalidated, though less important than it looks: the market ceiling never binds in year 3, so fit matters to the year-5 story, not the year-3 SOM.
  • ACV is unvalidated. Competitor list prices bound what the market tolerates; they do not measure willingness to pay for a product that does not exist yet.
  • The two most consequential inputs are the least validated. The inbound ramp and net expansion drive over 60% of the simulated variance and rest on no external evidence. The expansion compounding also makes the upside aggressive; treat $1,098k as a ceiling on optimism, not a plan.
  • Funnel conversion rates, the sales-cycle lag and onboarding capacity are hypotheses. Meeting, trial and close rates need pipeline data; the lag and the cap need operating data.
  • Dependency coverage is partial. The copula correlates four pairs; inbound-expansion and price-retention dependencies are not modeled, and variance shares are not identifiable under the copula, so the Sobol decomposition is reported only for the independent design.
  • The cost structure is illustrative. The cost lines are cash guesses, not quotes; taxes, benefits, equipment and full payroll are excluded.
  • The firm count is dated. SUSB 2022 reflects March 2022 payrolls; formation, closure and consolidation since then are not measured in this model.
  • Firms are not buying units. Multi-establishment and centrally-purchased firms reduce the independent account count below 102,728 by an amount this data does not measure.
  • No competitive gap claim is made. The alternatives section lists what buyers already use; nothing here establishes that they are underserved. That requires win/loss and switching research.
  • One product, one country, one channel mix. A second segment or region is a separate run, not a multiplier.
  • Code validation is not business validation. The test suite proves the script computes what it claims. Only customer research validates what it assumes.

15. Reproducibility

The complete package is in a public Drive folder: TAM-SAM-SOM reproducibility package. It contains the full script (market_sizing_v4.py; v2 and v3 are kept alongside), an executed Jupyter notebook, requirements.txt, a README, a changelog covering every version, the independent verification table, every output table as CSV, every figure as PNG, and the exact console output. Another analyst can reproduce every number without reconstructing anything by hand.

The script needs Python 3 and NumPy only (developed on Python 3.10.12, NumPy 2.2.6). Download the SUSB file from the Census URL in section 4, put it next to the script, and run it. Without the file it falls back to the verified extraction constants and says so. The seed (42) reproduces this run under compatible software; it is not a guarantee of bit-identical output across NumPy versions or platforms. python market_sizing_v4.py --test runs the validation suite: parsing against known Census values, size-code label assertions, duplicate-record rejection, size-class arithmetic identities, TAM > SAM ordering, distribution bounds, copula correlation recovery at both correlation levels, seed reproducibility, boundary conditions, GTM edge cases (no inflow, onboarding-cap binding, sales-cycle lag timing, expansion drift, ceiling binding) and Sobol sanity (shares bounded, fit near zero, the hypothesis inputs dominant).

The full script (expand)
"""Bottom-up TAM / SAM / SOM for a client-reporting automation tool, v4.

What changed from v3 (see CHANGELOG.md):
- Census size-code verification hardened, per the second review's highest-
  priority item: the published reference (enterprise_codes_2017.txt)
  documents two coding lists whose numbers do not match this data file's
  ENTRSIZE column. The file resolves the ambiguity itself through its
  ENTRSIZEDSCR labels (26 -> "04: 10-19", 34 -> "06: 20-99", matching the
  reference's AGGREGATE list), and the loader now ASSERTS those labels
  before counting, fails loudly on any change, rejects duplicate
  (STATE, NAICS, ENTRSIZE) records, and verifies the size-class
  arithmetic identities (<5 + 5-9 + 10-19 == <20, and so on).
- The correlation ladder now has three rungs as the review asked:
  independent / moderate / strong, with the strong variant roughly
  doubling the rank-correlation targets. The read is unchanged.
- A verification table (verification_table_v4.csv) connects every
  published result to its source and how it was checked.

What changed from v2 to v3:
- The go-to-market model is now the full mechanics the review asked for:
  numeric staffing (founder + scheduled sales hire with ramp), a decomposed
  outbound funnel (emails -> replies -> meetings -> trials -> paying
  customers), a sales-cycle lag between reply and conversion, an onboarding
  capacity cap with backlog, inbound ramp, logo churn, and separate gross
  expansion / gross contraction on the installed book.
- Cost treatment is itemized: tools, data, email infrastructure, hire
  salary, support per customer, infrastructure base + per customer, and
  payment processing. Gross unit economics are distinguished from
  contribution and from profit after an illustrative founder draw. None of
  the cost lines are empirically validated; they are labeled illustrative.
- The Monte Carlo no longer samples a capture fraction of SAM (that was the
  shortcut the review rejected). Uncertainty is propagated through the
  acquisition model itself: funnel rates, inbound, churn, expansion and
  prices are sampled and the year-3 ARR distribution falls out of the
  mechanics. Market size enters as a customer ceiling (firms x fit), which
  lets the model show whether market size even binds in year 3.
- The market-fraction Monte Carlo from v2 is kept as a clearly labeled
  educational comparison, not the operational forecast.
- Sensitivity now includes formal first-order Sobol variance decomposition
  (Saltelli sampling) on the independent design, where it is valid. Under
  the copula, variance shares are not uniquely attributable, so there we
  report rank regression as a descriptive association measure and say why.
- Deterministic downside/base/upside scenarios are reconciled against the
  Monte Carlo percentiles in the output.

Data: US Census Bureau, Statistics of U.S. Businesses (SUSB) 2022 annual
data (latest annual SUSB release as of November 2026; the 2022 tables were
published April 2025). File: us_state_6digitnaics_2022.txt, one row per
state x industry x enterprise-size class. Download:
https://www2.census.gov/programs-surveys/susb/tables/2022/us_state_6digitnaics_2022.txt
Table landing page:
https://www.census.gov/data/tables/2022/econ/susb/2022-susb-annual.html

Segment: NAICS 54 (Professional, Scientific, and Technical Services),
enterprise-size codes 26 (10-19 employees) and 34 (20-99 employees),
US-level rows (STATE == "00"). Counts are FIRMS, not establishments.

Run:      python market_sizing_v4.py [path/to/us_state_6digitnaics_2022.txt]
If the file is absent the script falls back to the verified constants
printed by the extraction on 2026-11-25 and says so.
Tests:    python market_sizing_v4.py --test
Needs:    Python 3.10+, NumPy. Developed with Python 3.10.12, NumPy 2.2.6.
"""
import csv, os, sys
import numpy as np

SEED, N = 42, 100_000
MONTHS = 36

# --------------------------------------------------------------------------
# Verified constants, extracted from us_state_6digitnaics_2022.txt on
# 2026-11-25. The loader reproduces every one of them; test_data() proves it.
# --------------------------------------------------------------------------
SEGMENT = {
    "10-19": {"code": "26", "firms": 58_337, "estb": 61_147, "empl": 777_354},
    "20-99": {"code": "34", "firms": 44_391, "estb": 57_682, "empl": 1_699_372},
}
TOTAL_EMPLOYER_FIRMS = 6_395_635          # SUSB 2022, NAICS "--", size 01
NAICS54_FIRMS        = 872_305            # SUSB 2022, NAICS "54", size 01
# 4-digit subsector firm counts, 10-99 employees (codes 26+34). Note: the
# subsector rows sum to 103,113 while the sector total is 102,728. SUSB
# values are noise-infused for disclosure avoidance, so detail need not add
# to totals. We use the sector total for TAM and subsector rows for shares.
SUBSECTORS = [
    ("5411", "Legal services",                                    17_813),
    ("5412", "Accounting, tax, bookkeeping, payroll",             12_108),
    ("5413", "Architecture, engineering, related",                16_777),
    ("5414", "Specialized design",                                 2_288),
    ("5415", "Computer systems design / IT services",             16_122),
    ("5416", "Management, scientific, technical consulting",      15_373),
    ("5417", "Scientific R&D",                                     3_884),
    ("5418", "Advertising, PR, related",                           4_751),
    ("5419", "Other professional, scientific, technical",         13_997),
]

# Pricing evidence checked on 2026-11-25 (see README for URLs). These anchor
# the ACV *range*; they do not measure willingness to pay for our product.
PRICING_EVIDENCE = [
    ("AgencyAnalytics", "client reporting for agencies", "$20 per client/mo (annual billing); a 10-client agency pays $200/mo, 25 clients $500/mo"),
    ("DashThis",        "reporting dashboards",          "$44 (3 dashboards) / $139 (10) / $279 (25) / $429 (50) per month, annual billing"),
    ("Swydo",           "client reporting",              "EUR 62/mo annual incl. 10 data sources, then EUR 4.50/source (11-100)"),
    ("Whatagraph",      "marketing reporting platform",  "Max plan from EUR 699/mo, annual billing"),
    ("Karbon",          "accounting practice management with client workflows", "$59 per user/mo (annual); a 5-seat firm pays $295/mo"),
]

# Commercial assumptions: per-firm annual contract value by size class.
ACV = {
    "10-19": {"min": 1_200, "mode": 1_800, "max": 3_000},   # $100-250/mo
    "20-99": {"min": 2_400, "mode": 4_200, "max": 6_000},   # $200-500/mo
}
# Unvalidated hypothesis: share of the segment that is able and willing to
# buy. Scenario values, not a point estimate.
FIT_SCENARIOS = {"low": 0.04, "base": 0.10, "high": 0.20}

# --------------------------------------------------------------------------
# Go-to-market parameters per scenario (v3, full mechanics).
# External anchors: reply rate ~0.45% (Belkins 2026, 7.5M cold emails; 0.49%
# for 11-50-employee firms); inbound free-to-paid 8% median (ChartMogul
# Conversion Report, Jan 2026); monthly churn 2.2%-6.1% by ARPA band
# (ChartMogul 2022). EVERYTHING ELSE IS A HYPOTHESIS, labeled as such.
# --------------------------------------------------------------------------
GTM = {
    "downside": dict(
        founder_emails=2_000, hire_month=None, hire_emails=0, hire_salary=0,
        reply=0.0035, reply_to_meeting=0.20, meeting_to_trial=0.50,
        trial_to_paid=0.20, sales_cycle=3,
        inbound_end=15, inbound_f2p=0.06,
        churn=0.06, expansion=0.000, contraction=0.010,
        onboard_cap=10),
    "base": dict(
        founder_emails=3_000, hire_month=13, hire_emails=2_500, hire_salary=4_500,
        reply=0.0050, reply_to_meeting=0.30, meeting_to_trial=0.60,
        trial_to_paid=0.33, sales_cycle=2,
        inbound_end=40, inbound_f2p=0.08,
        churn=0.04, expansion=0.008, contraction=0.003,
        onboard_cap=20),
    "upside": dict(
        founder_emails=4_000, hire_month=9, hire_emails=3_000, hire_salary=4_500,
        reply=0.0070, reply_to_meeting=0.35, meeting_to_trial=0.70,
        trial_to_paid=0.36, sales_cycle=1,
        inbound_end=100, inbound_f2p=0.10,
        churn=0.025, expansion=0.015, contraction=0.001,
        onboard_cap=40),
}

# Itemized monthly cash costs (illustrative hypotheses, not validated).
COSTS = dict(tools=500, data=200, email_infra=50,      # S&M fixed
             support_per_cust=8,                        # support
             infra_base=100, infra_per_cust=2,          # infrastructure
             processing_pct=0.03,                       # payments
             founder_draw=3_000)                        # reported separately

# --------------------------------------------------------------------------
# Monte Carlo input distributions for the acquisition model (triangular
# min/mode/max). Bounds span the deterministic downside/upside scenarios.
# --------------------------------------------------------------------------
GTM_MC = {
    "reply":         (0.0035, 0.0050, 0.0070),  # Belkins-anchored band
    "r2m":           (0.20, 0.30, 0.35),        # hypothesis
    "m2t":           (0.50, 0.60, 0.70),        # hypothesis
    "t2p":           (0.20, 0.33, 0.36),        # hypothesis
    "inbound_end":   (15, 40, 100),             # hypothesis
    "inbound_f2p":   (0.06, 0.08, 0.10),        # ChartMogul-anchored
    "churn":         (0.025, 0.04, 0.06),       # ChartMogul-anchored
    "exp_net":       (-0.010, 0.005, 0.014),    # hypothesis (expansion-contraction)
    "acv_1019":      (1_200, 1_800, 3_000),     # competitor-band assumption
    "acv_2099":      (2_400, 4_200, 6_000),     # competitor-band assumption
    "fit":           (0.04, 0.10, 0.20),        # hypothesis, ceiling only
}
# Fixed plan choices in the MC (not uncertainties): base staffing schedule
# (hire at month 13), sales_cycle=2, onboard_cap=20. Stated openly.
# Rank-correlation targets for the correlated run (judgment, stated):
# targeting quality lifts reply and meeting rates together; higher prices
# slow trial-to-paid; content strength lifts inbound and reply together;
# the two size-class prices move together.
GTM_CORR = {("reply", "r2m"): 0.3, ("acv_2099", "t2p"): -0.2,
            ("inbound_end", "reply"): 0.2, ("acv_1019", "acv_2099"): 0.6}
# v4: a STRONG-correlation variant (roughly doubled targets), run so the
# reader sees the independent / moderate / strong ladder the review asked
# for. Same four pairs, same judgment status.
GTM_CORR_STRONG = {("reply", "r2m"): 0.6, ("acv_2099", "t2p"): -0.4,
                   ("inbound_end", "reply"): 0.4, ("acv_1019", "acv_2099"): 0.8}

# v2 market-fraction MC (kept ONLY as a labeled educational comparison).
MC_FRACTION = {
    "acv_1019": (1_200, 1_800, 3_000),
    "acv_2099": (2_400, 4_200, 6_000),
    "fit":      (0.04, 0.10, 0.20),
    "capture":  (0.001, 0.005, 0.021),
}

# --------------------------------------------------------------------------
# 1. Data extraction (fully reproducible)
# --------------------------------------------------------------------------
# The published enterprise-size reference (enterprise_codes_2017.txt)
# documents two coding lists whose NUMBERS do not match this file's ENTRSIZE
# column (its detailed list even assigns 26 to "5,000+"). The data file
# resolves the ambiguity itself: every row carries ENTRSIZEDSCR, and for
# ENTRSIZE 26 that label reads "04: 10-19", for 34 it reads "06: 20-99",
# matching the reference's AGGREGATE list (04 = 10-19, 06 = 20-99). We
# therefore never trust the bare codes: the loader asserts the embedded
# labels before counting, and fails loudly if Census ever changes them.
EXPECTED_SIZE_LABELS = {"26": "04: 10-19", "34": "06: 20-99"}
REQUIRED_COLUMNS = {"STATE", "NAICS", "ENTRSIZE", "FIRM", "ESTB", "EMPL",
                    "ENTRSIZEDSCR"}

def load_segment(path, naics="54", size_codes=("26", "34")):
    out = {}
    with open(path, encoding="latin-1", newline="") as f:
        reader = csv.DictReader(f)
        assert REQUIRED_COLUMNS.issubset(set(reader.fieldnames or [])), \
            f"missing columns: {REQUIRED_COLUMNS - set(reader.fieldnames or [])}"
        seen = set()
        for row in reader:
            key = (row["STATE"], row["NAICS"], row["ENTRSIZE"])
            assert key not in seen, f"duplicate record: {key}"
            seen.add(key)
            assert row["FIRM"] != "" and int(row["FIRM"]) >= 0  # parsed, non-negative
            if row["STATE"] == "00" and row["NAICS"] == naics and row["ENTRSIZE"] in size_codes:
                label = row["ENTRSIZEDSCR"].strip()
                expected = EXPECTED_SIZE_LABELS.get(row["ENTRSIZE"])
                assert expected is None or label == expected, (
                    f"ENTRSIZE {row['ENTRSIZE']} is labeled {label!r}, expected "
                    f"{expected!r}. The size-code mapping changed; do not count "
                    f"until the mapping is re-verified against the official "
                    f"reference file.")
                out[row["ENTRSIZE"]] = {
                    "firms": int(row["FIRM"]), "estb": int(row["ESTB"]),
                    "empl": int(row["EMPL"]), "label": label}
    assert out, "no matching rows: check STATE/NAICS/ENTRSIZE filters"
    return out

def verify_extraction_identities(path, naics="54"):
    """Independent arithmetic checks on the raw file for one NAICS sector:
    the size classes must reconcile with their aggregates (<5 + 5-9 + 10-19
    == <20; <20 + 20-99 + 100-499 == <500; <500 + 500+ == Total) and the
    two segment classes must not overlap (they are separate rows)."""
    d = {}
    with open(path, encoding="latin-1", newline="") as f:
        for row in csv.DictReader(f):
            if row["STATE"] == "00" and row["NAICS"] == naics:
                d[row["ENTRSIZE"]] = int(row["FIRM"])
    checks = {
        "<5 + 5-9 + 10-19 == <20": d["02"] + d["03"] + d["26"] == d["33"],
        "<20 + 20-99 + 100-499 == <500": d["33"] + d["34"] + d["35"] == d["37"],
        "<500 + 500+ == Total": d["37"] + d["36"] == d["01"],
        "10-19 and 20-99 are mutually exclusive rows": True,
    }
    assert all(checks.values()), f"identity checks failed: {checks}"
    return checks

def firms_by_class(extracted=None):
    if extracted:
        return {"10-19": extracted["26"]["firms"], "20-99": extracted["34"]["firms"]}
    return {k: v["firms"] for k, v in SEGMENT.items()}

# --------------------------------------------------------------------------
# 2. TAM, SAM (strict definitions)
# --------------------------------------------------------------------------
def tam_segmented(firms, acv_1019, acv_2099):
    return firms["10-19"] * acv_1019 + firms["20-99"] * acv_2099

def sam(tam, fit):
    return tam * fit

def blended_arpa_year(a1019, a2099, firms):
    """Customer mix mirrors the firm mix of the segment."""
    tot = firms["10-19"] + firms["20-99"]
    return (firms["10-19"] * a1019 + firms["20-99"] * a2099) / tot

# --------------------------------------------------------------------------
# 3. Go-to-market acquisition model v3 (monthly, 36 months, full mechanics)
#    Scalar parameters -> trajectory dict. Vectorized twin below for MC.
# --------------------------------------------------------------------------
def gtm_simulate(p, months=MONTHS):
    """Outbound pipeline with a sales-cycle lag: replies generated in month m
    become paying customers in month m + sales_cycle (meetings and trials sit
    inside that lag). New customers pass through an onboarding cap; overflow
    waits in a backlog queue. The installed book's ARPA drifts monthly by
    (expansion - contraction). Logo churn applies monthly."""
    customers, arpa_book, backlog = 0.0, 1.0, 0.0
    replies_hist = []
    rows = []
    for m in range(1, months + 1):
        reps_out = p["founder_emails"]
        if p["hire_month"] and m >= p["hire_month"]:
            ramp = 0.5 if m < p["hire_month"] + 2 else 1.0
            reps_out += p["hire_emails"] * ramp
        replies = reps_out * p["reply"]
        replies_hist.append(replies)
        lag = p["sales_cycle"]
        conv_replies = replies_hist[m - 1 - lag] if m > lag else 0.0
        meetings = conv_replies * p["reply_to_meeting"]
        trials = meetings * p["meeting_to_trial"]
        new_out = trials * p["trial_to_paid"]
        signups = p["inbound_end"] * (m / months)
        new_in = signups * p["inbound_f2p"]
        wanted = new_out + new_in + backlog
        onboarded = min(wanted, p["onboard_cap"])
        backlog = wanted - onboarded
        churned = customers * p["churn"]
        customers = customers - churned + onboarded
        arpa_book *= (1.0 + p["expansion"] - p["contraction"])
        rows.append(dict(month=m, outbound_capacity=reps_out, replies=replies,
                         meetings=meetings, trials=trials, new_outbound=new_out,
                         signups=signups, new_inbound=new_in, onboarded=onboarded,
                         backlog=backlog, churned=churned, customers=customers,
                         arpa_factor=arpa_book))
    return rows

def gtm_summary(rows, arpa_year):
    end_c = rows[-1]["customers"]
    arr_end = end_c * arpa_year * rows[-1]["arpa_factor"]
    cum_rev = sum(r["customers"] * arpa_year * r["arpa_factor"] / 12 for r in rows)
    return dict(customers_end=end_c, arr_end=arr_end, cumulative_revenue=cum_rev)

def pnl(rows, p, arpa_year, costs=COSTS):
    """Itemized 36-month cash view. Revenue uses the drifted book ARPA.
    Returns gross (revenue), direct costs, S&M, contribution, and profit
    after the illustrative founder draw. All cost lines are hypotheses."""
    rev = sm = direct = 0.0
    for r in rows:
        m_rev = r["customers"] * arpa_year * r["arpa_factor"] / 12
        rev += m_rev
        m_sm = costs["tools"] + costs["data"] + costs["email_infra"]
        if p["hire_month"] and r["month"] >= p["hire_month"]:
            m_sm += p["hire_salary"]
        sm += m_sm
        direct += (costs["support_per_cust"] + costs["infra_per_cust"]) * r["customers"] \
                  + costs["infra_base"] + costs["processing_pct"] * m_rev
    contribution = rev - direct - sm
    return dict(revenue=rev, direct=direct, sm_spend=sm, contribution=contribution,
                profit_after_draw=contribution - costs["founder_draw"] * len(rows))

# --------------------------------------------------------------------------
# 4. Monte Carlo THROUGH the acquisition model (vectorized over N sims)
# --------------------------------------------------------------------------
def _norm_ppf(u):
    a = [-3.969683028665376e+01, 2.209460984245205e+02, -2.759285104469687e+02,
         1.383577518672690e+02, -3.066479806614716e+01, 2.506628277459239e+00]
    b = [-5.447609879822406e+01, 1.615858368580409e+02, -1.556989798598866e+02,
         6.680131188771972e+01, -1.328068155288572e+01]
    c = [-7.784894002430293e-03, -3.223964580411365e-01, -2.400758277161838e+00,
         -2.549732539343734e+00, 4.374664141464968e+00, 2.938163982698783e+00]
    d = [7.784695709041462e-03, 3.224671290700398e-01, 2.445134137142996e+00,
         3.754408661907416e+00]
    u = np.asarray(u, dtype=float)
    x = np.empty_like(u)
    lo, hi = u < 0.02425, u > 1 - 0.02425
    mid = ~(lo | hi)
    q = np.sqrt(-2 * np.log(u[lo]))
    x[lo] = (((((c[0]*q+c[1])*q+c[2])*q+c[3])*q+c[4])*q+c[5]) / \
            ((((d[0]*q+d[1])*q+d[2])*q+d[3])*q+1)
    q = np.sqrt(-2 * np.log(1 - u[hi]))
    x[hi] = -(((((c[0]*q+c[1])*q+c[2])*q+c[3])*q+c[4])*q+c[5]) / \
             ((((d[0]*q+d[1])*q+d[2])*q+d[3])*q+1)
    q = u[mid] - 0.5
    r = q * q
    x[mid] = (((((a[0]*r+a[1])*r+a[2])*r+a[3])*r+a[4])*r+a[5])*q / \
             (((((b[0]*r+b[1])*r+b[2])*r+b[3])*r+b[4])*r+1)
    return x

def _norm_cdf(z):
    from math import erf, sqrt
    z = np.asarray(z, dtype=float)
    flat = np.array([0.5 * (1 + erf(v / sqrt(2))) for v in z.ravel()])
    return flat.reshape(z.shape)

def _tri_ppf(u, lo, mode, hi):
    if hi == lo:
        return np.full_like(u, lo, dtype=float)
    c = (mode - lo) / (hi - lo)
    out = np.empty_like(u)
    left = u < c
    out[left] = lo + np.sqrt(u[left] * (hi - lo) * (mode - lo))
    out[~left] = hi - np.sqrt((1 - u[~left]) * (hi - lo) * (hi - mode))
    return out

def _draw(keys, ranges, n, seed, corr=None):
    """Draw n samples per input, independent or via Gaussian copula."""
    if corr is None:
        rng = np.random.default_rng(seed)
        return {k: _tri_ppf(rng.random(n), *ranges[k]) for k in keys}
    idx = {k: i for i, k in enumerate(keys)}
    C = np.eye(len(keys))
    for (a, b), r in corr.items():
        if a in idx and b in idx:
            C[idx[a], idx[b]] = C[idx[b], idx[a]] = r
    L = np.linalg.cholesky(C)
    rng = np.random.default_rng(seed)
    z = (L @ rng.standard_normal((len(keys), n))).T
    u = _norm_cdf(z)
    return {k: _tri_ppf(u[:, i], *ranges[k]) for i, k in enumerate(keys)}

def gtm_mc(firms, draws=None, n=N, seed=SEED, corr=None, ranges=None,
           hire_month=13, hire_emails=2_500, founder_emails=3_000,
           sales_cycle=2, onboard_cap=20, months=MONTHS):
    """Vectorized uncertainty propagation through the acquisition model.
    Returns per-sim end-of-year-3 ARR and customers. Market size binds only
    through the ceiling firms_total x fit. Staffing, cycle and onboarding
    are plan choices (base schedule), stated as fixed."""
    ranges = ranges or GTM_MC
    keys = list(ranges)
    if draws is None:
        draws = _draw(keys, ranges, n, seed, corr)
    n = len(draws[keys[0]])
    total_firms = firms["10-19"] + firms["20-99"]
    ceiling = total_firms * draws["fit"]
    arpa0 = (firms["10-19"] * draws["acv_1019"] + firms["20-99"] * draws["acv_2099"]) / total_firms
    customers = np.zeros(n)
    arpa_book = np.ones(n)
    backlog = np.zeros(n)
    replies_hist = np.zeros((months, n))
    for m in range(1, months + 1):
        cap = np.full(n, float(founder_emails))
        if hire_month and m >= hire_month:
            ramp = 0.5 if m < hire_month + 2 else 1.0
            cap = cap + hire_emails * ramp
        replies = cap * draws["reply"]
        replies_hist[m - 1] = replies
        conv = replies_hist[m - 1 - sales_cycle] if m > sales_cycle else np.zeros(n)
        new_out = conv * draws["r2m"] * draws["m2t"] * draws["t2p"]
        new_in = draws["inbound_end"] * (m / months) * draws["inbound_f2p"]
        wanted = new_out + new_in + backlog
        onboarded = np.minimum(wanted, onboard_cap)
        backlog = wanted - onboarded
        customers = customers - customers * draws["churn"] + onboarded
        customers = np.minimum(customers, ceiling)
        arpa_book *= (1.0 + draws["exp_net"])
    arr = customers * arpa0 * arpa_book  # arpa0 is annual blended ACV
    return dict(arr_end=arr, customers_end=customers, draws=draws,
                ceiling=ceiling, arpa0=arpa0)

def saltelli_sobol(firms, ranges=None, n_base=8192, seed=SEED):
    """First-order Sobol indices for year-3 ARR, Saltelli estimator.
    VALID ONLY FOR INDEPENDENT INPUTS: the ANOVA variance decomposition
    requires independence; under the copula, shares are not identifiable.
    Returns {input: S1} plus the residual (interaction) share."""
    ranges = ranges or GTM_MC
    keys = list(ranges)
    p = len(keys)
    rng = np.random.default_rng(seed)
    A = {k: _tri_ppf(rng.random(n_base), *ranges[k]) for k in keys}
    B = {k: _tri_ppf(rng.random(n_base), *ranges[k]) for k in keys}
    fA = gtm_mc(firms, draws=A)["arr_end"]
    fB = gtm_mc(firms, draws=B)["arr_end"]
    var = np.var(np.concatenate([fA, fB]), ddof=1)
    out, sum_s1 = {}, 0.0
    for k in keys:
        AB = dict(A); AB[k] = B[k]
        fAB = gtm_mc(firms, draws=AB)["arr_end"]
        s1 = float(np.mean(fB * (fAB - fA)) / var)
        out[k] = s1
        sum_s1 += s1
    out["_interactions"] = 1.0 - sum_s1
    return out

# --------------------------------------------------------------------------
# 5. v2 market-fraction MC (educational comparison only, labeled as such)
# --------------------------------------------------------------------------
def simulate_fraction(firms, n=N, seed=SEED):
    keys = list(MC_FRACTION)
    draws = _draw(keys, MC_FRACTION, n, seed)
    tam = firms["10-19"] * draws["acv_1019"] + firms["20-99"] * draws["acv_2099"]
    sam_ = tam * draws["fit"]
    return {**draws, "tam": tam, "sam": sam_, "som": sam_ * draws["capture"]}

def rank(x):
    return np.argsort(np.argsort(x)).astype(float)

def spearman(x, y):
    return float(np.corrcoef(rank(x), rank(y))[0, 1])

def standardized_betas(draws, target, keys):
    X = np.column_stack([(draws[k] - draws[k].mean()) / draws[k].std() for k in keys])
    y = (target - target.mean()) / target.std()
    X1 = np.column_stack([np.ones(len(X)), X])
    beta = np.linalg.lstsq(X1, y, rcond=None)[0][1:]
    return dict(zip(keys, beta))

def pct(x, q):
    return float(np.percentile(x, q))

# --------------------------------------------------------------------------
# Report assembly
# --------------------------------------------------------------------------
def main(path=None):
    extracted = load_segment(path) if path and os.path.exists(path) else None
    firms = firms_by_class(extracted)
    print("data source            : " + ("SUSB 2022 raw file (extraction reproduced)"
          if extracted else "verified constants from the 2026-11-25 extraction"))
    total = firms["10-19"] + firms["20-99"]
    avg_acv = blended_arpa_year(ACV["10-19"]["mode"], ACV["20-99"]["mode"], firms)
    tam_seg = tam_segmented(firms, ACV["10-19"]["mode"], ACV["20-99"]["mode"])
    sam_base = sam(tam_seg, FIT_SCENARIOS["base"])

    print(f"\nsegment firms          : {total:,} (10-19: {firms['10-19']:,}, 20-99: {firms['20-99']:,})")
    print(f"TAM flat $3,600 (v1)   : {total * 3_600/1e6:,.1f} M")
    print(f"TAM segmented (modes)  : {tam_seg/1e6:,.1f} M | blended ACV ${avg_acv:,.0f}/yr")
    print("SAM scenarios (fit is an unvalidated hypothesis):")
    for k, f in FIT_SCENARIOS.items():
        print(f"  {k:8s} fit {f:.0%}        : {sam(tam_seg, f)/1e6:,.1f} M")

    print("\nGTM acquisition model v3 (SOM = end-of-year-3 ARR, full mechanics):")
    gtm_out = {}
    for k, p in GTM.items():
        rows = gtm_simulate(p)
        s = gtm_summary(rows, avg_acv)
        e = pnl(rows, p, avg_acv)
        gtm_out[k] = (p, rows, s, e)
        print(f"  {k:8s}: {s['customers_end']:5.1f} customers, ARR {s['arr_end']/1e3:,.0f}k, "
              f"3yr revenue {s['cumulative_revenue']/1e3:,.0f}k, "
              f"contribution {e['contribution']/1e3:,.0f}k, after draw {e['profit_after_draw']/1e3:,.0f}k")

    print("\nCost breakdown, base scenario (36 months, illustrative):")
    e = gtm_out["base"][3]
    print(f"  revenue {e['revenue']/1e3:,.1f}k | direct {e['direct']/1e3:,.1f}k "
          f"(support+infra+processing) | S&M {e['sm_spend']/1e3:,.1f}k "
          f"(tools/data/infra + hire salary) | contribution {e['contribution']/1e3:,.1f}k | "
          f"after $3k/mo founder draw {e['profit_after_draw']/1e3:,.1f}k")

    # v1 capture feasibility line (kept)
    target_arr = sam_base * 0.015
    target_cust = target_arr / avg_acv
    needed_new = target_cust * GTM["base"]["churn"] + target_cust / MONTHS
    last = gtm_out["base"][1][-1]
    print(f"\nv1 capture 1.5% of base SAM = ARR {target_arr/1e3:,.0f}k = {target_cust:,.0f} customers")
    print(f"  -> needs ~{needed_new:.1f} new customers/month at base churn; "
          f"base plan exits year 3 at {last['new_outbound'] + last['new_inbound']:.1f}/month")

    print("\nGTM Monte Carlo (uncertainty through the acquisition model):")
    mc_i = gtm_mc(firms)
    mc_c = gtm_mc(firms, corr=GTM_CORR)
    mc_s = gtm_mc(firms, corr=GTM_CORR_STRONG)
    for name, mc in (("independent", mc_i), ("corr moderate", mc_c), ("corr strong  ", mc_s)):
        print(f"  {name}: ARR P10/P50/P90 = "
              f"{pct(mc['arr_end'],10)/1e3:,.0f}k / {pct(mc['arr_end'],50)/1e3:,.0f}k / "
              f"{pct(mc['arr_end'],90)/1e3:,.0f}k | customers P50 {pct(mc['customers_end'],50):,.0f}")
    print("  reconciliation vs deterministic scenarios (ARR):")
    for k in ("downside", "base", "upside"):
        print(f"    {k:8s} deterministic {gtm_out[k][2]['arr_end']/1e3:,.0f}k")
    print(f"    MC ceiling binding: customers hit firms x fit ceiling in "
          f"{(mc_i['customers_end'] >= mc_i['ceiling'] - 1e-9).mean():.1%} of sims")

    print("\nGTM MC robustness:")
    flat = gtm_mc(firms, ranges={k: (v[0], (v[0] + v[2]) / 2, v[2]) for k, v in GTM_MC.items()})
    print(f"  flat-topped (midpoint modes): ARR P50 {pct(flat['arr_end'],50)/1e3:,.0f}k "
          f"(vs {pct(mc_i['arr_end'],50)/1e3:,.0f}k base modes)")
    wide = dict(GTM_MC); wide["churn"] = (0.02, 0.04, 0.08); wide["reply"] = (0.003, 0.005, 0.009)
    mc_w = gtm_mc(firms, ranges=wide)
    print(f"  widened churn/reply   : ARR P50 {pct(mc_w['arr_end'],50)/1e3:,.0f}k, "
          f"P90 {pct(mc_w['arr_end'],90)/1e3:,.0f}k")

    print("\nSobol first-order variance shares (INDEPENDENT design, Saltelli n=8192):")
    sob = saltelli_sobol(firms)
    for k in GTM_MC:
        print(f"  {k:13s}: {sob[k]:+.3f}")
    print(f"  interactions : {sob['_interactions']:+.3f}")
    print("  (valid for independent inputs only; under the copula, variance")
    print("   shares are not uniquely attributable, so there we report only")
    print("   descriptive rank associations:)")
    keys = list(GTM_MC)
    draws_c = mc_c["draws"]
    print("  correlated run, Spearman with year-3 ARR:")
    for k in keys:
        print(f"  {k:13s}: {spearman(draws_c[k], mc_c['arr_end']):+.2f}")

    frac = simulate_fraction(firms)
    print("\nMarket-fraction MC (EDUCATIONAL COMPARISON ONLY - the shortcut")
    print("the review rejected: sampling a capture share of SAM):")
    print(f"  SOM P10/P50/P90 = {pct(frac['som'],10)/1e3:,.0f}k / "
          f"{pct(frac['som'],50)/1e3:,.0f}k / {pct(frac['som'],90)/1e3:,.0f}k")

    print("\npoint estimates (modes):")
    print(f"  TAM {tam_seg/1e6:,.1f} M | SAM(base) {sam_base/1e6:,.1f} M | "
          f"SOM(base GTM) {gtm_out['base'][2]['arr_end']/1e3:,.0f}k ARR | "
          f"SOM(MC median) {pct(mc_i['arr_end'],50)/1e3:,.0f}k ARR")
    print("\nREMINDER: every TAM/SAM/SOM figure above is a conditional estimate,")
    print("not a measurement of actual demand.")
    return dict(firms=firms, avg_acv=avg_acv, tam_seg=tam_seg, gtm=gtm_out,
                mc_i=mc_i, mc_c=mc_c, mc_s=mc_s, sobol=sob, frac=frac)

# --------------------------------------------------------------------------
# 6. Tests: code validation only. None of these validate the commercial
# assumptions - that requires customer research, not assertions.
# --------------------------------------------------------------------------
def test_data(path=None):
    if path and os.path.exists(path):
        ext = load_segment(path)
        assert ext["26"]["firms"] == 58_337 and ext["34"]["firms"] == 44_391
        assert ext["26"]["estb"] == 61_147 and ext["34"]["estb"] == 57_682
        assert ext["26"]["empl"] == 777_354 and ext["34"]["empl"] == 1_699_372
        # labels were asserted inside load_segment; identities reconcile:
        verify_extraction_identities(path)
    assert SUBSECTORS and sum(s[2] for s in SUBSECTORS) == 103_113

def test_model():
    firms = firms_by_class()
    t = tam_segmented(firms, 1_800, 4_200)
    assert t == 58_337 * 1_800 + 44_391 * 4_200
    assert t > sam(t, 0.10) > 0 and sam(t, 0.0) == 0.0
    assert tam_segmented({k: v * 2 for k, v in firms.items()}, 1_800, 4_200) == 2 * t
    # GTM mechanics -------------------------------------------------------
    p0 = dict(GTM["base"], founder_emails=0, inbound_end=0, hire_month=None)
    assert all(r["customers"] == 0 for r in gtm_simulate(p0))          # no inflow
    p1 = dict(GTM["base"], churn=0.0)
    r1 = gtm_simulate(p1)
    assert all(r1[i + 1]["customers"] >= r1[i]["customers"] for i in range(len(r1) - 1))
    # sales-cycle lag: with a 2-month cycle no outbound customer before m=3
    assert all(r["new_outbound"] == 0 for r in gtm_simulate(GTM["base"])[:2])
    # onboarding cap binds: cap=1/mo limits onboarding even with huge demand
    p2 = dict(GTM["base"], onboard_cap=1.0)
    r2 = gtm_simulate(p2)
    assert all(r["onboarded"] <= 1.0 + 1e-12 for r in r2) and r2[-1]["backlog"] > 0
    # expansion raises ending ARR vs no expansion, same seed path
    a = gtm_summary(gtm_simulate(dict(GTM["base"], expansion=0.0, contraction=0.0)), 2_837)
    b = gtm_summary(gtm_simulate(GTM["base"]), 2_837)
    assert b["arr_end"] > a["arr_end"]
    # costs: P&L identities
    e = pnl(gtm_simulate(GTM["base"]), GTM["base"], 2_837)
    assert abs(e["contribution"] - (e["revenue"] - e["direct"] - e["sm_spend"])) < 1e-6
    assert e["sm_spend"] > 36 * 750  # hire salary adds beyond fixed tools/data
    # MC machinery --------------------------------------------------------
    mc = gtm_mc(firms, n=5_000)
    for k, (lo, mode, hi) in GTM_MC.items():
        assert mc["draws"][k].min() >= lo and mc["draws"][k].max() <= hi
    mcc = gtm_mc(firms, n=50_000, corr=GTM_CORR)
    assert abs(spearman(mcc["draws"]["reply"], mcc["draws"]["r2m"]) - 0.3) < 0.05
    assert abs(spearman(mcc["draws"]["acv_2099"], mcc["draws"]["t2p"]) - (-0.2)) < 0.05
    mcs = gtm_mc(firms, n=50_000, corr=GTM_CORR_STRONG)
    assert abs(spearman(mcs["draws"]["reply"], mcs["draws"]["r2m"]) - 0.6) < 0.05
    assert abs(spearman(mcs["draws"]["acv_1019"], mcs["draws"]["acv_2099"]) - 0.8) < 0.05
    a1, a2 = gtm_mc(firms, n=1_000, seed=7), gtm_mc(firms, n=1_000, seed=7)
    assert np.allclose(a1["arr_end"], a2["arr_end"])
    # ceiling: tiny fit caps customers
    mc_cap = gtm_mc(firms, n=2_000, ranges=dict(GTM_MC, fit=(0.0001, 0.0001, 0.0001)))
    assert (mc_cap["customers_end"] <= 102_728 * 0.0001 + 1e-9).all()
    # Sobol: shares in [0,1], dominant levers are funnel/churn not fit
    sob = saltelli_sobol(firms, n_base=2048)
    assert all(-0.1 <= v <= 1.0 for v in sob.values())
    assert sob["fit"] < 0.05                      # ceiling rarely binds in yr 3
    assert sob["inbound_end"] + sob["exp_net"] > 0.5   # the dominant levers
    # market-fraction comparison still runs and respects bounds
    fr = simulate_fraction(firms, n=5_000)
    assert fr["som"].min() >= 0 and fr["capture"].max() <= 0.021

if __name__ == "__main__":
    args = [a for a in sys.argv[1:] if not a.startswith("--")]
    if "--test" in sys.argv:
        test_data(args[0] if args else None)
        test_model()
        print("all checks passed")
    else:
        main(args[0] if args else None)
The exact console output (expand)
data source            : SUSB 2022 raw file (extraction reproduced)

segment firms          : 102,728 (10-19: 58,337, 20-99: 44,391)
TAM flat $3,600 (v1)   : 369.8 M
TAM segmented (modes)  : 291.4 M | blended ACV $2,837/yr
SAM scenarios (fit is an unvalidated hypothesis):
  low      fit 4%        : 11.7 M
  base     fit 10%        : 29.1 M
  high     fit 20%        : 58.3 M

GTM acquisition model v3 (SOM = end-of-year-3 ARR, full mechanics):
  downside:  11.2 customers, ARR 22k, 3yr revenue 33k, contribution -1k, after draw -109k
  base    :  66.3 customers, ARR 225k, 3yr revenue 279k, contribution 121k, after draw 13k
  upside  : 234.6 customers, ARR 1,098k, 3yr revenue 1,239k, contribution 1,009k, after draw 901k

Cost breakdown, base scenario (36 months, illustrative):
  revenue 278.8k | direct 22.3k (support+infra+processing) | S&M 135.0k (tools/data/infra + hire salary) | contribution 121.5k | after $3k/mo founder draw 13.5k

v1 capture 1.5% of base SAM = ARR 437k = 154 customers
  -> needs ~10.4 new customers/month at base churn; base plan exits year 3 at 4.8/month

GTM Monte Carlo (uncertainty through the acquisition model):
  independent: ARR P10/P50/P90 = 146k / 232k / 360k | customers P50 71
  corr moderate: ARR P10/P50/P90 = 142k / 231k / 367k | customers P50 71
  corr strong  : ARR P10/P50/P90 = 139k / 231k / 371k | customers P50 71
  reconciliation vs deterministic scenarios (ARR):
    downside deterministic 22k
    base     deterministic 225k
    upside   deterministic 1,098k
    MC ceiling binding: customers hit firms x fit ceiling in 0.0% of sims

GTM MC robustness:
  flat-topped (midpoint modes): ARR P50 241k (vs 232k base modes)
  widened churn/reply   : ARR P50 228k, P90 361k

Sobol first-order variance shares (INDEPENDENT design, Saltelli n=8192):
  reply        : +0.019
  r2m          : +0.015
  m2t          : +0.001
  t2p          : +0.011
  inbound_end  : +0.415
  inbound_f2p  : +0.032
  churn        : +0.040
  exp_net      : +0.239
  acv_1019     : +0.061
  acv_2099     : +0.077
  fit          : +0.000
  interactions : +0.090
  (valid for independent inputs only; under the copula, variance
   shares are not uniquely attributable, so there we report only
   descriptive rank associations:)
  correlated run, Spearman with year-3 ARR:
  reply        : +0.28
  r2m          : +0.13
  m2t          : +0.06
  t2p          : +0.05
  inbound_end  : +0.66
  inbound_f2p  : +0.18
  churn        : -0.18
  exp_net      : +0.47
  acv_1019     : +0.37
  acv_2099     : +0.39
  fit          : +0.00

Market-fraction MC (EDUCATIONAL COMPARISON ONLY - the shortcut
the review rejected: sampling a capture share of SAM):
  SOM P10/P50/P90 = 110k / 269k / 563k

point estimates (modes):
  TAM 291.4 M | SAM(base) 29.1 M | SOM(base GTM) 225k ARR | SOM(MC median) 232k ARR

REMINDER: every TAM/SAM/SOM figure above is a conditional estimate,
not a measurement of actual demand.

16. Independent verification table

Every important number, its current value, the value the first version published, the source, and how it was checked. The same table ships in the package as outputs/verification_table_v4.csv.

resultcurrent_valuev1_valuesourcehow_verified
Target firm count (NAICS 54, 10-99 employees, US)102,728 firms102,728 firms (unchanged)Census SUSB 2022, us_state_6digitnaics_2022.txt, STATE=00/NAICS=54/ENTRSIZE 26+34, FIRM columnIndependently re-extracted from the raw 56MB file on 2026-11-25: 58,337 + 44,391; aggregates reconcile (<5+5-9+10-19=<20; <20+20-99+100-499=<500; <500+500+=Total); zero duplicate (STATE,NAICS,ENTRSIZE) records in 570,106 rows
Employment-size code mappingENTRSIZE 26 = 10-19, 34 = 20-99same (but undocumented in v1-v3)File's own ENTRSIZEDSCR labels ('04: 10-19', '06: 20-99') cross-checked against the aggregate list in enterprise_codes_2017.txt; the reference's DETAILED list assigns 26 to '5,000+' - the bare code numbers are file-specificLabel assertion added to load_segment(); script aborts if Census ever relabels the codes
Unit of countfirms (enterprises), not establishmentssameSUSB glossary: firm = enterprise = one or more establishments under common ownership; segment has 102,728 firms vs 118,829 establishmentsFIRM column read, not ESTB; distinction documented in article section 3
ACV$1,800 / $4,200 per year by size class (segmented)$3,600 flatCommercial assumption bounded by competitor list prices ($44-$760/mo, checked 2026-11-25)Pricing evidence table; labeled assumption, not measured willingness to pay
Fit share4% / 10% / 20% scenarios20% point, anchored to 7.6% AI adoption (anchor removed in v2)No published demand measurement existsLabeled unvalidated hypothesis; enters model only as customer ceiling, which binds in 0.0% of simulations
Capture ratenone - removed1.5% of SAM by year 3Replaced by the acquisition modelFeasibility of the old rate shown instead: 1.5% of base SAM needs ~10 new customers/month vs 4.8 delivered by the base plan
TAM$291.4M per year (segmented)$369.8M (flat $3,600 x 102,728)Formula: 58,337 x $1,800 + 44,391 x $4,200Recalculated from verified inputs; both values printed by the script
SAM$11.7M / $29.1M / $58.3M (fit scenarios)$74.0M (20% fit point)Formula: TAM x fitRecalculated; scenario range replaces the point
SOM (definition fixed: end-of-year-3 ARR)$22k / $225k / $1,098k (downside/base/upside)$1.11M (undefined revenue measure, 1.5% capture)36-month acquisition model (staffing, funnel, lag, onboarding cap, churn, expansion)Rerun end-to-end; --test suite passes; monthly trajectories exported
Monte Carlo SOM percentilesP10/P50/P90 = $146k / $232k / $360k (independent); $142k/$231k/$367k (moderate corr); $139k/$231k/$371k (strong corr)$0.79M / $1.66M / $3.19M100,000 simulated businesses through the acquisition model, seed 42Reproduced against run_output_v4.txt; percentiles are simulated-scenario percentiles, not empirical confidence intervals

17. Page performance, measured

The second review asked for measurement rather than claims. The article page was measured on 2026-11-25 in a real Chrome session (lab measurement, cold cache):

MetricDesktop, cold cacheMobile, 390px iPhone UA
Time to first byte~0.27 s~0.23 s
Largest Contentful Paint (LCP)~1.2 s~0.43 s
Cumulative Layout Shift (CLS)0.000.00
Total Blocking Time (lab proxy for INP)~1 ms (one ~50 ms long task)~4 ms (one long task)
Transferred before interaction~257 KB, 21 requests~121 KB, 25 requests (smaller image variants)
Full page weight, all images loaded~736 KB, 29 requestssmaller; Blogger serves responsive image sizes

Composition: images are about 92% of the full weight (10 images, 9 of them lazy-loaded), external CSS about 50 KB, inline JavaScript about 29 KB of source across 8 inline blocks plus 2 small external scripts. There are no third-party widgets in the article body. The document itself is ~54 KB compressed (~158 KB of HTML, because the full Python source and console output are embedded in expandable sections). Warm-cache repeat views are much faster (LCP ~0.26 s desktop), which is what most returning readers see.

Caveats, stated plainly: these are lab measurements from one location and one session, not field data. Interaction to Next Paint (INP) requires real user interaction and CrUX field history; the page's total blocking time (main-thread long tasks) is reported as its lab proxy. Google PageSpeed Insights' shared API quota was exhausted at measurement time, so the CrUX field panel could not be pulled; the numbers above come from direct browser instrumentation (PerformanceObserver for LCP and CLS, the Resource Timing API for transfer sizes). No CPU or network throttling was applied; the mobile pass emulated only a 390px viewport with an iPhone user agent, so absolute times reflect a fast, unthrottled connection. TBT above is the sum of main-thread long-task overruns past 50 ms observed via PerformanceObserver, not a Lighthouse throttled-CPU trace; a throttled Lighthouse run would report higher values.

18. Conclusions

The honest version of this analysis is smaller and more useful than the first one. A theoretical ceiling of $291.4M. A serviceable market that is plausibly $12M to $58M and genuinely unknown inside that range, though it barely constrains the next three years. An obtainable market that, under a realistic one-founder-then-one-hire go-to-market plan, is about $225k of ARR after three years (Monte Carlo median $232k, middle 80% from $146k to $360k), with an everything-goes-wrong corner at $22k of negative-contribution business and an everything-goes-right corner at $1,098k that requires every hypothesis to land friendly at once.

Five statements worth keeping, because they are where market sizing goes wrong:

  • A large TAM does not establish customer demand.
  • A calculated SAM does not establish willingness to pay.
  • A simulated SOM does not establish acquisition feasibility.
  • A statistically valid simulation does not validate its input assumptions.
  • A revenue opportunity does not establish a profitable business.

What would move these numbers from assumptions to evidence, in order of what the variance decomposition says matters: instrument the inbound content ramp and measure real signup volume, build a retention cohort to bound expansion and contraction, run twenty customer interviews to bound the fit share, hold five pricing conversations to bound realized ACV, and send 200 tracked cold emails to measure reply and meeting rates. A smaller, evidence-backed market estimate beats an impressive number supported by weak assumptions, every time.

Sources

Add us on Google

Sameh Nassar

Sameh writes about business research, analysis and AI. His background is in business operations, data analysis, customer experience and digital projects.