What Is FRTB? Trading Book, Expected Shortfall & the Math
FRTB is Basel's rewrite of trading-book capital. See the boundary, the standardized math, expected shortfall, and why the U.S. rule is still not final.
Notes on building apps, teaching what we learn, and the tools we use along the way.
FRTB is Basel's rewrite of trading-book capital. See the boundary, the standardized math, expected shortfall, and why the U.S. rule is still not final.
A stress test asks whether capital survives a severe but plausible downturn. See the start-earn-burn math, the stress capital buffer, and reverse tests.
Part 3 of a PySpark series: query DataFrames with Spark SQL temp views, match the DataFrame results, and save a managed Delta summary with mode error.
Part 1 of a PySpark series on Databricks Free Edition: shape data with select, filter and withColumn, sort with a tiebreaker, and count nulls before cleaning.
Join and aggregate data with PySpark on Databricks: check lookup keys, choose inner or left joins, see how duplicate keys inflate totals, and reconcile results.
Part 2 of a Databricks SQL Editor series: GROUP BY and HAVING, inner vs left joins, common table expressions, and window functions for ranks and running totals.
Databricks Data Engineer Associate exam prep: how COPY INTO loads only new files, why reruns insert zero rows, format vs copy options, and when Auto Loader wins.
Databricks Data Engineer Associate exam prep, Section 2: compare batch, incremental and streaming ingestion with Auto Loader, and Lakeflow Connect connectors.
Databricks Data Engineer Associate exam prep, Section 1: control and compute planes, Unity Catalog, managed Delta tables, and picking compute by workload and cost.
Create a managed Delta table on Databricks Free Edition, read it with SQL and PySpark, update a row, and time travel to the version before the update.
Liquidity risk is whether you can pay cash today. See how fast a deposit run can move, the LCR and NSFR, and why backup lines must be pledged and tested.
Basel capital is a loss cushion sized to risk. Learn CET1, risk-weighted assets, the minimums plus the buffer, and where the 2026 U.S. proposals stand.
Value at Risk, or VaR, is the loss line on a normal bad day. Learn the math, how limit breaches differ from backtesting exceptions, and what VaR misses.
Part 2 of a PySpark series on Databricks: aggregate with groupBy, reconcile rollups to a known total, and rank and accumulate rows with window functions.
Clean data with PySpark on Databricks Free Edition: select columns, filter invalid rows, handle nulls on purpose, and save a Delta table that never overwrites.
Databricks SQL Editor Part 3: save tables with CREATE TABLE AS SELECT, validate a summary table, build a bar chart, and find work in query history.
Part 1 of a Databricks SQL Editor series: run SELECT, WHERE, ORDER BY and CASE on a serverless SQL warehouse, and learn the null rules that trip people up.
Use Databricks Auto Loader with a checkpoint and availableNow to load only new files into a bronze Delta table, rescue bad values, and prove reruns add nothing.
CVA is the discount for a trading partner's possible default. See how spread moves create real losses with no defaults, and what Basel and U.S. rules require.
No posts yet — check back soon.