Case study · Marketing analytics
Who should sales call first?
An online education company converts 38.5% of its leads. I built a logistic regression that scores every lead 0–100, so the team can call likely buyers first. Most of the work went into choosing the cutoff.
Try it: pick the cutoff
Real model output on all 9,240 leads
Of calls that convert
72.6%
precision
Of buyers reached
79.8%
recall
Of the list called
42.3%
workload
Accuracy
80.6%
vs 38.5% baseline rate
Why I picked 35
I plotted accuracy, sensitivity and specificity across cutoffs and chose 0.35, where they balance. For a sales team, missing a real buyer costs more than one wasted call, so I leaned toward recall.
Why logistic regression, not a fancier model
Random forest and gradient boosting ranked leads slightly better (about +0.02 AUC) at the same precision. I kept logistic regression: it uses 11 features instead of 46, every coefficient tells sales why a lead scored high, and the score can be rebuilt in SQL inside a CRM. I did exactly that in sql/lead_score.sql.
Connections
Linked tools & methods
- PythonGeneral-purpose language used for data cleaning, analysis, automation and modeling.Also in: VirtueSoft · University of Cincinnati · NextSquare · Analyst · Kroger coupon leak · Ad Creative Pretest Lab · Grocery Growth Drivers · Dashboard walkthrough
- scikit-learnPython machine-learning library (models, feature selection, metrics).
- SQLThe language for querying relational databases; the core of most analysis work.Also in: VirtueSoft · Jabil · NextSquare · Senior · NextSquare · Analyst · Query Guard · Grocery Growth Drivers · Dashboard walkthrough
- StatisticsHypothesis tests, confidence intervals and regression behind the conclusions.Also in: StreetCare · Kroger coupon leak · Construction Forecast · Supply chain cases