CODING CHALLENGES

代码题库

用接近 LeetCode 的题表进入训练:先筛选题目,再进入双栏题面和编辑器。每道题只展示它实际声明支持的语言。

继续刷题

题目列表

显示 94 / 646 道可提交题。 当前筛选:标签:Risk,权限:免费,语言:Python

提交状态:未尝试未正确已正确
未尝试
coding-basel-output-floor-phase-in-schedule可练习
Basel III 产出底线:分阶段过渡期资本要求向量

Basel III Output Floor — Capital Requirement Across Phase-In Schedule

中等免费版Python / C++ / Rust
未尝试
coding-basel-var-traffic-light-zone-and-multiplier可练习
Basel VaR 回溯检验:红绿灯分区与资本乘子加成

Basel VaR Backtest — Traffic-Light Zone and Capital Multiplier Add-On

中等免费版Python / C++ / Rust
未尝试
coding-bilateral-cva-and-dva可练习
独立性假设下的双边 CVA 与 DVA:两条折现时间剖面求和

Bilateral CVA and DVA Under Independence: Two Discounted Time-Profile Sums

中等免费版Python / C++ / Rust
未尝试
coding-budgeted-whole-share-portfolio可练习
整股预算下的最大期望收益组合

Budgeted Whole-Share Portfolio

中等免费版Python / C++ / Rust
未尝试
coding-capital-conservation-buffer-mda-factor可练习
资本留存缓冲:MDA 因子四分位表

Capital Conservation Buffer: MDA Factor Quartile Schedule

中等免费版Python / C++ / Rust
未尝试
coding-cds-curve-flat-hazard-survival-curve可练习
由 CDS 利差期限结构构造逐期限扁平 hazard 存活曲线

Per-Tenor Flat-Hazard Survival Curve from a CDS Spread Term Structure

中等免费版Python / C++ / Rust
未尝试
coding-cds-implied-flat-hazard-cumulative-pd可练习
由 CDS 利差反推累计违约概率:信用三角近似

CDS-Implied Cumulative Default Probability via the Credit-Triangle Approximation

中等免费版Python / C++ / Rust
未尝试
coding-cds-par-spread-from-cumulative-pd可练习
由累计违约概率反推平价 CDS 利差:信用三角反向

Par CDS Spread Implied by a Cumulative Default Probability via the Inverse Credit Triangle

中等免费版Python / C++ / Rust
未尝试
coding-cds-upfront-fee-from-par-and-standard-coupon可练习
由平价利差、标准 coupon 与 risky PV01 计算 CDS upfront 费

CDS Upfront Fee from Par Spread, Standard Coupon, and Risky PV01

中等免费版Python / C++ / Rust
未尝试
coding-christoffersen-conditional-coverage-lr-cc可练习
Christoffersen 条件覆盖性 LR_cc 联合统计量:VaR 回溯检验

Christoffersen Conditional Coverage LR_cc Joint Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-christoffersen-independence-lr-test可练习
Christoffersen LR_ind 独立性统计量:VaR 回溯检验

Christoffersen LR_ind Independence Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-cluster-correlated-tickers可练习
强相关标的聚类

Cluster Correlated Tickers

中等免费版Python / C++ / Rust
未尝试
coding-conditional-scenario-tree-pnl-aggregation可练习
条件情景树的概率加权 PnL 聚合

Conditional Scenario-Tree Probability-Weighted PnL Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-correlation-cluster-count可练习
因子聚簇计数:阈值化相关性图的连通分量数

Factor Cluster Count: Connected Components on a Thresholded Correlation Graph

中等免费版Python / C++ / Rust
未尝试
coding-credit-el-stress-pd-lgd-shocks可练习
信用预期损失:PD 与 LGD 乘性冲击下的压力测试

Credit Expected Loss under Multiplicative PD and LGD Stress Shocks

中等免费版Python / C++ / Rust
未尝试
coding-credit-portfolio-hhi-and-effective-n可练习
信贷组合集中度:由对手方 EAD 计算 HHI 与有效对手方数

Credit Portfolio Concentration: HHI and Effective Number of Counterparties from Per-Obligor EAD

中等免费版Python / C++ / Rust
未尝试
coding-cross-gamma-2d-shock-grid-pnl可练习
Cross-Gamma 2D Shock-Grid PnL via Bilinear-Quadratic Taylor

Cross-Gamma 2D Shock-Grid PnL via Bilinear-Quadratic Taylor

中等免费版Python / C++ / Rust
未尝试
coding-cumret-drawdown-flagged-indices可练习
累计 PnL 回撤告警:超过阈值的水下时刻下标

Cumulative PnL Drawdown Alert: Sorted Indices Underwater Beyond Threshold

中等免费版Python / C++ / Rust
未尝试
coding-cumulative-default-prob-from-marginal-hazard-rates可练习
从边际违约概率构造累计违约概率:期限结构合成

Cumulative Default Probability from Marginal Hazard Rates: Term-Structure Composition

中等免费版Python / C++ / Rust
未尝试
coding-default-correlation-from-bivariate-normal-cdf可练习
由一因子高斯 Copula 的二元正态 CDF 计算两户违约相关系数

Pairwise Default Correlation from One-Factor Gaussian-Copula Bivariate-CDF Inputs

中等免费版Python / C++ / Rust
未尝试
coding-diebold-mariano-pinball-comparison可练习
基于 Pinball 损失差分的 Diebold-Mariano 两 VaR 预测对比检验

Diebold-Mariano Test for Two VaR Forecasts via Pinball-Loss Differential

中等免费版Python / C++ / Rust
未尝试
coding-effective-maturity-for-irb-credit可练习
用作 IRB 信用 RWA 输入的现值加权有效期限 M

PV-Weighted Effective Maturity M for IRB Credit RWA Input

中等免费版Python / C++ / Rust
未尝试
coding-effective-number-of-independent-obligors-from-correlation可练习
基于均匀两两违约相关性的有效独立债务人数

Effective Number of Independent Obligors from Uniform Pairwise Default Correlation

中等免费版Python / C++ / Rust
未尝试
coding-empirical-cdf-loss-tail可练习
在固定 PnL 阈值处的经验 CDF 尾部概率

Empirical CDF Tail Probability at a Fixed PnL Threshold

中等免费版Python / C++ / Rust
未尝试
coding-enumerate-hedge-decompositions可练习
对冲分解组合枚举

Enumerate Hedge Decompositions

中等免费版Python / C++ / Rust
未尝试
coding-es-exceedance-ratio-backtest可练习
Expected Shortfall 校准回溯:超额日比率检验

Expected Shortfall Calibration Backtest via Exceedance-Day Ratio

中等免费版Python / C++ / Rust
未尝试
coding-ewma-volatility-forecast-riskmetrics可练习
RiskMetrics EWMA 波动率预测

RiskMetrics EWMA Volatility Forecast

中等免费版Python / C++ / Rust
未尝试
coding-ewma-weighted-historical-var可练习
EWMA 加权历史 VaR

EWMA-Weighted Historical VaR

中等免费版Python / C++ / Rust
未尝试
coding-expected-rwa-after-rating-migration可练习
评级迁移 H 步后的组合期望 RWA

Expected Portfolio RWA After H Rating-Migration Steps

中等免费版Python / C++ / Rust
未尝试
coding-filtered-historical-simulation-var可练习
过滤历史模拟 VaR

Filtered Historical Simulation VaR

中等免费版Python / C++ / Rust
未尝试
coding-first-day-cumulative-pnl-crosses-threshold可练习
累计 PnL 首次突破阈值的交易日

First Day Cumulative PnL Crosses Threshold

简单免费版Python / C++ / Rust
未尝试
coding-garch-1-1-multistep-variance-forecast可练习
GARCH(1,1) 多期方差预测

GARCH(1,1) Multi-Step Variance Forecast

中等免费版Python / C++ / Rust
未尝试
coding-gsib-systemic-importance-score可练习
G-SIB 系统重要性评分与可替代性上限

G-SIB Systemic-Importance Score with Substitutability Cap

中等免费版Python / C++ / Rust
未尝试
coding-historical-es-multi-alpha可练习
多置信度历史 ES 一次性计算

Historical Expected Shortfall at Multiple Confidence Levels

中等免费版Python / C++ / Rust
未尝试
coding-historical-expected-shortfall可练习
历史期望损失

Historical Expected Shortfall

中等免费版Python / C++ / Rust
未尝试
coding-historical-scenario-replay-worst-k可练习
历史情景回放:滚动窗口最劣 K 条累计 PnL

Historical Scenario Replay: Worst-K Rolling-Window PnLs

中等免费版Python / C++ / Rust
未尝试
coding-historical-var-multi-alpha可练习
多置信度历史 VaR 一次性计算

Historical VaR at Multiple Confidence Levels

中等免费版Python / C++ / Rust
未尝试
coding-incremental-largest-component-size可练习
增量最大聚簇规模:因子对边事件流上的流式并查集

Incremental Largest Cluster Size: Streaming Union-Find on a Factor-Pair Edge Tape

中等免费版Python / C++ / Rust
未尝试
coding-kupiec-pof-likelihood-ratio可练习
Kupiec POF 似然比统计量:VaR 回溯检验

Kupiec POF Likelihood-Ratio Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-largest-correlation-cluster-size可练习
最大因子聚簇规模:阈值化相关性图的最大连通分量大小

Largest Factor Cluster Size: Maximum Connected Component on a Thresholded Correlation Graph

中等免费版Python / C++ / Rust
未尝试
coding-leverage-ratio-with-ccf可练习
Basel III 杠杆率:表外项的信用转换系数(CCF)合计

Basel III Leverage Ratio: Credit Conversion Factors over Off-Balance Items

中等免费版Python / C++ / Rust
未尝试
coding-lgd-beta-distribution-method-of-moments可练习
基于矩匹配的违约损失率(LGD)Beta 分布校准

LGD Beta-Distribution Calibration via Method of Moments

中等免费版Python / C++ / Rust
未尝试
coding-lgd-from-collateral-recovery-waterfall可练习
基于抵押—无担保瀑布的违约损失率(LGD)

LGD via Collateral-Then-Unsecured Recovery Waterfall

中等免费版Python / C++ / Rust
未尝试
coding-lifetime-el-with-survival-weighting可练习
含存活加权与逐期 LGD/EAD 剖面的生命期期望损失

Lifetime Expected Loss with Survival Weighting and Per-Period LGD/EAD

中等免费版Python / C++ / Rust
未尝试
coding-liquidity-coverage-ratio-aggregation可练习
流动性覆盖率:HQLA、流入上限与净流出地板

Liquidity Coverage Ratio: HQLA, Inflow Cap, and Net-Outflow Floor

中等免费版Python / C++ / Rust
未尝试
coding-lopez-magnitude-loss-function-var-backtest可练习
Lopez I 量级损失函数:VaR 回溯检验

Lopez I Magnitude Loss Function for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-marginal-pd-from-cumulative-term-structure可练习
由累计违约概率反推期边际违约概率:逆向 bootstrap

Marginal Default Probability from a Cumulative-PD Term Structure: Inverse Bootstrap

中等免费版Python / C++ / Rust
未尝试
coding-max-profit-bounded-drawdown可练习
限定回撤下的最优持仓收益

Maximum Profit Over Bounded-Drawdown Window

困难免费版Python / C++ / Rust
未尝试
coding-max-reward-disjoint-resource-bitmask-subset可练习
在风险桶预算位掩码下的非交叠对冲合约最大收益选择

Disjoint Risk-Bucket Hedge Selection under a Bucket-Budget Bitmask

中等免费版Python / C++ / Rust
未尝试
coding-maximum-concurrent-trades可练习
最大同时在仓交易数

Maximum Concurrent Trades

中等免费版Python / C++ / Rust
未尝试
coding-mean-excess-over-threshold-grid可练习
阈值网格上的均值超额曲线

Mean-Excess Curve Across a Threshold Grid

中等免费版Python / C++ / Rust
未尝试
coding-min-cancels-quote-stability可练习
最少撤单次数维持报价稳定

Min Cancels for Quote Stability

中等免费版Python / C++ / Rust
未尝试
coding-min-flatten-resets-keep-position-in-band可练习
仓位区间治理:保持净仓在 [-L, +L] 内所需的最少日终归零次数

Position-Band Governance: Minimum Flatten-Resets to Stay Inside [-L, +L]

中等免费版Python / C++ / Rust
未尝试
coding-min-hops-to-core-factor-set可练习
到核心因子集合的最少跳数:因子相似图上的多源 BFS

Min Hops to Core Factor Set: Multi-Source BFS on a Factor-Similarity Graph

中等免费版Python / C++ / Rust
未尝试
coding-min-max-drawdown-root-to-leaf-path可练习
情景树上根到叶路径中最小的最大回撤

Minimum Max-Drawdown Across Root-to-Leaf Paths

中等免费版Python / C++ / Rust
未尝试
coding-min-replenishments-to-avoid-stockout可练习
最少补货次数避免缺货

Min Replenishments to Avoid Stockout

困难免费版Python / C++ / Rust
未尝试
coding-mincer-zarnowitz-var-forecast-regression可练习
Mincer-Zarnowitz OLS Regression for VaR-Forecast Unbiasedness

Mincer-Zarnowitz OLS Regression for VaR-Forecast Unbiasedness

中等免费版Python / C++ / Rust
未尝试
coding-multi-horizon-gaussian-var-scaling可练习
多期高斯 VaR 缩放

Multi-Horizon Gaussian VaR Scaling

中等免费版Python / C++ / Rust
未尝试
coding-multifactor-scenario-pnl-vector可练习
多因子情景 PnL 向量:一阶 Taylor 估值

Multi-Factor Scenario PnL Vector via Linear Taylor

中等免费版Python / C++ / Rust
未尝试
coding-net-position-from-trade-events可练习
由原始成交流水计算日终净头寸

End-of-Day Net Positions from a Raw Trade Tape

中等免费版Python / C++ / Rust
未尝试
coding-net-stable-funding-ratio-aggregation可练习
净稳定资金比例:ASF 比 RSF 聚合

Net Stable Funding Ratio: ASF over RSF Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-pairwise-rating-transition-prob-at-horizon可练习
评级对到对在 H 期的转移概率:Markov 链 M^H 的单元素

Pairwise Rating-Transition Probability at Horizon: Single Entry of Markov Chain M^H

中等免费版Python / C++ / Rust
未尝试
coding-partition-orders-basis-mismatch可练习
拆单两腿对冲:最小化基差错配

Partition Orders to Minimize Basis Mismatch

中等免费版Python / C++ / Rust
未尝试
coding-peak-inventory-day-after-batch-trades可练习
批量区间增量交易后的峰值库存日

Peak Inventory Day After Batched Range-Update Trades

简单免费版Python / C++ / Rust
未尝试
coding-piecewise-flat-hazard-survival-at-horizons可练习
分段扁平 hazard 期限结构下多视野存活概率

Survival Probability at Multiple Horizons under a Piecewise-Flat Hazard Term Structure

中等免费版Python / C++ / Rust
未尝试
coding-pinball-loss-var-quantile-backtest可练习
VaR 预测回溯检验:Pinball(分位)损失评分

Pinball (Quantile) Loss for VaR Forecast Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-pit-standardized-var-forecast-residual可练习
标准化 VaR 预测残差流:先去均值再除以波动率

Standardized VaR-Forecast Residual Stream — De-Mean Then Divide By Vol

中等免费版Python / C++ / Rust
未尝试
coding-portfolio-expected-loss-by-bucket可练习
组合预期损失分桶聚合:PD x LGD x EAD 瀑布

Portfolio Expected Loss by Bucket: PD x LGD x EAD Waterfall

中等免费版Python / C++ / Rust
未尝试
coding-position-fingerprint-grouping可练习
组合持仓指纹聚类

Position Fingerprint Grouping

中等免费版Python / C++ / Rust
未尝试
coding-pv-of-post-default-recovery-stream可练习
Present Value of a Post-Default Recovery Cash-Flow Stream

Present Value of a Post-Default Recovery Cash-Flow Stream

中等免费版Python / C++ / Rust
未尝试
coding-quadratic-taylor-scenario-pnl-vector可练习
二阶情景 PnL 向量:delta 加 gamma 的 Taylor 估值

Quadratic-Taylor Scenario PnL Vector via Delta and Gamma

中等免费版Python / C++ / Rust
未尝试
coding-rank-strategies-by-sharpe可练习
按夏普比率排序策略(波动率作为次序)

Rank Strategies by Sharpe with Vol Tiebreak

中等免费版Python / C++ / Rust
未尝试
coding-rating-transition-multistep-distribution可练习
多步评级分布传播:Markov 转移矩阵前推 H 步

Multi-Step Rating Distribution Propagation: Markov Transition Forward H Steps

中等免费版Python / C++ / Rust
未尝试
coding-regime-conditional-expected-shortfall可练习
分制度条件历史期望损失

Regime-Conditional Historical Expected Shortfall

中等免费版Python / C++ / Rust
未尝试
coding-regime-conditional-historical-var可练习
分制度条件历史 VaR

Regime-Conditional Historical VaR

中等免费版Python / C++ / Rust
未尝试
coding-reverse-stress-test-flag-loss-scenarios可练习
反向压力测试:标记触及亏损阈值的情景

Reverse Stress Test — Flag Scenarios That Hit a Loss Target

中等免费版Python / C++ / Rust
未尝试
coding-saccr-ead-with-collateral-and-pfe可练习
SA-CCR 交易对手 EAD:抵押品折减后 RC 加跨资产类别 PFE 乘 Alpha

SA-CCR Counterparty EAD: Collateral-Adjusted RC plus Aggregated PFE with Alpha

中等免费版Python / C++ / Rust
未尝试
coding-single-name-concentration-limit-flagging可练习
单一交易对手集中度:标出突破 Basel 大额风险暴露限额的对手方

Single-Name Concentration: Flag Counterparties Breaching the Basel Large-Exposure Limit

中等免费版Python / C++ / Rust
未尝试
coding-smallest-position-meeting-risk-budget可练习
首次触及风险预算的最小持仓数量

Smallest Position Size Meeting Risk Budget

中等免费版Python / C++ / Rust
未尝试
coding-stress-impact-on-cet1-ratio可练习
压力测试对 CET1 充足率的影响:压测后比率与对基准的变动

Stress Impact on CET1 Ratio: Stressed Ratio and Change-from-Baseline

中等免费版Python / C++ / Rust
未尝试
coding-stressed-es-worst-rolling-window可练习
压力 ES — 最差滚动窗口历史 ES

Stressed Expected Shortfall — Worst Rolling-Window Historical ES

中等免费版Python / C++ / Rust
未尝试
coding-stressed-var-worst-rolling-window可练习
压力 VaR — 最差滚动窗口历史 VaR

Stressed VaR — Worst Rolling-Window Historical VaR

中等免费版Python / C++ / Rust
未尝试
coding-survival-weighted-ee-profile-for-cva可练习
用于 CVA 聚合的存活加权期望敞口剖面

Survival-Weighted Expected-Exposure Profile for CVA Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-through-the-cycle-pd-from-pit-series可练习
由 PIT 序列估计跨周期 PD:存活率的几何平均

Through-the-Cycle PD from a Point-in-Time Series: Geometric Mean of Survivals

中等免费版Python / C++ / Rust
未尝试
coding-tier1-capital-ratio-with-deductions可练习
一级资本充足率:CET1 扣减、AT1 加回与 RWA

Tier-1 Capital Ratio: CET1 Deductions, AT1 Add-back, and RWA

中等免费版Python / C++ / Rust
未尝试
coding-tlac-ratio-rwa-and-leverage可练习
FSB TLAC 双比率:TLAC/RWA 与 TLAC/杠杆敞口

FSB TLAC Dual Ratios: TLAC/RWA and TLAC/Leverage-Exposure

中等免费版Python / C++ / Rust
未尝试
coding-unilateral-cva-independence可练习
独立性假设下的单边 CVA:折现时间剖面求和

Unilateral CVA Under PD-EE Independence: Discounted Time-Profile Sum

中等免费版Python / C++ / Rust
未尝试
coding-var-backtest-exceedance-cluster-count可练习
VaR 回溯检验:破口数与最长连续段

VaR Backtest Exceedance Count and Longest Cluster

中等免费版Python / C++ / Rust
未尝试
coding-var-hit-residual-lag1-autocorrelation可练习
VaR 命中残差的 Lag-1 自相关

Lag-1 Autocorrelation of VaR Hit Indicators

中等免费版Python / C++ / Rust
未尝试
coding-vasicek-conditional-pd-given-systematic-factor可练习
在已实现系统因子下的 Vasicek 单因子条件 PD

Vasicek Single-Factor Conditional PD Given a Realized Systematic Factor

中等免费版Python / C++ / Rust
未尝试
coding-vasicek-portfolio-loss-quantile-asrf可练习
在置信度 alpha 下的 Vasicek ASRF 资本因子(Basel IRB)

Vasicek ASRF Capital Factor at Confidence Level Alpha (Basel IRB)

困难免费版Python / C++ / Rust
未尝试
coding-vintage-cohort-period-default-rate可练习
期龄队列每期违约率:贷款 vintage 的条件风险率

Vintage Cohort Per-Period Default Rate: Conditional Hazard from a Loan Vintage

中等免费版Python / C++ / Rust
未尝试
coding-weighted-historical-var-custom-weights可练习
自定义权重历史 VaR

Weighted Historical VaR with Custom Weights

中等免费版Python / C++ / Rust
未尝试
coding-wilson-score-binomial-ci-var-exceedance可练习
VaR 突破率的 Wilson Score 二项置信区间

Wilson Score Binomial CI for VaR Exceedance Rate

中等免费版Python / C++ / Rust