Trust makes the difference. Trust takes time.
How the deck opens · slide 1
The idea in one picture
About 10,100 purchase files arrive every year. Advisors call about one in three, and about 9.7% end as a won file. The engine does not add calls. It changes who gets the call, which deals get saved and which get closed out.
Valuable, not at risk. Call, qualify, send the mandate.
ranked by value × P(stays alive)
At risk or in this week's 250 alerts. Fix the blocker.
ranked by value × P(lost)
Mandate signed, no policy logged. Offer the policy.
ranked by insurance revenue
Dead by the timeline rules. One last call, then close.
separate admin batch
Will they sign?
A points card built from what a lead did and declared before anyone called: e-mail confirmed, property entered, project stage, age, money, partner quality. 10 points double the odds.
Who are they?
The household as it stood when it reached an advisor, sorted into 8 entry segments and 9 personas with their close rates. Shown on the card to prepare the call.
Is the deal still alive?
A weekly health check of every open deal. Rules learned from history mark it dead or at risk, and a model gives its chance of being lost in the next 30 days.
Value first, then risk
Behaviour and category set the value in CHF. The timeline sets the risk. Each file lands in one list, with one reason and one next step.
What changes for the advisor
Monday morning: four lists, one ranking
The four lists replace four separate tools. Each file carries its grade, its value in CHF, its risk, a persona to prepare the call and a single recommendation. The last column, at stake, is what the action can still add: the full value for Pursue, value × chance of loss for Save, the expected insurance revenue for Insurance, nothing for Clean-up.
Sample of the Monday list
Two files drawn from the top of each list on the 9 Nov 2026 snapshot.
ids and values changed · source: New_engine/outputs/A1/merged/lists_2026-11-09
first calls a week, as today. Grades A–C go first (about 75 a week).
low-grade files a week get the automatic e-mail instead of a call.
Save calls per office per week, plus a one-off insurance campaign. That is the new work.
Follow one file from the app to the Monday list
One purchase file, every step the engine takes with it. It has the format of a real file from the export, with the id, dates and amounts changed.
-
22 Oct 202620:41–21:12
The client fills in the app questionnaire
Referred by a partner, the client runs a simulation in the evening. Property identified, about CHF 2’554’000, income and own funds entered, then a second borrower. The onboarding log records each step.
rows in the raw format · javascript/user_completed_onboarding_step · ids and values changed
-
26 Oct → 9 Novweekly snapshots
The CRM keeps a weekly snapshot of the loan
On the first snapshot the requested amount is empty. On 2 Nov it reads CHF 1’596’000: an advisor typed it after the first contact. The latest snapshot "knows the future", so the engine reads each field as it stood on day 1, and the leakage audit drops fields like this one.
rows in the raw format · mongo/loans_all · ids and values changed · highlighted: the field filled after day 1
-
Day 1lead score
The lead score rates it on the referred scorecard
Each criterion adds or removes points. The total gives the chance of a signed mandate within 90 days, the grade and the three reasons the advisor reads on the card.
Points on this file
Read as of day 1
PointsP(mandate in 90 days)GradeExpected valueReasons on the card -
First contactcategory
The category engine says who the household is
A couple aged 35–44 buying a new-build property above CHF 2M, with tight affordability (housing costs at 25–33% of income). Referred clients who already found a property win 40.5% of the time, and new-build buyers are the persona most likely to take insurance. This goes on the card to prepare the call. It does not change the ranking.
Entry segmentPersonaHouseholdAffordability -
9 Nov 2026weekly check
The timeline raises warning sign 3
Twenty-two days into step 1, the first interview has not happened. Deals in that state are lost within 30 days 20% of the time, against 7% for all ongoing deals. Today's CRM flag does not mark this file.
StateP(lost in 30 days)Next step -
Mondaythe list
The merge puts it on the Save list
By now the file has been qualified and contacted. The funnel chain, which scores each step, lifts its chance of a won file to about 40% (grade A). Because it is also slipping, it goes to Save, ranked by what is at stake: value × chance of loss.
ListP(win), mergedValueAt stake this weekRecommendation
How each engine works
The data, then the three engines in the order a file meets them, then the merge. Every chart below comes from the engine's own output files on the 9 Nov 2026 export.
The data
One CRM export, read as it was on each day
The broker gave us its CRM as Parquet, about 11 GB: 23 collections, each as weekly snapshots from July 2023 plus the latest state, and the app's onboarding event log. Names, e-mails and phones were removed. Partners, lenders and insurers appear by id only.
We kept A1 files, about 53,100 loans. They are 97% purchases. A2 files are 89% refinancings, a different market, so they are documented but not scored.
Ground rules from the brief
- Only what was known that day. A score for a given day reads that day's snapshot.
- Explainable. Every score comes with its reasons in words.
- Rerunnable. One command on a fresh export, no manual step.
- By office, never by advisor.
- Nationality and permit only through a documented lending rule, never as raw inputs.
Leakage audit: which fields an advisor filled in later
For each field, the mandate rate when it is filled vs empty. A field filled for under half the leads, whose "filled" rate is above 10%, was typed by an advisor on leads already being worked. It is excluded.
source: case_2_engine_updated/outputs/leakage_audit.csv · 35,340 leads
Engine 1 · Behaviour · Case 2 + in-app
Will they sign? A scorecard an advisor can read
- Rebuild every lead as it looked on day 1. One row per A1 loan, clock at the loan's creation, 50,600 leads.
- Drop what came later. The leakage audit above, plus the first weekly snapshot for property value and project type.
- Two points cards. Logistic regression on banded criteria, rounded to points: one card for self-serve leads, one for referred leads, because their mandate rates differ about ×11. The probability is recomputed from the rounded points, so the card is the model.
- Three explicit junk rules. API shells, ghost leads, out-of-range data (below).
- Blind test. Fitted on leads from July 2023 to December 2024, tested on 17,192 leads from 2025 onward.
- Value in CHF. P(mandate) × estimated loan × 1% + insurance potential, so a large unlikely file can beat a small likely one.
The scorecard: points per criterion
+10 points double the odds of a signed mandate. Strongest levels of each card; missing-value levels are hidden.
source: case_2_engine_updated/outputs/scorecard_points.csv · fitted on leads before 2025
Share of leads per grade
A–C get a call (33% of leads). D–E get the automatic e-mail.
Signed a mandate within 90 days
Each grade's real rate on leads the model never saw.
blind test · 17,192 leads created from 2025-01-01 · grade A ≥ 30% · B 15–30% · C 5–15% · D 1.5–5% · E < 1.5%
Ranking quality on the blind test (AUC)
Inside the self-serve population, today's channel rule ranks no better than a coin flip. A gradient-boosting model on the same data is shown as a yardstick: the readable card loses little.
source: case_2_engine_updated/outputs/eval_metrics.csv
Sample of scored leads, one per grade
What the activation team sees each morning, with the outcome added on the right (never an input).
blind-test period · ids and values changed · source: case_2_engine_updated/outputs/scores
The behaviour research: six traits of real intent
We mapped 25 papers on purchase intent (Ajzen, Webb & Sheeran, Gollwitzer, Freedman & Fraser, Moe & Fader, Oldroyd and others) to what the export can measure. That gave 21 usable traits. These six matter most.
Engine 2 · Timeline · Case 1
Is the deal still alive? Silence kills deals, at every step
Every week, every open deal is read from its snapshot: where it is, what happened recently, which milestones are missing, whether it is blocked. The first finding sets the rules: the longer a deal sits idle, the less likely it is to move on, and each step has its own clock.
Chance of reaching the next step within 90 days, by days without activity
A normal step-1 deal has a 10.7% chance. After 21 idle days it keeps a fifth of that. Step 3 starts near 31% and holds up longer.
source: New_engine/outputs/A1/timeline_analysis/stale_threshold_calibration.csv · 80,615 deal-weeks
Rules learned from history
A deal is called dead or at risk once it passes the point where fewer than about 1 in 4 deals at its step still move on within 90 days.
source: lost_state_rules_purity.csv · "reached billing" vs a normal deal at the same step
The risk model
- 49 signals in 7 families: position, activity, milestones, blocking, 4-week momentum, deal context, and the CRM's existing priority flag, legacyPriorityFlag.
- Gradient boosting, trained only on weeks whose 30-day outcome was known, then calibrated: "10%" means about 1 deal in 10.
- Walk-forward backtest: trained before July 2025, tested on 66 later weeks with a 30-day gap.
- Alert policy: the top 250 deals a week; a deal flagged in the last 3 weeks is skipped.
- Office, canton and origin were removed: no loss, and "your office is slow" is not an action.
Ranking deals lost within 30 days (AUC)
Today's CRM flag is barely better than a coin flip. Each step of the model adds signal.
source: timeline_analysis/backtest_comparison.csv · 66 test weeks · axis starts at 0.5 (coin flip)
Seven warning signs, each with one action
Share of deals lost within 30 days when the sign is not fixed, vs fixed within a week. Observed on history: it compares fixed and unfixed deals, so it does not prove the action alone made the gap.
source: timeline_analysis/warning_signs.json · technical brief, slide 9
Sample of the weekly timeline output
One dead, one at-risk and three live deals. Reasons and next steps are generated in words.
ids and values changed · source: timeline_analysis/scores_2026-11-09
Engine 3 · Category · Case 0
Who are they? Segments and personas at entry
The household is rebuilt as it stood when it reached an advisor (95.4% of qualified deals have a snapshot within 7 days). Shared savings are counted once per couple. Close rates carry a 95% Wilson interval, and small groups are pulled toward the average.
Engine 3 adds no ranking power once engine 1 is in, because both know the same facts (channel, property found, age). It goes on the card, not into the sort.
gap in win rate between the best and the worst entry segment.
of files arrive with an empty profile, and win 0.3% of the time.
German-speaking Switzerland: % of the population vs % of the broker's deals. Romandie: 26 vs 71.
Win rate by entry segment, with 95% interval
Won = mandate signed or loan finalized. Dashed line: all segments together.
source: New_engine/outputs/A1/category_analysis/entry_segments.csv · 12,444 qualified deals with an outcome
Personas: who closes, who takes insurance
Insurance rates are minimums: advisors don't always log insurance talks. The deck quotes lower close rates (new-build 32%, families 24%) because it counts only billed mortgages on complete files.
source: category_analysis/personas.csv · purchase files
Sample of entry profiles
One file per segment, mostly complete ones, plus an empty profile for contrast.
ids and values changed · values banded by the engine · source: category_analysis/entry_profiles
The merge
Three engines, one list of who is worth your time
- Value first. The lead score, the funnel chain and (after first contact) the segment are added on the log-odds scale, with one set of weights per population and per decision point. Weights are fitted on H1 2025 loans.
- Make it honest. Calibration (average of isotonic regression and an intercept shift). On 2026 H1 files it predicts 7.8% and 7.0% happen before contact (raw score: 10.2%).
- Put a price on it. P(win) × loan × 1% + P(win) × P(insurance) × median premium × 4.5% × 10 years.
- Apply the risk. Dead → Clean-up. At risk or in the 250 alerts → Save. Everything else → Pursue. Signed without a policy → Insurance.
- Filter. Self-serve leads that never confirmed their e-mail leave the lists (1,814 files). Referred files stay.
Win rate of the top fifth, ranked by each engine
3,171 deals open on 10 Nov 2025 with no mandate yet; 4.0% were won within a year. The engines overlap, so together they add less than the sum.
source: technical brief, slide 11 · top 20% = 634 deals
How it was tested, and what it could change
Every model is judged on files it never saw. The business gain cannot be read from history, so it is simulated, and a randomised pilot will measure it.
Which period was used for what
Today vs the engine
Hollow dot: today's rule or flag. Filled dot: the engine. Same leads and deals, same test periods.
lead rows: blind test, eval_metrics.csv · deal rows: timeline backtest, early_warning_comparison.csv (250 alerts a week, 3-week no-repeat rule; without the rule 21% of alerts are right but 69% of lost deals are warned) · last row: mock simulation
Sealed window (won within 90 days)
1,000 paired bootstrap draws · holdout.json
Calibration on files it had never seen
fitted on 2025 H2, checked on 2026 H1 · won within 183 days
The gain depends on one unknown: will the uncalled clients answer?
Real data cannot show what would have happened if advisors had followed the list. So we built a mock year from 2025 aggregates only (no client rows): per grade, the share of files, how many are called within 14 days, and the win rate if called and if not. The mock reproduces 2025 within a point. The unknown is the catch-up: the share of today's uncalled A–C clients who would answer and convert like the called ones.
We don't just gain time, time better spent means you win more money.
The deck's statement on the gain · slide 2
Extra won files a year, same number of calls
"List + advisor" calls A–C first, then lets advisors pick the D–E files they judge promising. Following the score alone does about 23 files a year worse.
source: New_engine/outputs/A1/mock/scenarios.csv · 30 mock years per point · calls planned per team and week (pooling calls across 4 weeks gives up to +117)
The pilot: drawn 15 Nov, starts 23 Nov 2026
- Draw. Every new A1 lead goes 50/50 to List or Usual, by a fixed hash of the loan id, so a lead never changes group.
- Work. List leads are on the Monday list: A–C called within 14 days. Advisors log every call, answered or not.
- Read. After about 300 List A–C leads, 10–13 weeks in (February 2027). Won within 90 days is checked by May 2027.
- Why leads, not offices. An A/A test on history: splitting offices swings ±14 points with no change at all, splitting leads ±6.
- What it measures. A–C leads reached within 14 days, the catch-up, the pick-up rate, plus guardrails (usual leads still reached, same effort).
- Power. On mock data a 0.25 catch-up is detected 91% of the time after 13 weeks.
- Who runs it. The broker, on its own exports: our copies are deleted under the NDA.
The presentation
"Who Is Worth Your Time", presented to the broker's heads of product, finance and engineering on 20 November 2026. Each slide in its final state; select one to enlarge.
Slides that show the real figures are blurred.
Reference
Limits, how to run it, where everything is, and what is left to hand over.
Limits
Run it
Merged engine · about 3 minutes
# from New_engine/, conda env "scraping"
python run_all.py
python run_all.py --backtest
python run_all.py --holdout
python -m engine.A1.pilot --dry-run
python -m engine.A1.slack_alerts
open dashboard/operator.html
Lead scoring package · about 10 seconds
# from case_2_engine_updated/, Python 3.11
python -m lead_rating \
--export ../Case_2_engine/new_docs/2026-11-09
cd notebooks && python run_notebooks.py
python report/build_report.py
Where everything is
Handover and NDA
- Hand the broker the code of New_engine/ and case_2_engine_updated/, including outputs/A1/pilot/assignment.json. Without it the pilot groups cannot be rebuilt.
- Keep New_engine/outputs/operator/slack_config.json (Slack webhooks) and every row-level output out of the handover.
- Delete every copy of the export and of row-level outputs, then confirm in writing to Albert School by 27 November 2026.
- On a CV or LinkedIn, name the project only: no figures, no data.