CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 74 / 646 道可提交题。 当前筛选:标签:Risk Quant,权限:订阅

提交状态:未尝试未正确已正确
未尝试
coding-asset-beta-to-benchmark-portfolio订阅锁定
资产对基准组合的逐资产 Beta

Per-Asset Beta to a Benchmark Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-basel-rwa-irb-formula订阅锁定
Basel IRB Risk-Weighted Asset for a Corporate Exposure

Basel IRB Risk-Weighted Asset for a Corporate Exposure

中等面试准备Python / C++ / Rust
未尝试
coding-basel-traffic-light-zones订阅锁定
Basel VaR Backtest Traffic-Light Zones

Basel VaR Backtest Traffic-Light Zones

简单面试准备Python / C++ / Rust
未尝试
coding-binomial-credit-loss-var-uniform-pd订阅锁定
同质化组合(均匀 PD)信用损失 VaR 的解析二项法

Analytical Binomial Credit-Loss VaR for a Uniform-PD Homogeneous Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-brinson-attribution-three-effects订阅锁定
Brinson-Hood-Beebower 三效应归因

Brinson-Hood-Beebower Three-Effect Attribution

中等面试准备Python / C++ / Rust
未尝试
coding-calmar-ratio-annualized-return-over-mdd订阅锁定
Calmar 比率——年化收益与最大回撤

Calmar Ratio — Annualized Return over Maximum Drawdown

中等面试准备Python / C++ / Rust
未尝试
coding-cds-implied-default-prob订阅锁定
由 CDS 价差反推隐含违约概率

Implied Default Probability from a CDS Spread

简单面试准备Python / C++ / Rust
未尝试
coding-choueifaty-diversification-ratio订阅锁定
高斯组合的 Choueifaty 分散化比率

Choueifaty Diversification Ratio of a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-christoffersen-independence-test订阅锁定
Christoffersen 独立性检验(VaR 突破聚集)

Christoffersen Independence Test for VaR Breach Clustering

中等面试准备Python / C++ / Rust
未尝试
coding-clayton-copula-sample订阅锁定
从 Clayton Copula 抽样

Sample from a Clayton Copula

中等面试准备Python / C++ / Rust
未尝试
coding-component-var-decomposition订阅锁定
Component VaR Decomposition (Euler Allocation)

Component VaR Decomposition (Euler Allocation)

中等面试准备Python / C++ / Rust
未尝试
coding-component-var-gaussian-portfolio订阅锁定
高斯组合的分量 VaR 分解

Component VaR Decomposition for a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-compound-poisson-aggregate-variance订阅锁定
操作风险 LDA 周期的复合泊松总损失方差

Compound-Poisson Aggregate-Loss Variance for an Operational-Risk LDA Period

中等面试准备Python / C++ / Rust
未尝试
coding-conditional-drawdown-at-risk订阅锁定
条件回撤风险

Conditional Drawdown at Risk

中等面试准备Python / C++ / Rust
未尝试
coding-copula-tail-dependence订阅锁定
经验 Copula 尾依赖系数

Empirical Copula Tail-Dependence Coefficients

中等面试准备Python / C++ / Rust
未尝试
coding-cornish-fisher-var订阅锁定
Cornish-Fisher VaR

Cornish-Fisher VaR

中等面试准备Python / C++ / Rust
未尝试
coding-cornish-fisher-var-skew-kurtosis订阅锁定
Cornish-Fisher 偏度与超额峰度修正 VaR

Cornish-Fisher VaR Adjusted for Skewness and Excess Kurtosis

中等面试准备Python / C++ / Rust
未尝试
coding-correlated-portfolio-var-from-standalone-vars订阅锁定
由分桌台 VaR 与损失相关矩阵聚合多桌台组合 VaR

Aggregate Multi-Desk VaR from Standalone VaRs and a Loss-Correlation Matrix

中等面试准备Python / C++ / Rust
未尝试
coding-correlated-shock-mc订阅锁定
相关因子冲击蒙特卡洛(压力 P&L)

Correlated Factor-Shock Monte-Carlo for Stress P&L

中等面试准备Python / C++ / Rust
未尝试
coding-credit-portfolio-expected-loss订阅锁定
Credit Portfolio Expected Loss and Naive Unexpected Loss

Credit Portfolio Expected Loss and Naive Unexpected Loss

简单面试准备Python / C++ / Rust
未尝试
coding-credit-portfolio-mc-loss-distribution订阅锁定
Credit Portfolio MC Loss Distribution (Single-Factor Gaussian Copula)

Credit Portfolio MC Loss Distribution (Single-Factor Gaussian Copula)

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-copula-uniform-rank-transform订阅锁定
经验 Copula:按列均匀秩变换

Empirical Copula via Per-Column Uniform Rank Transform

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-mean-excess-function订阅锁定
用于 POT 阈值选择的经验均值超额函数

Empirical Mean Excess Function for POT Threshold Selection

困难面试准备Python / C++ / Rust
未尝试
coding-empirical-upper-tail-dependence订阅锁定
经验上尾相依系数:由二维联合样本估计

Empirical Upper-Tail-Dependence Coefficient from Bivariate Samples

困难面试准备Python / C++ / Rust
未尝试
coding-euler-risk-allocation订阅锁定
组合波动率的 Euler 风险分解

Euler Risk Allocation for Portfolio Volatility

中等面试准备Python / C++ / Rust
未尝试
coding-evt-block-maxima-gev-fit订阅锁定
用矩估计把分块极大值拟合到 Gumbel(GEV, ξ=0)子情形

Fit a Gumbel (GEV, ξ=0) to Block Maxima by Method of Moments

中等面试准备Python / C++ / Rust
未尝试
coding-evt-hill-estimator-tail-index订阅锁定
尾部指数的 Hill 估计

Hill Estimator for the Tail Index

中等面试准备Python / C++ / Rust
未尝试
coding-evt-pot-gpd-fit订阅锁定
阈值超额法 (POT) 下的 GPD 矩量法拟合

Peaks-Over-Threshold GPD Fit by Method of Moments

中等面试准备Python / C++ / Rust
未尝试
coding-expected-shortfall-historical订阅锁定
滚动历史 Expected Shortfall (CVaR)

Rolling Historical Expected Shortfall (CVaR)

中等面试准备Python / C++ / Rust
未尝试
coding-factor-risk-attribution订阅锁定
线性因子模型下的逐因子风险归因

Per-Factor Risk Attribution Under a Linear Factor Model

中等面试准备Python / C++ / Rust
未尝试
coding-factor-shock-scenario-pnl订阅锁定
Factor-Shock Scenario P&L on a Linear Factor Model

Factor-Shock Scenario P&L on a Linear Factor Model

中等面试准备Python / C++ / Rust
未尝试
coding-gaussian-copula-sample订阅锁定
从高斯 Copula 抽样

Sample from a Gaussian Copula

中等面试准备Python / C++ / Rust
未尝试
coding-gpd-tail-var-extrapolation订阅锁定
POT 框架下基于 GPD 的尾部 VaR 外推

GPD Tail-VaR Extrapolation under the POT Framework

困难面试准备Python / C++ / Rust
未尝试
coding-hill-estimator-tail-index订阅锁定
重尾损失分布尾指数的 Hill 估计

Hill Estimator for the Tail Index of a Heavy-Tailed Loss Distribution

困难面试准备Python / C++ / Rust
未尝试
coding-historical-stress-loss-replay订阅锁定
历史压力情景损失复盘

Historical Stress Loss Replay

中等面试准备Python / C++ / Rust
未尝试
coding-historical-var-portfolio订阅锁定
组合历史 VaR

Historical VaR for a Long-Only Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-historical-var-var-only订阅锁定
滚动历史 VaR 序列

Rolling Historical VaR Track

中等面试准备Python / C++ / Rust
未尝试
coding-incremental-var订阅锁定
按资产分解的成分 VaR(Euler 分解)

Component VaR per Asset (Euler Decomposition)

中等面试准备Python / C++ / Rust
未尝试
coding-incremental-var-of-candidate-trade订阅锁定
候选交易的增量 VaR

Incremental VaR of a Candidate Trade

中等面试准备Python / C++ / Rust
未尝试
coding-information-ratio-active-return订阅锁定
主动收益序列的 Information Ratio

Information Ratio of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-kendall-tau-from-ranks订阅锁定
Kendall's Tau-a Rank Correlation on a Bivariate Sample

Kendall's Tau-a Rank Correlation on a Bivariate Sample

中等面试准备Python / C++ / Rust
未尝试
coding-kupiec-pof-test订阅锁定
Kupiec 失败比例 (POF) 检验统计量

Kupiec Proportion-of-Failures (POF) Test Statistic

中等面试准备Python / C++ / Rust
未尝试
coding-lcr-liquidity-coverage-ratio订阅锁定
Basel III Liquidity Coverage Ratio with HQLA Caps

Basel III Liquidity Coverage Ratio with HQLA Caps

中等面试准备Python / C++ / Rust
未尝试
coding-leverage-ratio-tier1订阅锁定
Basel III Leverage Ratio

Basel III Leverage Ratio

简单面试准备Python / C++ / Rust
未尝试
coding-lgd-recovery-aggregation订阅锁定
带抵押品回收瀑布的 LGD 聚合

LGD Aggregation with Collateral Recovery Cascade

中等面试准备Python / C++ / Rust
未尝试
coding-marginal-var-by-asset订阅锁定
Marginal VaR by Asset (Closed-Form Gradient)

Marginal VaR by Asset (Closed-Form Gradient)

中等面试准备Python / C++ / Rust
未尝试
coding-marginal-var-gaussian-portfolio订阅锁定
高斯组合的边际 VaR 敏感度

Marginal VaR Sensitivity for a Gaussian Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-max-drawdown-duration订阅锁定
累积净值曲线上的最长回撤期

Maximum Drawdown Duration on the Equity Curve

中等面试准备Python / C++ / Rust
未尝试
coding-modigliani-m-squared-ratio订阅锁定
Modigliani M² — 波动率等价化的风险调整后收益

Modigliani M-Squared — Vol-Rescaled Risk-Adjusted Return

中等面试准备Python / C++ / Rust
未尝试
coding-monte-carlo-var-portfolio订阅锁定
蒙特卡洛 VaR(多资产组合)

Monte-Carlo VaR for a Multi-Asset Portfolio

中等面试准备Python / C++ / Rust
未尝试
coding-nsfr-net-stable-funding订阅锁定
Basel III Net Stable Funding Ratio (NSFR)

Basel III Net Stable Funding Ratio (NSFR)

简单面试准备Python / C++ / Rust
未尝试
coding-omega-ratio-at-threshold订阅锁定
收益序列在阈值处的 Omega 比率

Omega Ratio of a Return Series at a Threshold

中等面试准备Python / C++ / Rust
未尝试
coding-parametric-gaussian-es-from-moments订阅锁定
由调用者提供矩量计算参数化高斯 ES

Parametric Gaussian Expected Shortfall from Caller-Supplied Moments

中等面试准备Python / C++ / Rust
未尝试
coding-parametric-var-normal订阅锁定
滚动参数法 VaR(正态假设)

Rolling Parametric VaR (Normal)

中等面试准备Python / C++ / Rust
未尝试
coding-pareto-tail-var-via-hill-estimator订阅锁定
基于 Hill 估计的 Pareto 尾部 VaR 外推

Pareto Tail VaR via Hill-Estimator Extrapolation

困难面试准备Python / C++ / Rust
未尝试
coding-pd-rating-transition-multistep订阅锁定
评级转移矩阵下的多期违约概率

Multi-Period Default Probability from a Rating-Transition Matrix

中等面试准备Python / C++ / Rust
未尝试
coding-portfolio-var-multivariate订阅锁定
多资产组合参数法 VaR(w^T Σ w)

Multi-Asset Portfolio Parametric VaR (w^T Σ w)

中等面试准备Python / C++ / Rust
未尝试
coding-rank-correlation-spearman-kendall订阅锁定
Spearman 等级相关与 Kendall tau-b:copula 流水线上的双等级相关诊断

Spearman Rho and Kendall Tau-b: Dual Rank-Correlation Diagnostic for the Copula Pipeline

困难面试准备Python / C++ / Rust
未尝试
coding-realized-vol-jump-test-bnsh订阅锁定
Realized-Volatility Jump Test (Barndorff-Nielsen and Shephard)

Realized-Volatility Jump Test (Barndorff-Nielsen and Shephard)

困难面试准备Python / C++ / Rust
未尝试
coding-reverse-stress-test-target订阅锁定
反向压力测试——求达到目标损失的冲击幅度

Reverse Stress Test — Solve for Shock Magnitude Hitting a Target Loss

中等面试准备Python / C++ / Rust
未尝试
coding-risk-budget-iterative-allocation订阅锁定
Risk-Budget Allocation via Iterative Fixed-Point

Risk-Budget Allocation via Iterative Fixed-Point

困难面试准备Python / C++ / Rust
未尝试
coding-rolling-window-variance-ratio-test订阅锁定
Rolling-Window Variance Ratio Test (Lo-MacKinlay)

Rolling-Window Variance Ratio Test (Lo-MacKinlay)

困难面试准备Python / C++ / Rust
未尝试
coding-semi-deviation-downside-volatility订阅锁定
围绕样本均值的收益序列半离差

Semi-Deviation of a Return Series Around the Sample Mean

中等面试准备Python / C++ / Rust
未尝试
coding-sortino-ratio-with-target订阅锁定
带目标收益的收益序列 Sortino 比率

Sortino Ratio of a Return Series with Target Return

中等面试准备Python / C++ / Rust
未尝试
coding-spectral-risk-measure订阅锁定
谱风险度量 (Acerbi 2002)

Spectral Risk Measure (Acerbi 2002)

困难面试准备Python / C++ / Rust
未尝试
coding-stress-coverage-ratio-against-capital订阅锁定
Stress Coverage Ratios Against Available Capital

Stress Coverage Ratios Against Available Capital

简单面试准备Python / C++ / Rust
未尝试
coding-stress-loss-aggregation-by-bucket订阅锁定
按桶维度聚合压力测试损失

Stress-Loss Aggregation by Bucket

简单面试准备Python / C++ / Rust
未尝试
coding-systematic-vs-idiosyncratic-variance-decomposition订阅锁定
系统性与特异性方差分解(因子模型)

Systematic-vs-Idiosyncratic Variance Decomposition (Factor Model)

中等面试准备Python / C++ / Rust
未尝试
coding-tracking-error-contribution-by-sector订阅锁定
各行业对跟踪误差方差的贡献

Tracking-Error Variance Contribution by Sector

中等面试准备Python / C++ / Rust
未尝试
coding-tracking-error-sample-stdev订阅锁定
主动收益序列的标量 Tracking Error

Scalar Tracking Error of an Active-Return Series

中等面试准备Python / C++ / Rust
未尝试
coding-treynor-ratio-systematic-risk-adjusted订阅锁定
Treynor 比率 — 系统性风险调整后的超额收益

Treynor Ratio — Systematic-Risk-Adjusted Excess Return

中等面试准备Python / C++ / Rust
未尝试
coding-up-down-capture-ratios订阅锁定
相对基准的上行捕获率与下行捕获率

Up-Capture and Down-Capture Ratios versus a Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-var-breach-counter订阅锁定
统计并标注 VaR 突破日

Count and Timestamp VaR Breaches

中等面试准备Python / C++ / Rust
未尝试
coding-vasicek-asrf-loss订阅锁定
Vasicek ASRF 损失率

Vasicek ASRF Loss Rate

中等面试准备Python / C++ / Rust