r/datascience • • 11d ago

Discussion Marketing Data Causal Inference

I am currently entrusted with a marketing DS work. We send emails to customers. But the business wants to find out what is the optimum frequency to send emails. Currently abrupt emails are being sent, mostly 3 or 4 every month. There is a random holdout set being kept. How can I approach this problem ? Thanks in advance :)

19 Upvotes

25 comments sorted by

9

u/Massive_Distance_616 10d ago

Your random holdout answers "do emails help at all" (send vs no send), not "how often". For frequency you need people randomly assigned to different cadences. Otherwise you're comparing groups that got different frequencies for a reason (often engagement-based targeting), so a response curve from the existing data mostly shows who got emailed more, not what emailing more did. People who unsubscribe early also end up in the logs with few emails, which makes low frequency look worse than it is.

If the sends are currently ad hoc, that's a decent setup for a proper test: randomise people to something like 2, 4 and 6 a month for 6 to 8 weeks and keep each person's assignment fixed (3 vs 4 is probably too narrow to detect anything). Measure per person over the whole window (conversions or revenue per person, plus unsubscribes and spam complaints), not per email. Per-email rates reward sending less, and the cost of too many emails shows up later as people leaving.

If you can't run an experiment, check whether anything in how people ended up with 3 vs 4 was random (batch splits, send glitches). Otherwise a curve from observational data is shaky.

2

u/NervousVictory1792 10d ago

And these cadences need to be randomised right ? We do have a very loyal set of customers who buys whenever an email is sent. So should we naturally make them fall in the lower no. Of emails group or randomise them as well. Also another concern should the whole house file be broken down into different cadences or can I do for a smaller subset ?

4

u/portmanteaudition 10d ago

Think about it this way: anything that you are estimating the effect of should be "assigned as if random" otherwise the effect of it could be attrihutable to something correlated with it instead. You are saying there are types of people - those that will always behave a certain way after a message and everyone else. This akin to saying that the effect varies based on this type. Is that "type" randomly determined? Of course not. So you won't be able to indeed conclude that the variables defining that type are causing the response, just that there is an empirical tendency for a specific response.

Now, here's a key point: if you are confident that those people always buy in response to an email, why is there any need to run the experiment on them? You are giving up exploitation of this fact to run a suboptimal campaign for them to learn nothing. Of course, if you are wrong, then maybe not running the experiment is suboptimal

2

u/NervousVictory1792 9d ago

So another business thought is probably they(the loyal customers) are aware of the brand and they will buy anyway. So probably they don’t need so many emails, saving that email generation money and putting it to elsewhere preferably to acquire new customers.

5

u/Massive_Distance_616 9d ago

Randomise within segments rather than hand-picking (it's called stratified randomisation if you want to look it up). Split loyal customers from everyone else and randomise the cadence inside each group. That way you can see the effect for each group without assuming the loyal ones don't react. If you just put the loyal ones in the low group, you can't tell whether low frequency or being loyal drove the result.

A subset is fine. You don't need the whole file. A random sample of each segment is enough as long as it's big enough to see the difference you care about, and the rest stay on the current cadence. The arms don't need to be equal sizes either, so you can keep most of the loyal customers on what they get now.

On "they'll buy anyway", you can check that with the holdout you already have. Compare loyal customers who were held out with loyal customers who got emails, defining "loyal" from behaviour before the holdout started. If the held-out ones buy at about the same rate, the emails aren't doing much for them. If they buy much less, the emails are doing something even for loyal people. "Buys whenever an email is sent" could be either.

2

u/Mobile_Scientist1310 10d ago

Two ways:

  1. email heavy up test where you divide the test group into different buckets and each group receives different frequencies( impression or send volumes). You compare with a no email receive holdou group. You will see at which frequency group the lift starts dropping or showing diminishing returns
  2. build a regression model with hill transformation and see where diminishing returns shows up.

For you, 1 is the best option if you can create the experiment and run it until u achieve stat sig.

2

u/fantomkoenig 5d ago

one thing a per-customer test won't show you is deliverability. Spam complaints from the heavy arm drag down inbox placement for the whole sending domain, so the light arm suffers too and the gap between them looks smaller than it is. We run cold email for a certification business and inbox placement mattered more than any copy we ever tested. If you can, send the high frequency arm from a separate subdomain and check complaint rate per arm every week. Is anything transactional going out from the same domain?

1

u/overwhelmed_coconut 8d ago

What all information you have about the customers? And how you measure the success of the email? Is it by them opening the mail or using your coupon code? Usually when we do any ML related approach it's based on the segment of customer/product we apply different model. If it's a low revenue stable customer segment we don't have to apply fancy models, we just have to go by simple methods. The high volume, high volatile customer group is the high rewarding. Try to approach the customers in his cost benefit angle

1

u/Rich-Engineering-167 5d ago

Having a random holdout already puts you ahead of most marketing teams, so that is a great start.

The main trap here is just looking at historical data and comparing people who got 1 email vs 4 emails. Since your sends are ad hoc or rule based, you are going to run into massive selection and survivorship bias. Highly engaged users naturally qualify for more triggers, and the ones who hate the emails unsubscribe after the second one, leaving only your most tolerant users to receive the fourth. If you just plot conversion vs email count right now, it will look like spamming people works great.

Here is how I would actually tackle it:

First, get a baseline from your current holdout. Compare your treated group against the holdout to see the overall incremental lift of the program. Make sure you look at unsubscribes and spam reports alongside revenue and conversions. You can also run an uplift model like a basic Causal Forest on this data to see who responds well to the current cadence vs who churns.

Second, pitch a frequency cap test. Observational causal methods get super messy with email frequency unless the abrupt sends were genuinely random. The cleanest way to answer this is a randomized test over 2 or 3 months where you split users into different monthly caps: 0 emails (your holdout), max 1 per month, max 2 per month, max 4 per month (status quo), and maybe a 6 per month group if marketing wants to test pushing it.

One thing to flag to stakeholders early is to measure long term metrics, not just immediate clicks. Sending more emails almost always bumps immediate conversions, so if you only look at a 7 day window, the data will tell you to blast your list until everyone unsubscribes. You have to weigh that immediate lift against list fatigue and churn over a full quarter.

1

u/07SpareTheMustard 5d ago

A dose-response experiment could help.

1

u/Artistic-Comb-5932 3d ago

Start with power analysis and historical data and then assess RCT design accordingly

1

u/offthecuff87 10d ago

Did you plot the time between emails vs some target variables (CTR/conversion ...) to get the response curve?

From theere you can formulate the hypothesis and ready to test or inference

-1

u/Ok-Preparation905 11d ago

일단 올바른 이메일 발송이 무엇인가(메일을 보내서 마케팅에 성공한 경우를 예로 들 수 있습니다)에 대한 정답값 라벨링 작업이 되어있는지 궁금합니다.
어떤 방법론을 사용하든 정답값을 매핑하는 것이 가장 우선이라는 생각이 들어요. 만약 정답값 라벨링이 되어있는 데이터가 존재한다면 다음은 user 특징과 시간적 특징이 중요해보입니다. 여러 피처를 만들어 테스트해보시고 시계열로 다뤄보면서 '메일을 발송하여 마케팅에 성공하는 경우'에 영향을 주는 특징의 효과를 객관적으로(통계) 검증해보세요.

'비슷한'(정의하기 나름) user를 모아보면서 어떤 어떤 시간적 특징이 이메일 발송 마케팅에 중요한지 인사이트를 뽑아보는 것도 재밌겠네요.

0

u/keldonwarlord 9d ago

Remind me too

-9

u/sonicking12 11d ago

Step 1 – Define the goal
Identify the metric you want to optimise (e.g., open‑rate, click‑through‑rate, conversion/revenue, unsubscribe rate, complaint rate). Keep a single primary KPI so you can compare experiments cleanly.

Step 2 – Create a test framework

GroupTreatment
ControlCurrent cadence (3‑4 emails / month).
Variant AReduce to 2 emails / month.
Variant BReduce to 1 email / month.
Variant CIncrease to 5 emails / month (optional, to test “more is better”).
HoldoutNo email (or a very low‑frequency baseline).
  • Randomly assign each subscriber to one of the groups. The holdout set you already keep can serve as the “no‑email” baseline.
  • Keep the same content, sender, and send‑time across groups; only the frequency changes.

Step 3 – Determine sample size & duration

  1. Estimate the minimum detectable effect (MDE) for your KPI (e.g., a 5 % lift in conversion).
  2. Use a standard A/B‑test calculator (α = 0.05, power = 0.80) to compute the required users per group.
  3. Run the test for enough weeks to cover at least 2‑3 full email cycles for the lowest‑frequency group (e.g., ≈ 6‑8 weeks for a 1‑email‑per‑month variant).

Step 4 – Collect & clean data

  • For each subscriber record: group assignment, number of emails sent, opens, clicks, conversions, unsubscribes, complaints, and revenue (if applicable).
  • Exclude bots, hard‑bounces, and users who changed status during the test (e.g., opted‑out).

Step 5 – Analyse results

  1. Aggregate the KPI per group (e.g., total conversions ÷ total emails sent).
  2. Statistical testing – apply a two‑sample proportion test (or chi‑square) to compare each variant against the control. Use confidence intervals to gauge the lift.
  3. Revenue‑per‑email – if you have monetary data, compute revenue / email sent for each group; this often reveals the true optimal cadence.

Step 6 – Interpret & act

  • If a lower‑frequency variant shows a statistically significant lift (or no significant loss) in the primary KPI and better secondary metrics (e.g., fewer unsubscribes), adopt that cadence.
  • If higher frequency improves the KPI with acceptable trade‑offs, you can increase the cadence.
  • Document the effect size; even a small but significant lift can translate into large revenue when scaled.

Step 7 – Iterate

  • Once you settle on a baseline frequency, test other variables (subject‑line style, send‑time, segmentation) while keeping frequency constant.
  • Periodically re‑run the frequency test (e.g., quarterly) because audience fatigue can evolve over time.

Practical checklist

  • ✅ Randomly assign users; keep the holdout truly untouched.
  • ✅ Keep all other variables constant across groups.
  • ✅ Pre‑register the test plan (hypothesis, KPI, MDE, sample size).
  • ✅ Use a reliable analytics platform or SQL pipeline to pull the metrics.
  • ✅ Apply appropriate statistical corrections for multiple variants (e.g., Bonferroni).
  • ✅ Report results with confidence intervals, not just point estimates.

Following this structured A/B‑testing approach will let you quantify the trade‑off between email frequency and desired outcomes, leading to a data‑driven optimum rather than guesswork.

NB: This is totally from AI but it seems to make sense on the surface. Good luck.

1

u/NervousVictory1792 11d ago

Funny that you think I haven’t put this in AI. But appreciate the effort

1

u/sonicking12 10d ago

What are the problems with this solution?

1

u/laurenrodriguez-556 4d ago

The 5% MDE is only an example; choose a lift that matters to the business. Sample size also depends on the baseline rate and audience, and you should decide in advance how you'll compare the cadence arms.

1

u/sonicking12 3d ago

But the approach itself is generally ok, right?