Counting and summing beats machine learning, most of the time

TL;DR

Difficulty: Beginner

Before you pay for machine learning, write the business question as one line of a few drivers: revenue is price times quantity, new orders are visits times conversion rate, lifetime value is monthly revenue times margin times lifetime. Fill each driver with real counts and split every average by segment. Usually one number has moved, and that number is the lever: a checkout that lost nearly a quarter of its conversions, or a discount promotion causing three quarters of the churn. A model earns its place only when the pattern is too complex for a line, stable, repeating and backed by good data, and it also brings ongoing maintenance costs a count does not.

An ordinary business question (what to charge, why growth stalled, where the revenue leaks) often goes straight to a machine learning pitch before anyone has counted anything. In this article I show the habit that answers most of these questions faster: write the outcome as its simplest equation, fill it with real counts and let it point at the one number that moved. I work it through on an invented Cork hamper shop and an invented Galway software firm, with every sum shown.

Most business questions are answered by a count, not a model

An owner has a perfectly ordinary question. What should we charge? Which customers are about to leave? Where is the money leaking? And before anyone has counted a single thing, the conversation jumps to machine learning. Let us train a model.

Most of the time a careful count and a sum on the back of an envelope answers the question faster, at a fraction of the cost, and in a form anyone in the room can check. This article shows the habit that does it. Before you reach for anything clever, you write the outcome as its simplest driving equation, you fill it with real counts, and you let the equation tell you which single number is moving the result. I work through it on two invented businesses: Northgate Hampers, Priya's gift hamper shop in Cork (northgatehampers.example), and Tallyroom, a Galway rota software firm sold by monthly subscription (tallyroom.example). Every figure is invented for the example and every sum is recomputed so you can check it.

This is not an argument against machine learning. Google's own engineering guidance for machine learning opens with the rule "Don't be afraid to launch a product without machine learning", and only later tells you to choose a model over a complex hand written rule once you have the data and a clear goal.1 The point here is the order: count first, model when the arithmetic runs out.

The pricing question that sorts analysts

There is an old analytics interview question that sorts people quickly: a company is launching a product, what should it charge? One kind of candidate reaches for something clever: an elasticity model, a regression on comparable products, a model trained on scraped competitor prices. It sounds impressive, and at this stage it is useless, because nobody has yet written down what price does.

The other kind says: revenue is price times quantity, so let us start there and see what moves. That is the whole trick, and it carries over to almost every data question a business asks. Write the outcome as a product and a sum of a few honest drivers, then count the driver that is doing the work.

Write the simplest equation first

Priya sells a classic Munster hamper. Revenue from it is made of exactly two parts.

Revenue=P×Q\text{Revenue} = P \times Q

Here PP is the price of one hamper and QQ is the number sold in a year. It is the simplest example of a rate times a count, covered in ratios and rates. The moment you write it down you expose the tension the pricing question is really about: push PP up and, unless customers are made of stone, QQ comes down. The question is never "what is the highest price". It is "at which price is P×QP \times Q largest", or better still, profit.

Today the hamper sells at €40 and Priya ships 10,000 a year.

Revenue=40×10,000=400,000\text{Revenue} = 40 \times 10{,}000 = 400{,}000

That is €400,000\text{€}400{,}000 a year. She is tempted to go to €44, a 10% rise. The gut says revenue rises 10%. So she counts: what happened the last time the price moved? The order history shows that a 10% rise cost roughly 8% of volume, so QQ falls to 9,200.

Revenue=44×9,200=404,800\text{Revenue} = 44 \times 9{,}200 = 404{,}800

Revenue rose by €4,800\text{€}4{,}800, which is 1.2%, not 10%. Now add the one cost the equation was missing. Each hamper costs Priya €25 in goods, packing and postage.

Profit=(P−c)×Q\text{Profit} = (P {-} c) \times Q

Here cc is the cost of one hamper, so P−cP {-} c is the margin per unit (the marginal versus average section shows why the margin on each extra unit is what counts). Before the rise, profit is (40−25)×10,000=150,000(40 {-} 25) \times 10{,}000 = 150{,}000. After it, profit is (44−25)×9,200=174,800(44 {-} 25) \times 9{,}200 = 174{,}800.

Revenue barely moved, but profit rose by €24,800\text{€}24{,}800, about 16.5%, because she now ships 800 fewer hampers at a higher margin. The equation did not just give an answer. It changed the question from "what price" to "what are we optimising, revenue or profit", because the two point in different directions. No model told her that. A count of what happened last time, dropped into a line anyone can read, did.

The ratio the price decision really turns on

What actually decided whether the rise was worth it was one ratio: how much volume you lose for each 1% of price you add. Analysts call it price elasticity, and the elasticity section of Foundations explains it in full.

ε=%ΔQ%ΔP\varepsilon = \frac{\%\Delta Q}{\%\Delta P}

Here ε\varepsilon is the elasticity, %ΔQ\%\Delta Q is the percentage change in quantity and %ΔP\%\Delta P is the percentage change in price. For Priya's hamper that is ε=−8/10=−0.8\varepsilon = {-8} / 10 = {-0.8}.

An elasticity of −0.8-0.8 in size below one means demand is inelastic: you lose less volume than the price you gain, so a rise lifts revenue. Had the count come back at −1.5-1.5, the same arithmetic would have told her to cut the price instead. One caution: a single past price change is a thin basis, because the season, a competitor or a promotion may have moved volume at the same time. If the decision is large, the next step is a proper estimate from several price changes, which is what modelling demand and price elasticity with regression covers. Note the order. The equation told her which number to estimate before any model was built.

The lever hides in plain sight

The second example matters more, because the pattern is the point, not pricing. Priya wants more customers, and someone has pitched her a propensity model that scores every visitor on how likely they are to buy. Before spending on it, write the equation.

N=V×rN = V \times r

Here NN is new orders a month, VV is visits a month and rr is the conversion rate, the share of visits that end in an order (percentages explains working with shares like rr). Two levers, only two. So count them. The site has 50,000 visits a month and converts at 2%.

N=50,000×0.02=1,000N = 50{,}000 \times 0.02 = 1{,}000

That is 1,0001{,}000 orders a month. The useful question now is which of the two numbers moved. Twelve months of her own analytics show that visits have been flat despite steady ad spend, while the conversion rate slipped from 2.6% to 2% over the same period, right after a checkout redesign.

There is the lever. Undoing the damage to the checkout brings conversion back to 2.6% on the same traffic.

N=50,000×0.026=1,300N = 50{,}000 \times 0.026 = 1{,}300

That is 300300 more orders a month, a 30% lift, for the cost of fixing a form. The propensity model would have spent months learning to rank the very visitors who were bouncing at a broken checkout. It answers "who is most likely to convert" when the question that mattered was "why did conversion fall". A count answered that in an afternoon.

Extend the line to money

Stretch the same equation to what Priya actually cares about by multiplying in the next honest driver.

R=V×r×oˉR = V \times r \times \bar{o}

Here RR is order revenue a month and oˉ\bar{o} is the average order value, the mean of all order totals. Corporate gift orders often contain several hampers, so her average order is €80.

R=50,000×0.02×80=80,000R = 50{,}000 \times 0.02 \times 80 = 80{,}000

That is €80,000\text{€}80{,}000 a month. The extended line lets you compare levers in the same currency. Lifting rr from 2% to 2.6% gives 50,000×0.026×80=104,00050{,}000 \times 0.026 \times 80 = 104{,}000, worth €24,000 a month. Lifting oˉ\bar{o} from €80 to €84, a 5% rise, gives 50,000×0.02×84=84,00050{,}000 \times 0.02 \times 84 = 84{,}000, worth €4,000 a month.

A bar chart comparing two levers on the same baseline of 50,000 visits, 2% conversion and an average order of €80. Restoring conversion to 2.6% adds €24,000 a month. Raising the average order to €84 adds €4,000 a month. The conversion lever is worth six times as much. Tap or click to open full screen and move around

The ranking of what to work on is no longer a matter of opinion. It sits in the arithmetic, and nothing was trained.

The acquisition version, same shape

Now the subscription business. Tallyroom sells rota software at €50 a month and buys customers through paid search and a discount promotion. Its founder, Owen, asks whether acquisition is profitable. The skeleton is one line.

Π=(CLV−CAC)×n\Pi = (\text{CLV} {-} \text{CAC}) \times n

Here Π\Pi is the profit from a year's acquisition, CLV\text{CLV} is the customer lifetime value (the gross margin a customer brings over their whole time as a customer), CAC\text{CAC} is the customer acquisition cost and nn is the number of customers won. The lifetime value section covers CLV properly. Tallyroom estimates a CLV of €900 and a CAC of €300, and wins 1,000 customers a year.

Π=(900−300)×1,000=600,000\Pi = (900 {-} 300) \times 1{,}000 = 600{,}000

That is €600,000\text{€}600{,}000 of lifetime margin after acquisition costs. Now look at the bracket, because the bracket is the lever. If the CLV estimate is soft, and in many businesses it is a guess written down as a fact, the whole €600,000 rests on a number nobody has counted. A €50 error in CLV moves the answer by 50×1,000=€50,00050 \times 1{,}000 = \text{€}50{,}000, and no amount of sophistication further down can rescue a rotten input. The most valuable work here is counting what a customer is really worth.

CLV is itself an equation, so open it up

People treat CLV as a single fact, a €900 label on the customer. It is really another small equation.

CLV=a×m×L\text{CLV} = a \times m \times L

Here aa is the average revenue per customer a month, mm is the gross margin as a share and LL is the average lifetime in months. With a constant monthly churn rate cc, the share of customers who cancel each month, the average lifetime is L=1/cL = 1 / c. Both are explained in lifetime value. Tallyroom's customers pay €50 a month, it keeps 60% after hosting and support, and churn runs at 3.3% a month, so L=1/0.033≈30L = 1 / 0.033 \approx 30 months.

CLV=50×0.6×30=900\text{CLV} = 50 \times 0.6 \times 30 = 900

There is the €900\text{€}900, now with seams you can pull on. Cut churn to 2.5% and L=1/0.025=40L = 1 / 0.025 = 40 months, so CLV becomes 50×0.6×40=1,20050 \times 0.6 \times 40 = 1{,}200. That is €300 more per customer without winning anyone new or raising a price. The least expensive customer to acquire is often the one you already have and are quietly losing.

The leak nobody counts

For a subscription business the monthly leak has a simple form.

Lost MRR=nc×c×a\text{Lost MRR} = n_c \times c \times a

Here ncn_c is the number of current customers, cc the monthly churn rate and aa the average revenue per customer a month. MRR is monthly recurring revenue, and the line is three rates and counts multiplied together. Tallyroom has 2,000 customers, so its MRR is 2,000×50=€100,0002{,}000 \times 50 = \text{€}100{,}000.

Lost MRR=2,000×0.033×50=3,300\text{Lost MRR} = 2{,}000 \times 0.033 \times 50 = 3{,}300

That is €3,300\text{€}3{,}300 of monthly revenue cancelled every month. Put it next to acquisition. To replace it at €50 a customer, Tallyroom needs 3,300/50=663{,}300 / 50 = 66 new customers a month just to stand still, which at a €300 CAC costs 66×300=€19,80066 \times 300 = \text{€}19{,}800 a month. Cutting churn from 3.3% to 2.5% shrinks the leak to 2,000×0.025×50=€2,5002{,}000 \times 0.025 \times 50 = \text{€}2{,}500, so 16 fewer customers a month need replacing. Written as one line, it is obvious that churn deserves at least as much attention as acquisition, and you found that out by counting.

The churn model Tallyroom did not need

Owen has read that serious software companies score every account for churn risk, and he wants a churn model. Before any budget is spent, the equations above are on the whiteboard. Then comes the step a model would never have forced: count churn again, split by how the customer came in.

The split is stark. The 900 customers who came through the discount promotion churn at 5.5% a month. The 1,100 who paid full price from the start churn at 1.5%. The blended 3.3% was hiding two very different businesses. Check that the parts add up: (900×0.055+1,100×0.015)/2,000=66/2,000=0.033(900 \times 0.055 + 1{,}100 \times 0.015) / 2{,}000 = 66 / 2{,}000 = 0.033.

Lost MRRpromo=900×0.055×50=2,475\text{Lost MRR}_{\text{promo}} = 900 \times 0.055 \times 50 = 2{,}475

That is €2,475\text{€}2{,}475 a month from the promotion cohort, against this from the full price cohort:

Lost MRRfull=1,100×0.015×50=825\text{Lost MRR}_{\text{full}} = 1{,}100 \times 0.015 \times 50 = 825

So €2,475\text{€}2{,}475 of the €3,300\text{€}3{,}300 leak, three quarters of it, comes from the promotion cohort, which is less than half the customer base. Open CLV for each group and the gap gets wider. A promotion customer lasts 1/0.055≈18.21 / 0.055 \approx 18.2 months and is worth 50×0.6×18.2≈€54550 \times 0.6 \times 18.2 \approx \text{€}545. A full price customer lasts 1/0.015≈66.71 / 0.015 \approx 66.7 months and is worth 50×0.6×66.7≈€2,00050 \times 0.6 \times 66.7 \approx \text{€}2{,}000. Against a €300 CAC, the promotion customer barely pays back while the full price customer pays back several times over.

A bar chart of lost monthly recurring revenue. The 900 customers from the discount promotion churn at 5.5% a month and lose €2,475. The 1,100 full price customers churn at 1.5% and lose €825. The promotion cohort causes three quarters of the leak. Tap or click to open full screen and move around

A churn model would have learned to predict exactly this and handed Owen a list of accounts at risk, mostly from the promotion cohort, inviting him to spend on keeping people who were never going to pay full price for long. The count says something more useful: the acquisition channel itself is producing the churn, so the fix is upstream, in how customers are bought. One honest caveat. A lifetime of 66.7 months assumes churn stays flat for five and a half years, which real cohorts rarely do. When the decision rests on that tail, measure how cohorts actually decay, as in survival analysis for churn and lifetime value. The direction of the answer will not change.

The split is also the most important protection in this article. A blended average can hide, or even reverse, what is happening inside its segments, an effect known as Simpson's paradox. Whenever you have an average in an equation, ask what it looks like broken by segment.

A small library of equations

The hard part is usually remembering that the line exists. These cover most of what a small business asks.

Business questionThe simplest equationThe lever it exposes
What should we chargeProfit = (Price minus unit cost) x QuantityHow much volume moves for each 1% of price
How to win more customersNew orders = Visits x Conversion rateWhichever of the two has slipped
Is acquisition profitableProfit = (CLV minus CAC) x Customers wonThe honesty of the CLV number
What is a customer worthCLV = Revenue a month x Margin x LifetimeLifetime, which is one over churn
Where is revenue leakingLost MRR = Customers x Churn x Revenue a monthThe churn rate, split by segment
Is there enough staffCapacity = People x Hours x UtilisationUtilisation, the share of hours actually billable

None of these needs a model to compute. Each needs one number counted honestly, and each, once written down, points at the number worth counting.

So do you need a model, or a count

Here is the decision to walk through, out loud, before anyone says machine learning.

Tap or click to open full screen and move around

Most questions never get past the first answer. A model earns its place where the pattern is too tangled to write as a line, stable enough to be worth learning, and backed by data good enough to learn from. That is a real place: fraud detection, demand forecasting across thousands of products, recommendations at scale. But it is a corner, not the whole map.

Counting and modelling, compared honestly

The trade is real and worth seeing on one page.

What you care aboutCounting and summingMachine learning model
Time to a first answerHoursWeeks to months
CostMostly timeData, tooling, people and upkeep
Can you explain it to the boardYes, it is one lineRarely in full
Can someone challenge itYes, every number is visibleMostly the person who built it
Shows you the leverAlmost alwaysRarely, it learns around it
Where it winsSimple, framable questionsComplex, stable, repeating patterns

The cost row deserves a second look. Engineers at Google who studied production systems found that machine learning systems commonly run up "massive ongoing maintenance costs", because the model sits in a web of data pipelines, configuration and dependencies that all need looking after once it is live.2 A count has none of that. And read the row about challenge, because owners underrate it. Every number in an equation is in the open for anyone to argue with, and that argument is where understanding gets made.

Common mistakes

The first is reaching for the model before the equation. Someone falls for prediction before anyone has written the line that says what is being predicted and why, and the model becomes a way to avoid the humbler work of counting.

The second is pushing a driver that is already near its ceiling. If conversion is already excellent, the next sliver is hard to win, while the traffic beside it may have far more room. The equation shows both numbers side by side, so pick the loose one, not the exciting one.

The third is trusting a blended average that hides a split. Tallyroom's 3.3% churn was really 5.5% and 1.5%. A 2% conversion rate can be 3% on desktop and 1% on mobile. Averages are where levers hide.

The fourth is treating a soft input as hard: a CLV figure, or a cost someone guessed in a meeting two years ago. The equation is only as honest as its weakest number, and the most valuable hour is often spent counting the input everyone has been assuming.

The fifth, and the most expensive, is building something nobody can question. If an answer cannot be checked against a count, the uncertainty has not gone, it has only been hidden inside a machine, where nobody argues with it.

How to apply this on Monday

The routine fits on a sticky note.

Tap or click to open full screen and move around

Write the outcome at the top of a page. Ask what it is made of until you have a line of a few drivers. Do not gather data before the line is finished, because the line tells you which data is worth gathering. Count each driver from real history, not from memory. Break every average into segments. Then move the driver with the most room for the least effort. Only if all of that leaves the question genuinely open, and the pattern is stable and repeating, let the word model back into the room.

How I run this on a data project

When I take on a data question, the first session rarely touches a dataset. We write the equation: what are we trying to move, and what is it made of. Usually that makes it obvious which number nobody has measured, and counting that number becomes the first piece of work. The answer you get is one you can explain to your own board without me in the room.

When the arithmetic genuinely runs out, because the relationship is too knotted for a line and the data is rich and stable, a model is the honest next step. I build it knowing which lever it is meant to move, and I check its answers against a count so it cannot drift into nonsense unnoticed. A model you cannot sanity check against arithmetic is a model you should not trust. Your raw data stays yours, and the terms for code and models are in the analytics and data science terms.

If you have been quoted a large sum for a machine learning project and suspect nobody has counted the simple thing yet, that is the conversation for the free workshop, and the first two weeks of work are on me. More about how I work with data is on the data science page.

The one habit to keep

Next time a business question lands on your desk, and before anyone says model, ask what the simplest equation is. Write it as one line, multiply the drivers, add the parts, and look at it until it tells you which number is doing the work. Then count that number properly. Most of the time the question is already answered, and you will understand your own business in a way no black box would have allowed. The clever tools are still there for when you truly need them. You will need them less often than anyone selling them suggests.

If you have been quoted a large sum for a machine learning project and suspect nobody has counted the simple thing yet, bring the question to a free workshop. We write the equation together, the first two weeks of work are on me, and you may find you do not need the model at all.

Sources

  1. 1.

    Martin Zinkevich, Rules of Machine Learning: Best Practices for ML Engineering, Google for Developers, Rule 1 and Rule 3, https://developers.google.com/machine-learning/guides/rules-of-ml

  2. 2.

    D. Sculley and others, Hidden Technical Debt in Machine Learning Systems, Advances in Neural Information Processing Systems 28 (NIPS 2015), https://papers.nips.cc/paper_files/paper/2015/hash/86df7dcfd896fcaf2674f757a2463eba-Abstract.html

Shelter

I’m running the London Marathon for Shelter. Sunday 25 April 2027

My personal fundraiser. Shelter, the National Campaign for Homeless People Limited, registered charity 263710 (England and Wales) and SC002327 (Scotland), registered with the Fundraising Regulator.