Quantitative Finance 10 min read Updated August 2026

Wrong-Way Risk in CVA: Claude AI Prompts for Derivatives Desks (2026)

Wrong-way risk analysis for CVA desks: specific vs. general WWR, SWWR identification and Basel III treatment, GWWR correlation models and stress multipliers, regulatory FRTB-CVA requirements, and trade structuring to mitigate WWR. Worked Claude AI prompts.

Educational content, not professional advice — AI output and figures here can be wrong. Verify before you rely on it. Full disclaimer →

Wrong-Way Risk: Definition and Why It Matters for CVA

Standard CVA assumes counterparty default probability and trade exposure are independent — the likelihood the counterparty defaults at any given time has no relationship to how much you're owed at that time. Wrong-way risk (WWR) is when this assumption breaks down: exposure and default probability move together. The effect is that standard CVA systematically underestimates the true expected loss from counterparty default. In the 2008 financial crisis, WWR was a major contributor to losses that were far larger than CVA models had predicted — banks had sold credit protection to counterparties whose own credit was correlated with the reference entities they were writing protection on.

Wrong-way risk appears in two structurally distinct forms, each requiring different treatment. Specific wrong-way risk (SWWR) involves a direct contractual link — the exposure itself references the counterparty's credit. A classic example is a put option written by a corporate on its own stock: the option is in the money when the stock falls, which is when the corporate is most likely to default. The correlation is one-to-one by construction. General wrong-way risk (GWWR) is the statistical version — a bank has macro exposure to a sector (e.g., energy derivatives with oil producers) such that the exposure profile and the counterparty's credit both respond to the same underlying factor (oil prices, interest rates, EM sentiment). Claude helps quantify both types and build the regulatory documentation required for FRTB-CVA. See also XVA Explained and XVA Trading Desk AI.

Specific Wrong-Way Risk Identification and Treatment

SWWR requires a counterparty-level scan: any netting set where the exposure is contractually linked to the counterparty's own creditworthiness is a SWWR case. Common examples include credit default swaps (bank sold protection on the counterparty itself), total return swaps on the counterparty's own bonds or equity, structured notes where the counterparty is the reference entity, and repo transactions where the collateral is the counterparty's own debt. For each identified SWWR position, Basel III Annex 4 requires treating the exposure as the notional of the trade, not the expected exposure — effectively assuming the full remaining value is at risk at default.

  • "Specific wrong-way risk identification in a derivatives portfolio: Review the following netting sets and identify which have SWWR under Basel III Annex 4: (1) $50M 5Y CDS where we sold protection on counterparty A to counterparty A itself (structured as a hedged position for a regulatory capital reason); (2) $30M equity total return swap where counterparty B is the reference name and the TRS counterparty; (3) $40M repo where counterparty C has posted its own subordinated bonds as collateral; (4) $25M put option on an emerging market sovereign bond, counterparty is a domestic bank in that sovereign; (5) $20M interest rate swap with a corporate counterparty whose CDS spread is 95% correlated with the underlying rate factor. For each, classify as SWWR, GWWR, or no WWR, and explain the regulatory treatment required."
  • "SWWR capital treatment for a TRS with wrong-way risk: We have a $80M total return swap where we receive the total return on Counterparty X's own listed equity and pay LIBOR+120bps. Counterparty X is the TRS payer — they are paying us their own equity return. SWWR: if X defaults, the equity price has likely fallen significantly, which is exactly when our TRS has high positive value to us (we are long the equity return, the equity has fallen, we are owed the loss recovery). Under Basel III Annex 4 SWWR treatment: EAD must be set to the full notional of $80M rather than the expected exposure profile (which averages $4.2M over the trade life). (1) Calculate the CVA under standard treatment (EAD = $4.2M average, X has CDS spread 120bps, LGD 40%); (2) calculate CVA under SWWR treatment (EAD = $80M); (3) express the SWWR premium as a basis point spread; (4) what mitigants could reduce the SWWR exposure — a cash settlement feature, a capped payout, CDS protection on X itself?"

General Wrong-Way Risk Quantification

GWWR requires modeling the correlation between exposure and default probability. The two main approaches are: (1) parametric correlation models — specify a correlation parameter ρ between the exposure driver (e.g., oil price) and the counterparty's default process, and compute a correlation-adjusted CVA using Monte Carlo simulation of joint scenarios; (2) stress scenarios — identify the historical stress episode most relevant to the counterparty type (EM sovereign stress, energy sector stress, financial sector stress) and compute CVA under that stress, with the ratio of stress CVA to standard CVA being the GWWR multiplier. Most banks use stress scenarios for regulatory documentation and parametric models for internal pricing.

  • "General wrong-way risk quantification for an FX position with an EM sovereign: We have a $60M USD/BRL FX forward — we receive BRL and pay USD, 18 months maturity, currently $2.8M in the money to us. Counterparty is the Brazilian sovereign (CDS: 280bps, LGD 75% for sovereign). GWWR analysis: BRL typically depreciates in EM stress episodes that also widen Brazilian sovereign credit spreads — our exposure (positive USD/BRL forward position) grows exactly when the counterparty is most stressed. (1) Standard CVA assuming no correlation: use expected exposure of $4.5M average, PD from 280bps CDS spread, LGD 75%. (2) GWWR-adjusted CVA using a correlation parameter ρ = 0.6 between BRL depreciation and Brazilian sovereign PD: explain how to construct joint scenarios and compute CVA under correlated exposure-default paths. (3) Stress scenario approach: in 2015 Brazil stress (BRL depreciated 30%, sovereign spreads widened to 400bps), what would the CVA have been? (4) Express the GWWR uplift as a multiple of standard CVA and as a running bps spread."
  • "GWWR portfolio scan for an energy sector derivatives book: We have 18 energy sector counterparties in our derivatives book — oil producers, pipelines, and utilities. Total net positive exposure (MTM basis, positive to us): $340M. We want to identify which counterparties have significant general wrong-way risk. Design a GWWR screening framework: (1) what market factor best captures the GWWR for each sub-sector (oil price for E&P, power price for utilities, credit spread level for pipelines), (2) what statistical test identifies significant GWWR — rolling correlation between counterparty CDS spread changes and exposure changes over a 2-year window, or a rank correlation approach, (3) for counterparties where |ρ| > 0.30, what CVA uplift should we apply — map from correlation to CVA multiplier using a simplified Gaussian copula model, (4) what is the total GWWR-adjusted CVA across the energy book vs. the standard uncorrelated estimate?"

Regulatory Requirements and FRTB-CVA

The Basel regulatory treatment of wrong-way risk evolved between Basel III and Basel IV (FRTB-CVA). Basel III Annex 4 (paragraphs 96-99) established the baseline: banks must identify SWWR positions and apply specific EAD treatment; banks must stress test for GWWR and assess its impact on CVA. FRTB-CVA incorporated WWR differently: since SA-CVA is based on CVA sensitivities, banks that accurately model the CVA with exposure-credit correlation will automatically have their sensitivity-based capital reflect the higher CVA caused by WWR. This makes the CVA calculation methodology more important than a separate WWR add-on — banks must demonstrate to their supervisory authority that their regulatory CVA captures WWR adequately.

  • "FRTB-CVA WWR documentation for supervisory review: Prepare an overview of how our institution captures wrong-way risk in the FRTB-CVA framework for a UK PRA review. We use SA-CVA with regulatory CVA calculated using the FRTB formula. Key questions from regulators: (1) how does our regulatory CVA calculation incorporate the correlation between expected exposure and counterparty default probability — does the EEPE proxy under FRTB implicitly capture WWR or not, (2) what percentage of our CVA book has identified SWWR positions — list the product types, (3) how do we stress test for GWWR across macro scenarios — the 2008 financial crisis analogue, the 2022 rate shock, the 2020 COVID stress, (4) what are our largest GWWR exposures by counterparty sector, and what GWWR CVA uplifts do we apply, (5) how often do we review and update GWWR assessments — what triggers a reassessment?"

Wrong-Way Risk Mitigation in Trade Structuring

For new trades where GWWR or SWWR is identified at the pricing stage, the front office has several structural options to reduce the WWR exposure and lower the CVA charge. The most effective is a direct contractual break between the exposure driver and the counterparty's credit — adding a barrier or cap that prevents the exposure from growing beyond a fixed level regardless of market moves. For FX positions with EM sovereign counterparties, a knock-out feature at a specified spot level effectively caps the CVA-relevant exposure. For commodity producers, a cap on the swap notional payable in stress prevents the worst WWR outcome.

  • "Trade restructuring to reduce specific wrong-way risk: We are pricing a $40M 5Y oil price swap where we receive fixed oil price and pay spot, with an oil producer counterparty (CDS 180bps, GWWR correlation ≈ 0.55 with oil price). Standard CVA is $320K. GWWR-adjusted CVA is $680K — a $360K uplift the client is being asked to absorb through a higher fixed price on the swap. The client is unwilling to pay the GWWR premium. Evaluate the following structural alternatives: (1) add an automatic termination trigger at oil price < $50/bbl — what does this do to the exposure profile and CVA, (2) add a cap on maximum payout: client pays at most $8M regardless of how far oil falls — capped CVA calculation, (3) structure as a partial collar instead of a swap — client buys a put, sells a call, reducing GWWR because the long put position reduces correlation between exposure and default, (4) move to CME clearing if the counterparty qualifies — how does CCP clearing change the WWR calculation and CVA treatment?"
Using Claude at your firm?

Connect Claude to live financial data via MCP — EDGAR, FDIC, BIS, CME and 18 more.

New guides & tools — free

Get notified when we add new MCP servers, finance AI guides, and eval results.

Try These Skills

Browse all Quant Finance tools →
FEEDBACK