Max Krehbiel

All projects

Thesis to Target

Most buy-side firms source deals from the same few databases, so the same companies get called by every buyer. I built a tool that pulls company records from licenses, registries and directories, merges the duplicates into companies, and estimates the probability that each company's EBITDA falls in the buyer's range.

It also checks whether each company already shows up in the big databases, which tells a buyer where other firms probably aren't looking. Every number in the output links back to the record it came from.

Thesis to Target: example output

View the code (opens in a new tab)Read the README (opens in a new tab)

The problem

Find private companies that fit a buyer's investment thesis, including the ones the big databases don't list.

What I built

A pipeline that reads a thesis (industry, EBITDA range, geography), pulls overlapping records from several messy sources, merges them into companies, scores sector fit, estimates EBITDA as a probability distribution and checks database presence.

What it produces

A ranked target list, a workbook and a short brief. Every claim goes into an evidence ledger with its source and a confidence level.

First built for a buy-side M&A origination firm. This version runs on made-up companies.

All company data is synthetic, generated from a seed. No real business is described.

In pictures

The 15 highest-ranked synthetic targets by chance that EBITDA falls in the $1M to $5M band; orange marks companies missing from the commercial databases.
Every sized synthetic company by database visibility and chance of being in the EBITDA band; five sit in the likely, non-obvious corner.

How it works

  1. Sources. Each adapter maps one messy feed onto a common record shape.
  2. Entity resolution. Records are normalized, compared within cheap blocks and clustered into companies. Borderline pairs go to a review queue.
  3. Sector fit. License, NAICS and keyword evidence set a fit tier from A to D.
  4. EBITDA estimate. Size signals become a log-normal EBITDA distribution and the probability EBITDA falls in the thesis band.
  5. Presence check. Each company is looked up in the large databases to score how obvious it already is.
  6. Screen and rank. Geography, fit and ownership screens set scope. A weighted composite ranks the rest.
  7. Exports. A ranked CSV and workbook, the evidence ledger, the review queue and a short brief.

Where to look in the code

README sections

Files