Case study
The data pipeline and portfolio analytics behind a wealth-management firm's investment process, from monthly attribution to the diffusion-index risk indicator that guides its managed-account trading.
This is the investment-analytics half of my consulting work: a long-running engagement with a wealth-management firm and the in-house macro-research service run under the same leadership, split roughly half-time between the two. Both are anonymized here, and everything below is my own contribution.
It is the part of my record that pairs most naturally with the compliance and supervision decade: the same close read on a portfolio and the data underneath it, from the operating side rather than the audit side.
A small RIA needs the same portfolio analytics as a large one on a fraction of the infrastructure: attribution out on time every month, model portfolios kept in policy through drift and cash flows, and client meetings prepared without an advisor rebuilding the same deck by hand.
The firm also manages risk in its accounts with a data-driven, rules-based process built on custom diffusion indexes. The question there: can that signal be recomputed every month from its data, rather than maintained by hand in spreadsheets?
Holdings, weights, and allocations across model-portfolio households, and client records from the Redtail CRM, the firm's system of record.
For the risk indicator, a wide set of macro indicators across the domains it watches: recession and labor signals, energy and oil, monetary policy, and the equity market.
On the wealth-management side, I built the monthly analytics stack: portfolio-weight and drift monitoring across model-portfolio households, trade-rebalancing reports, monthly performance attribution, and the model-portfolio fact sheets and holdings summaries advisors take into client meetings. I wired the Redtail CRM API into a parameterized report pipeline so client-specific content (holdings, allocations, review-meeting talking points) is populated from the system of record.
On the risk side, I maintained the firm's diffusion-index risk indicator and reverse-engineered it from a manual Excel workbook into an automated R script. I tracked down every underlying value, computed the summary statistics that put each series on its common scale, and recomputed the blended signal on a repeatable run.
Attribution and rebalancing reports come out on a fixed monthly cadence as a pipeline rather than a manual spreadsheet run, and meeting prep is a data pull rather than a manual assembly step.
The monthly recompute of the risk indicator went from a spreadsheet grind to a repeatable run. When the composite runs too hot or too cold, that is the firm's cue to take risk down or add it back across its managed accounts.
The fact sheets, allocation summaries, and holdings reports come from the same data source as the attribution, so the numbers reconcile across surfaces. The monthly research releases reproduce from the same run rather than being rebuilt by hand, and I proof each finished document.
Client artifacts stay with the client, and the firm is anonymized here. On the research side my role was production rather than authorship: the principals wrote the commentary, and I sourced the data, turned useful topics into charts, kept the standing charts current across releases, proofed the finished document, and handled distribution to the firm's network of financial-advisor subscribers.
Because client artifacts stay with the client, the section below is a worked example built for this site, in the same family of operating analytics an RIA runs: an advisory fee billing reconciliation on a fully synthetic book that recomputes every account-month against the fee schedule, classifies each billing break by cause, and regenerates from a fixed seed so anyone can rerun it. It is illustrative, with no real firm, account, or figure in it.
A diffusion index rolls many underlying signals into one 0-100 breadth measure: up near 100 most components are constructive, below 50 the balance has turned risk-off. Below is the shape of the automated version I rebuilt from a manual spreadsheet into a reproducible R pipeline. Everything here is illustrative synthetic data on a generic timeline, not client data or a live signal.
This describes a client's internal process and synthetic illustrations. It is not investment advice.
One way to show the operating side of analytics work like this is to run a piece of it end to end on a book I can publish. Below is an advisory fee billing reconciliation on a synthetic RIA book: the fees a custodian actually billed, checked against the fees the schedule says were due, with every break classified by cause. It is the same detective-control discipline as the compliance decade, pointed at a billing feed instead of a trade blotter.
Everything here is synthetic. The whole book is generated from a fixed seed, so anyone can rerun it and get the same numbers, and there is no client, no real firm, and no real dollar figure anywhere on the page.
Synthetic data. Seeded generator, no client, no real firm. A synthetic 2025 calendar year of 40 accounts across 12 months.
The unit is the account-month: one row per account per month, carrying that month's average assets under management and the client cash flows in it. Advisory fees run off a three-band breakpoint schedule, where the whole balance is billed at the annual rate for the band it falls in. That kind of schedule has a jump at each boundary, which is what makes a boundary applied on the wrong side a real, material error rather than a rounding quibble.
| Band | Average AUM | Annual rate |
|---|---|---|
| Band A (under $1M) | under $1,000,000 | 1.00% |
| Band B ($1M to $3M) | $1,000,000 to under $3,000,000 | 0.75% |
| Band C ($3M and up) | $3,000,000 and up | 0.50% |
Every account-month where the billed fee did not tie out to the recomputed fee, largest first. Variance is billed minus computed: positive is an overbill to refund, negative an underbill to invoice.
| Account | Month | Average AUM | Computed fee | Billed fee | Variance | Cause |
|---|---|---|---|---|---|---|
| A23 | Sep 2025 | $2,463,890 | $1,539.93 | $0.00 | -$1,539.93 | Missing statement |
| A12 | Jun 2025 | $3,529,974 | $1,470.82 | $2,941.64 | +$1,470.82 | Duplicate row |
| A05 | Aug 2025 | $724,367 | $603.64 | $270.31 | -$333.33 | Late flow, wrong period |
| A07 | Apr 2025 | $365,536 | $304.61 | $0.00 | -$304.61 | Missing statement |
| A31 | Nov 2025 | $1,000,000 | $625.00 | $833.33 | +$208.33 | Tier boundary misapplied |
The four figures the report stands on, defined so the reader is not guessing what a number means.
| Metric | Definition | Formula |
|---|---|---|
| Net flows | Client deposits less withdrawals in the period, before any market movement. | deposits - withdrawals |
| Average AUM | The account's average assets under management over the month, the basis the advisory fee is billed on. | mean(daily account balance over the month) |
| Fee yield | Annualized advisory fees as a share of average assets, the effective rate the book actually pays. | annual fees / average AUM |
| Exception rate | The share of account-months where the billed fee did not tie out to the recomputed fee. | exception account-months / total account-months |
The whole book, the planted defects, and this reconciliation regenerate from one command against a fixed seed, so the output is byte-for-byte reproducible and a test locks the totals and every classified break. On a real engagement the same shape would point at the live custodian feed instead of a seeded generator, run on the monthly billing cadence, and route each exception to an owner with a refund or an invoice attached.
The written walkthrough, with the cliff-versus-graduated fee schedule chart: reconciling advisory fee billing, end to end.
The parts worth pointing at
Where the engineering decisions actually mattered.
Client-branded artifacts stay with the client; happy to walk through the architecture of the attribution pipeline, the Redtail integration, or the way the monthly index publications are produced.