Chapter Five

Algorithms,
Scoring, and
Optimization

Most production "AI decisions" aren't decisions at all. They're scores. Ranks. Triage buckets. And the smartest PMs treat the choice of algorithm like a product decision, not an engineering one.

📖 ~14 min readPages 34–40
scroll

Your CEO wants the AI to "just figure it out" on leads, tickets, or search results. But the second that suggestion costs real money or trust, everyone remembers you're the PM who shipped it. The dirty secret? The smartest PMs treat algorithm choice like a product decision — not an engineering one.

LLMs vs. Classical ML vs. Rules

Pick the simplest one that works.

The hybrid ruleRules for the obvious 70%. Classical ML for the learnable 25%. LLM for the messy 5%. Pure LLM = crying about token costs in Q3.

Rules are boring until the moment they save you. Deterministic, explainable, stupidly cheap. No drift.

Classical ML (gradient-boosted trees, logistic regression) finds patterns in structured data. Fast, cheap, debuggable.

LLMs eat unstructured text — emails, tickets, PDFs. They handle nuance but are non-deterministic, expensive, and will confidently lie about edge cases.

RulesClassical MLLLM
Data typeStructured, knownStructured + labeledUnstructured text
ExplainabilityPerfectHighLow
Cost at 1M/dayPenniesLow$$$
Failure modeMisses new patternsOverfits to trainingHallucination
When to useObvious 70%Learnable 25%Messy 5%
Figure 5.1 — Algorithm Decision Matrix. Hybrid almost always wins. The teal row is your Monday-morning gut check.
Rina's numbers
82% rules
91% classical ML
94% LLM (but false flags)

Rina's fraud scorer. Rules caught 82%. Classical ML boosted to 91% — deterministic enough for auditors. GPT-4o on narrative notes hit 94%, but falsely flagged two high-value customers. "The model saw sarcasm in the merchant description." LLM kept for enrichment only; classical model owned the final score.

Chapter 5

Unlock the full chapter

The first two chapters are free. Chapters 3 through 18 unlock with a one-time purchase on the same account.

$18.99one-time purchase via PayPal

Already purchased? Sign in with the same account you used at checkout.