Designing a Revenue-Maximizing Donor Outreach Strategy
Machine LearningModel answerLast updated
Build a model to optimize fundraising campaigns by predicting donation likelihood and amounts, then create profit-driven policies for different outreach channels.
Your nonprofit organization runs multiple fundraising campaigns and needs a data-driven approach to maximize net revenue. You have two primary outreach channels:
- Digital outreach: costs $1 per person contacted
- Premium event: costs $100 per guest plus a $20,000 venue rental; capacity is limited to 100 attendees
Historical data includes donor demographics, past giving history, engagement metrics, and outcomes (whether they donated and how much).
Your task is to design and evaluate a machine learning system that optimizes these campaigns:
-
Model Architecture: Design a modeling approach to predict donation outcomes. Explain how you would handle the donation amount distribution (which is heavily right-skewed with many zeros), engineer features from donor history, and avoid common data leakage pitfalls.
-
Decision Rules: Define the business logic for each channel. How do you decide who receives digital outreach? How do you select which 100 people to invite to the premium event, and how do you determine whether to hold the event at all given the fixed costs?
-
Calibration: Explain why well-calibrated probabilities matter for this use case and describe how you would ensure your model produces reliable probability estimates. What diagnostic checks would you perform?
-
Historical Bias: Your historical data reflects previous targeting strategies (not random assignment). How would you estimate the expected performance of a new policy using this biased historical data? What methods and assumptions are required?
-
Causal Perspective: If you wanted to model the incremental effect of outreach (rather than just response probability), how would your approach change? What metrics would you use, and what risks should you watch for?
Hints
Hint 1
Think about whether a single model or separate models for 'will they donate' and 'how much will they give' makes more sense given the data characteristics
Hint 2
Remember that the decision threshold depends on absolute profit in dollars, not just model scores or rankings
Hint 3
Consider what happens if your model predicts a 40% donation probability but the true rate in that segment is 20% – how does this affect your business decisions?
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Model Answer: Revenue-Optimizing Donor Outreach
1) Model Architecture
Recommended approach: Two-stage hurdle model
Build separate models for two distinct questions:
- Conversion model: P(donate | features) using logistic regression or gradient boosting
- Amount model: E[donation | donor gives, features] trained only on the subset who donated
Final prediction: Expected revenue = P(donate) × E[amount | donate]
Why separate models? The factors that drive whether someone gives at all differ from what determines gift size. Engagement recency might predict conversion, while wealth indicators predict amount. Training an amount model only on donors avoids the noise from thousands of zeros and lets you focus modeling capacity on the non-trivial variance.
Alternative: Direct expected value model. You could train a single model on revenue (including zeros) using Tweedie regression or a custom loss. This is simpler but harder to debug and interpret.
Handling skewed amounts:
Donation amounts typically span orders of magnitude ($10 to $10,000+). Three viable approaches:
- Log-transform: Train the amount model on log(donation). When predicting, use exp(μ̂ + σ̂²/2) to correct for Jensen's inequality, otherwise you'll systematically underestimate revenue.
- Gamma GLM: Models the mean directly on the dollar scale with a log link, avoiding back-transformation issues.
- Winsorize outliers: Cap extreme values at the 99th percentile during training for stability, but track major donors separately for relationship management.
Feature engineering:
- RFM variables: Recency (days since last gift), Frequency (number of past gifts), Monetary (max, mean, and median past gift)
- Channel behavior: Email open rates, click-through rates, past response by channel
- Engagement: Event attendance, volunteer history, content downloads
- Capacity indicators: Wealth screening scores, property values, employer data
- Temporal: Tenure, time since first gift, seasonal patterns
- Fatigue: Number of solicitations in the past 30/90 days
Handling categorical and sparse features:
- Target encoding for high-cardinality variables (zip code, campaign source, employer) using out-of-fold means to prevent leakage
- Missingness indicators: "No wealth score available" often carries signal
- Hashing for very sparse fields like tags or free-text campaign codes
- Collapse rare categories into "Other" for stability
Leakage prevention:
Common mistakes include:
- Using features computed after the solicitation date (e.g., "lifetime giving" that includes the current campaign)
- Including outcome-dependent fields like "thank you email sent" or "pledge reminder count"
- Random train/test splits that leak future information
Prevention:
- Construct all features as-of a point-in-time snapshot before each campaign
- Use temporal splits: train on campaigns from 2022-2023, validate on Q1 2024, test on Q2 2024
- Never use data from the same campaign in both training and validation
2) Profit-Driven Decision Rules
Digital outreach policy:
For each person i, calculate:
- Expected profit_i = P(donate)_i × E(amount)_i − $1
Decision rule: Contact person i if expected profit_i > $0
With no budget constraint, you contact everyone with positive expected profit. If budget-limited, rank by expected profit and take the top N who fit the budget.
Key insight: Don't rank by probability alone. Someone with a 5% chance of giving $500 (expected value $25) is better than someone with a 50% chance of giving $20 (expected value $10).
Premium event policy:
This is more complex due to fixed costs and capacity constraints.
-
Model attendance: q_i = P(attend | invited, features)
-
Model event giving: g_i = E(gift | attends, features)
-
Calculate marginal value per invitee:
profit_i = q_i × (g_i − $100)
Note: You might subtract the digital revenue you'd have earned from this person anyway (opportunity cost).
-
Rank and select: Sort by profit_i descending. Invite until expected total attendance Σq_i ≈ 100 (over-invite slightly if you can handle overflow).
-
Go/no-go decision: Sum the expected profit across your top 100 invitees. Hold the event only if Σprofit_i > $20,000 (the fixed cost).
Breakeven math: With 100 attendees and $20,000 fixed cost, you need $300 average gross revenue per attendee ($100 variable + $200 fixed share) to break even.
The fixed cost doesn't change the ranking of who to invite, but it determines whether the event is worth running at all.
3) Calibration
Why it matters:
Your decisions depend on absolute probability values, not just relative rankings. If your model consistently predicts 30% donation probability when the true rate is 15%, you'll:
- Contact people whose expected profit is actually negative
- Overestimate event profitability and hold unprofitable events
- Misallocate budget across segments
Standard AUC doesn't detect this problem—it only measures ranking quality.
How to calibrate:
Train a post-processing step on held-out data (e.g., your most recent campaign):
- Platt scaling: Fit a logistic regression mapping raw scores to calibrated probabilities. Works well with small samples.
- Isotonic regression: Non-parametric mapping that can capture arbitrary miscalibration patterns. Needs thousands of validation examples.
Common causes of miscalibration:
- Gradient boosting (overfits probability estimates)
- Class imbalance correction (shifts the prior)
- Train/test distribution shift
Diagnostic plots:
- Reliability diagram: Bin predictions into deciles. Plot predicted probability vs. observed frequency in each bin. Perfect calibration = diagonal line.
- Calibration for amounts: Plot predicted vs. actual mean donation by score decile.
- Revenue calibration: Plot predicted vs. realized revenue by decile—the most direct business metric.
- Profit curve: Plot cumulative profit vs. number contacted. The peak should align with your p×m = $1 threshold.
Also report Brier score and Expected Calibration Error (ECE) as summary statistics.
4) Offline Policy Evaluation Under Selection Bias
The problem: Historical campaigns targeted specific segments (e.g., recent donors, high-value prospects). You can't simply compare solicited vs. unsolicited groups—selection bias would inflate your estimates.
Solution approaches:
Inverse Propensity Weighting (IPW):
Estimate historical targeting propensities e(x) = P(contacted | features). Then:
V̂(new_policy) = (1/n) Σ [ 1{historical_action = new_action} / e(features) ] × outcome
Re-weight observations to simulate random assignment. Use self-normalized weights (divide by sum of weights) to reduce variance.
Doubly Robust (DR) estimation:
Combine propensity weighting with outcome modeling:
V̂ = (1/n) Σ [ outcome_model(features, action) + weight × (actual_outcome − outcome_model) ]
The first term is model-based prediction. The second term corrects for model errors using weighted residuals. This estimator is consistent if either the propensity model or the outcome model is correct—you get two chances to be right.
Required assumptions:
- Unconfoundedness: All factors that influenced historical decisions are captured in your features. If a fundraiser made calls based on personal knowledge not in the database, this assumption fails.
- Overlap/Positivity: For every segment where you want to evaluate the new policy, some people must have been contacted and some not in the historical data. 0 < e(x) < 1. A hard rule like "never contact lapsed donors" makes that segment unevaluable.
- SUTVA (Stable Unit Treatment Value): One person's treatment doesn't affect another's outcome—typically reasonable for fundraising.
Practical tips:
- Clip propensity weights at 1/0.05 and 1/0.95 to limit variance
- Compare IPW and DR estimates as a sanity check
- Report confidence intervals—off-policy evaluation has high variance
- Consider A/B testing the new policy on a small random sample for ground truth
5) Causal Uplift Modeling
Reframe the objective:
Instead of predicting P(donate | contacted), predict the incremental effect of contact:
Uplift = E[donate | contacted] − E[donate | not contacted]
Some people will donate regardless; you want to target those most influenced by outreach.
Why this matters: Under a response model, you might target people who always give (wasted cost) or suppress people who need a nudge. Uplift modeling focuses on the marginal impact.
Modeling approaches:
- Two-model approach: Train separate models on contacted and not-contacted groups, then take the difference in predictions. Simple but assumes no hidden confounding.
- Transformed outcome: Create pseudo-outcomes that debias treatment effects under randomization (e.g., DR-learner, R-learner).
- Uplift-specific algorithms: Causal trees, causal forests, or uplift random forests that split on treatment effect heterogeneity.
Evaluation metrics:
Standard classification metrics fail because you never observe both potential outcomes for one person.
- Qini curve: Cumulative uplift vs. fraction targeted, accounting for natural conversion rates in both groups. Area under the Qini curve measures targeting gain.
- Uplift curve: Incremental donations vs. depth of targeting.
- AUUC (Area Under Uplift Curve): Summary statistic analogous to AUC but for treatment effects.
Risks—targeting bias and exploration starvation:
If you only contact high-predicted-uplift individuals, you may:
- Starve low-uplift segments who might respond differently over time (e.g., stop engaging entirely)
- Lose calibration as the data distribution shifts
- Fail to discover new responsive segments (exploration/exploitation tradeoff)
Mitigations:
- Reserve 10-20% of contacts for random assignment to maintain unbiased evaluation data
- Use contextual bandits or Thompson sampling for adaptive targeting with built-in exploration
- Monitor segment-level engagement and re-randomize periodically
- Track long-term value, not just immediate response—over-solicitation can burn out donors
Summary
Strong candidates approach this as an end-to-end decision system, not just a prediction task:
- Design models suited to the data (hurdle structure for zero-inflation)
- Translate predictions into dollar-valued decisions with explicit thresholds
- Ensure calibration because absolute probabilities, not just ranks, drive profit
- Handle historical bias with causal inference methods when evaluating new policies
- Recognize the difference between predicting response and predicting incremental impact
The deliverable is not a high-AUC model—it's a policy that makes more money and an honest estimate of how much more.