Blog

21 articles

Projects & analysis

CreditGraph: Topological Credit Risk with Neo4j, PySpark, and LightGBM

Traditional credit analysis treats each loan as independent, but guarantee chains, circular guarantees, and ownership concentration create correlated exposure that relational models cannot express. This project models a 500-client portfolio as a Neo4j knowledge graph, processed with PySpark on Databricks and scored with calibrated LightGBM, to surface structural risk patterns that SQL keeps hidden.

Read more
Projects & analysis

Actuarial Regulation Assistant: Why RAG Is the Right Approach for LISF and CUSF

Interpreting LISF and CUSF means navigating articles that cross-reference each other across laws, and a Ctrl+F can't tell the article defining technical reserves from one that mentions them in passing. AI makes it possible to absorb that entire volume without losing a single detail. This agent uses RAG to index every article individually with a cross-reference graph, eliminating citation hallucinations and ensuring the model only reasons over real legal text. The result is an assistant that amplifies the actuary's memory without replacing their judgment.

Read more
Projects & analysis

Mexican Actuarial Suite: four insurance lines in one Python library

The operating cycle of a Mexican insurer is fragmented across spreadsheets that don't talk to each other. This library unifies pricing, reserves, reinsurance, and regulatory compliance for life, property, health, and pensions under a single framework with Pydantic domain validation and Decimal precision. The result is a modular base that enables building more complex actuarial systems without rewriting core logic from scratch.

Read more
Projects & analysis

Why an Actuary Builds Data Platforms (and How to Do It for $10 a Month)

6 GCP projects that demonstrate how data engineering transforms actuarial work. Built a dimensional claims warehouse in BigQuery, orchestration with Dagster and Cloud Run, streaming intake with Pub/Sub and Apache Beam, infrastructure as code with Terraform, and pricing with Tweedie GLM. The entire platform runs for under $10/month; conventional architectures cost $1,000+.

Read more
Projects & analysis

IMSS Pension Simulator: Ley 73, Ley 97, and Fondo Bienestar in One Tool

An R Shiny app that calculates Mexican retirement pensions under all three active IMSS regimes. Implements the Article 167 salary bracket table for Ley 73, the tiered DOF 2020 reform contribution rates for Ley 97, and the Fondo de Pensiones para el Bienestar supplement (2024). Includes AFORE projection under three return scenarios, sensitivity analysis, and downloadable PDF report. 126 unit tests, Docker and Cloud Run deployment.

Read more
Projects & analysis

SIMA: From Raw INEGI Data to Solvency Capital Requirements Under Mexican LISF, End-to-End

SIMA centralizes actuarial techniques for pricing life insurance: it takes raw mortality data from INEGI/CONAPO, graduates it with methods like Whittaker-Henderson and Lee-Carter to obtain curves that respect human biology, and projects forward to calculate premiums, reserves, and capital requirements under LISF. Everything exposed as an API, allowing it to connect with other systems, automate sensitivity analysis, and meet CNSF requirements. Open source and built to expand into other lines of business.

Read more
Projects & analysis

Data Analyst Portfolio: 7 End-to-End Projects

From business question to actionable insight. 7 data analysis projects covering e-commerce, insurance, finance, A/B testing, executive KPIs, and operational efficiency. SQL, Python, Streamlit, Next.js, and Power BI.

Read more
Tools

Interactive Math Visualizations

Interactive demonstrations of fundamental calculus concepts: the sin(x)/x limit, derivative of sine, and Euler's formula. With manipulable SVG visualizations.

Read more