Prof. Polly

Data Analytics / Module 2 / Topic 6

Topic 6 · Marketing Decisions

Customers, Segments, and Tests

Who are your customers, which groups should get which offer, and how do you know an offer really worked?

Tiggie the tiger cub, thinking
Your growth lineAnswer Tiggie to add a point
0 of 8
Sprout & Stem again. The plant shop (made up for these guides) has a year of sales records and a new email offer. Who are its best customers, who is drifting away, and does the email actually work? Eight short stops.
STOP 1 OF 8

Customers leave a trail

Every purchase records who bought, what, when, and how much. That trail shows behavior more reliably than opinion surveys do.

A simple, widely used summary is RFM: three facts about each customer, straight from sales records.

MeasureWhat it capturesWhy it matters
RecencyHow long since the last purchaseRecent buyers respond best to offers
FrequencyHow often the customer buysFrequent buyers are more engaged and loyal
MonetaryHow much the customer spendsHigh spenders bring in much of the revenue

Try it: which measure is it?

STOP 2 OF 8

Score customers with RFM

Score each measure from 1 (weak) to 3 (strong), add the three, and group the totals. The cut-offs are a choice, so always state them.

Here, a total of 8 or more is Best, 4 or less is At risk, and the rest are Middle. Switch the cut-offs and watch the groups change.

STOP 3 OF 8

Four ways to segment a market

Customers differ, so treating them all the same wastes money. Segmentation splits a market into groups that are alike inside and different from each other.

BasisSplits customers byExample
DemographicAge, income, education, family stageStudents and retirees
GeographicRegion, climate, city or countryCold-weather markets
BehavioralPurchase patterns, usage, loyaltyHeavy users and occasional buyers
PsychographicValues, lifestyle, attitudesEco-conscious shoppers

The idea goes back to the marketer Wendell Smith in the 1950s, and it is still central today.

Try it: which basis is it?

STOP 4 OF 8

Let groups emerge from the data

With rich data, clustering methods such as k-means group customers by how similar they are across many measures at once.

Each dot is a made-up Sprout & Stem customer. The business then names the groups and decides what to do for each. A useful segment can be measured, is big enough to matter, and can be reached with a different offer.

Look for groups first, then tap the button.
STOP 5 OF 8

A fair test: A/B experiments

An association is not proof of cause. A controlled test is.

In an A/B experiment, you randomly split customers into a treatment group, which gets the action (say, a discount email), and a control group, which does not. Random assignment makes the two groups alike, on average, in every other way, so a difference in the outcome can be credited to the action. Pick one main outcome before you start, such as the conversion rate: the percent of customers who buy.

Try it: fair test or not?

STOP 6 OF 8

Read the lift, then the dollars

One subtraction, one division, then turn it into money.

Control: 1,200 customers, 66 purchases. Treatment: 1,200 customers, 90 purchases. Each purchase brings an $18 margin, and the email costs $250 per 1,000 customers.

Tap Next step.
STOP 7 OF 8

Noise and guardrails

Small differences in small samples are often just noise.

Run a fake test where the email does nothing: both groups buy at the same true rate of 6%. Any "lift" you see is pure chance. Then try bigger groups.

Tap a button.

Also watch guardrail measures next to the main outcome, such as unsubscribes, complaints, returns, and margin. A promotion can win sales while teaching customers to wait for discounts.

STOP 8 OF 8

Spot the mistake

Six quick cases. Four are common mistakes, and two are fine.

Nice work. Your growth line is complete!

Now read an A/B test with numbers of your own.

An A/B test reader. Enter both groups, the margin per purchase, and the campaign cost per 1,000 customers. It reports the absolute lift, the relative lift, and the net gain after cost. It starts with Sprout & Stem's made-up email test.

Do it in Excel

B1 and C1: Control, Treatment. Row 2: customers (1200, 1200). Row 3: purchases (66, 90). B7: margin 18. B9: cost per 1,000 customers 250.

  1. Conversion rates in B4 and C4: =B3/B2 and =C3/C2. Format as percentages: 5.5% and 7.5%.
  2. Absolute lift in B5: =C4-B4 (2 percentage points). Relative lift in B6: =B5/B4 (about 36.4%).
  3. Extra margin per 1,000 customers in B8: =B5*1000*B7. It shows 360. Net gain in B10: =B8-B9. It shows 110.
  4. Test a weaker result: change C3 to 78. The lift is still positive (1 point), but B8 falls to 180 and B10 shows -70. Now the email loses money.

RFM scores use nested IF formulas. With cut-offs A, the recency score is =IF(B2<=30,3,IF(B2<=90,2,1)): fewer days is better, so the test uses <=.

Try it yourself

1. A reminder email

Control: 2,500 customers, 150 purchases. Treatment: 2,500 customers, 185 purchases. Margin per purchase $10. The email costs $90 per 1,000 customers.

a) Absolute lift (percentage points)?

b) Net gain per 1,000 customers ($)?

a) Control 150 ÷ 2,500 = 6%. Treatment 185 ÷ 2,500 = 7.4%. Absolute lift = 1.4 points (relative lift about 23.3%). b) 1.4 points means 14 extra purchases per 1,000 customers, worth 14 × $10 = $140. After the $90 cost, the net gain is $50 per 1,000.

2. Which basis?

The shop targets "customers who care about organic, chemical-free gardening." Which basis of segmentation is that?

3. Fair or not?

A manager compares customers who opened last month's email with customers who did not, and finds the openers bought more. Is that a fair test of the email?

4. Score one customer

With cut-offs A (recency: 30 or fewer days scores 3, 90 or fewer scores 2; frequency: 8 or more orders scores 3, 4 or more scores 2; spend: $500 or more scores 3, $200 or more scores 2), customer S9 last bought 53 days ago, placed 11 orders, and spent $172. Which group?

Questions to discuss

  1. What are the three parts of RFM, and why is each useful?
  2. Name the four common bases for segmentation and give an original example of each.
  3. Compare segments you define in advance with segments found by clustering. When might each be better?
  4. A test sends an offer to some customers and finds a few more purchases than in the control group. What would you check before calling it a success?
  5. Pick a business you know and propose three customer segments. For each, name the basis and one tailored action.

Practice quiz

Score: 0 of 10

AI can set up a segmentation fast. Which measures to use, how many segments, and what each one means are business judgments that stay with you. If your class has an AI policy, follow it.

It can help with

  • Suggesting which customer measures to use and how to prepare them
  • Drafting the Excel steps for an RFM score or a test reading
  • Writing a short profile and one action for each segment

Always check

  • Segments really differ and are big enough to act on
  • Each profile matches the real averages in your data
  • Each action fits your product, budget, and brand

Watch out for

  • Pasting names, emails, or IDs into a public tool: use summaries
  • Segments made from weak data that look precise
  • Segment names you cannot justify from the numbers

Prompts that help you learn

The best prompts make you do the thinking, with AI as a coach.

How to check any AI answer

  1. Compare it with a result you already know, such as the tool on this page.
  2. Test one number yourself with a calculator.
  3. Ask the AI to explain each step. If a step does not make sense, do not use it.
  4. If the AI and your own work disagree, find out why before you trust either one.

Check the AI: a challenge

Tell an AI assistant: "Control: 1,200 customers, 66 purchases. Treatment: 1,200 customers, 90 purchases. Each purchase brings an $18 margin, and the email costs $250 per 1,000 customers. What are the absolute lift, the relative lift, and the net gain per 1,000 customers?" Then compare.

Conversion 5.5% and 7.5%. Absolute lift 2 percentage points, relative lift about 36.4%. Extra margin $360 per 1,000 customers, so the net gain is $110. If the AI reports only "a 36.4% lift," it left out the two numbers that matter most for the decision.
1 / 8