CODING CHALLENGES

代码题库

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

继续刷题

题目列表

显示 154 / 646 道可提交题。 当前筛选:标签:Statistics,难度:中等,语言:C++

提交状态:未尝试未正确已正确
未尝试
coding-asian-call-arithmetic-mean订阅锁定
算术平均亚式看涨期权的蒙特卡洛定价(含对偶变量法)

Arithmetic-average Asian Call MC Pricing with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-asof-merge-prices-trades订阅锁定
时序对齐合并:为每笔成交附上最近的中间价

As-of Merge — Attach Most-Recent Mid-Price to Each Trade

中等面试准备Python / C++ / Rust
未尝试
coding-asof-merge-trade-fills订阅锁定
时序对齐合并:成交与报价的 as-of 拼接

As-of Merge — Trades against Quotes

中等面试准备Python / C++ / Rust
未尝试
coding-barrier-up-and-out-call订阅锁定
向上敲出障碍看涨期权的蒙特卡洛定价(日度监测)

Up-and-out Barrier Call MC Pricing with Daily Monitoring

中等面试准备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-binomial-tree-american-put可练习
CRR 二叉树美式看跌期权定价

American Put Pricing on a CRR Binomial Tree

中等免费版Python / C++ / Rust
未尝试
coding-blocked-cv-time-respecting订阅锁定
时序保留的分块 CV:连续折,train 严格早于 test

Blocked Time-Respecting CV: Contiguous Folds with Train-Before-Test

中等面试准备Python / C++ / Rust
未尝试
coding-box-muller-uniform-to-normal-pairs可练习
Box-Muller:把均匀对转成标准正态对

Box-Muller: Uniform Pairs to Standard-Normal Pairs

中等免费版Python / C++ / Rust
未尝试
coding-brownian-bridge-min-prob订阅锁定
布朗桥运行最小值的存活概率

Brownian Bridge Running Minimum Survival Probability

中等面试准备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-clayton-copula-sample订阅锁定
从 Clayton Copula 抽样

Sample from a Clayton Copula

中等面试准备Python / C++ / Rust
未尝试
coding-cliquet-call-mc订阅锁定
本地封顶 Cliquet 看涨期权的蒙特卡洛定价(含对偶变量法)

Locally-capped Cliquet Call MC Pricing with Antithetic Variates

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

Cluster Correlated Tickers

中等免费版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-scenario-tree-pnl-aggregation可练习
条件情景树的概率加权 PnL 聚合

Conditional Scenario-Tree Probability-Weighted PnL Aggregation

中等免费版Python / C++ / Rust
未尝试
coding-control-variate-european订阅锁定
欧式看涨 MC:几何亚式控制变量

European Call MC with Geometric-Asian Control Variate

中等面试准备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
未尝试中等面试准备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-correlation-cluster-count可练习
因子聚簇计数:阈值化相关性图的连通分量数

Factor Cluster Count: Connected Components on a Thresholded Correlation Graph

中等免费版Python / C++ / Rust
未尝试
coding-count-leaves-cumret-above-threshold可练习
远期情景树上累计 PnL 越过门槛的叶节点计数

Win-Count Leaves on a Forward Scenario Tree

中等免费版Python / C++ / Rust
未尝试
coding-cumret-zero-crossings可练习
累计 PnL 零交叉次数:回测净值曲线的符号翻转计数

Cumulative PnL Zero-Crossings: Count Sign Flips of the Backtest Equity Curve

中等免费版Python / C++ / Rust
未尝试
coding-deepest-no-drawdown-leaf-depth可练习
远期情景树上无中间回撤的最深叶深度

Deepest No-Drawdown Leaf on a Forward Scenario Tree

中等免费版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-digital-cash-or-nothing订阅锁定
对偶变量蒙特卡洛:数字现金或无看涨期权

Digital Cash-or-Nothing Call Monte Carlo with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-earliest-window-variance-breach可练习
最早一段总体方差严格越过冲击阈值的 K 日窗口

Earliest K-Day Window Whose Population Variance Strictly Exceeds A Spike Threshold

中等免费版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-equal-risk-contribution订阅锁定
等风险贡献组合权重

Equal-Risk-Contribution Portfolio Weights

中等面试准备Python / C++ / Rust
未尝试
coding-european-call-mc-anti订阅锁定
对偶变量蒙特卡洛:欧式看涨期权定价

European Call Monte Carlo with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-european-call-monte-carlo订阅锁定
蒙特卡洛定价欧式看涨期权

European Call Price via Monte Carlo

中等面试准备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-ewma-sharpe-ratio订阅锁定
指数加权 Sharpe 比率

Exponentially-Weighted Sharpe 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-excess-returns-from-benchmark订阅锁定
相对基准的超额收益

Excess Returns Over a Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-execution-quality-score-blend订阅锁定
Composite Broker Execution-Quality Score with Direction-Aware Z-Score Blend

Composite Broker Execution-Quality Score with Direction-Aware Z-Score Blend

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

Rolling Historical Expected Shortfall (CVaR)

中等面试准备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-fillrate-by-venue-with-cis订阅锁定
按场所统计的成交率与 Wilson 置信区间

Per-Venue Fill Rate with Wilson Confidence Intervals

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

Filtered Historical Simulation VaR

中等免费版Python / C++ / Rust
未尝试
coding-first-passage-time-mc订阅锁定
蒙特卡洛估计 OU 过程首次穿越时间

OU First-Passage Time by Monte Carlo

中等面试准备Python / C++ / Rust
未尝试
coding-fixed-strike-lookback-call订阅锁定
固定执行价回望看涨期权的蒙特卡洛定价(离散监测)

Fixed-strike Lookback Call MC Pricing with Discrete Monitoring

中等面试准备Python / C++ / Rust
未尝试
coding-fx-cross-hedge-residual订阅锁定
交叉对冲的残差方差与解释力

Cross-Hedge Residual Variance and Explanatory Power

中等面试准备Python / C++ / Rust
未尝试
coding-garch-1-1-multistep-variance-forecast可练习
GARCH(1,1) 多期方差预测

GARCH(1,1) Multi-Step Variance Forecast

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

Sample from a Gaussian Copula

中等面试准备Python / C++ / Rust
未尝试
coding-gk-summary-streaming-quantile订阅锁定
Greenwald-Khanna Streaming Quantile Summary

Greenwald-Khanna Streaming Quantile Summary

中等面试准备Python / C++ / Rust
未尝试
coding-groupby-mean-by-key订阅锁定
按 key 分组求均值,并附最小样本数门控

Groupby-Mean by Key with a Min-Count Gate

中等面试准备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-stress-loss-replay订阅锁定
历史压力情景损失复盘

Historical Stress Loss Replay

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

Historical VaR at Multiple Confidence Levels

中等免费版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-idiosyncratic-volatility订阅锁定
特异波动率因子:滚动剥离市场 β 后的残差标准差

Idiosyncratic Volatility Factor — Rolling Residual Std After Market Beta

中等面试准备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-incremental-var订阅锁定
按资产分解的成分 VaR(Euler 分解)

Component VaR per Asset (Euler Decomposition)

中等面试准备Python / C++ / Rust
未尝试
coding-information-ratio订阅锁定
年化信息比率

Annualized Information Ratio

中等面试准备Python / C++ / Rust
未尝试
coding-inverse-percentile-rank-by-pnl可练习
日 PnL 在历史分布中的反向百分位排名

Inverse Percentile Rank of Daily PnL Against Reference Distribution

中等免费版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-likelihood-ratio可练习
Kupiec POF 似然比统计量:VaR 回溯检验

Kupiec POF Likelihood-Ratio Statistic for VaR Backtesting

中等免费版Python / C++ / Rust
未尝试
coding-lag-lead-transform-by-key订阅锁定
按 key 做滞后/前瞻偏移——组内时序位移

Lag/Lead Shift by Key — Within-Group Time-Series Offset

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

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

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

LGD Beta-Distribution Calibration via Method of Moments

中等免费版Python / C++ / Rust
未尝试
coding-longest-stable-trading-streak可练习
最长平稳交易区间

Longest Stable Trading Streak

中等免费版Python / C++ / Rust
未尝试
coding-longest-streak可练习
击穿盈利目标的最长子窗口:单调栈解前缀和长度优化

Longest Sub-Window Beating a PnL Target via Monotonic-Stack on Prefix Sums

中等免费版Python / C++ / Rust
未尝试
coding-look-ahead-bias-detector订阅锁定
通过滞后相关比较检测前视偏差

Look-Ahead Bias Detector via Lagged-Correlation Comparison

中等面试准备Python / C++ / Rust
未尝试
coding-max-drawdown-decomposition订阅锁定
最大回撤分解

Max Drawdown Decomposition

中等面试准备Python / C++ / Rust
未尝试
coding-max-iid-call-pricing订阅锁定
n 个独立同分布 lognormal 取最大的看涨期权半解析定价

Semi-Analytic Call Price on the Max of n iid Lognormals

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

Mean-Excess Curve Across a Threshold Grid

中等免费版Python / C++ / Rust
未尝试
coding-mean-reversion-residual订阅锁定
均值回复因子:对基准残差化的过去 K 日收益

Mean-Reversion Factor — Residualized Last-K Return

中等面试准备Python / C++ / Rust
未尝试
coding-min-variance-long-only订阅锁定
长仓最小方差组合权重

Long-Only Minimum-Variance Portfolio Weights

中等面试准备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-misra-gries-heavy-hitters可练习
Misra-Gries (k-1) 计数器在交易流上的重元素近似

Misra-Gries (k-1)-Counter Heavy-Hitters Over a Trade-Tape Stream

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

Monte-Carlo VaR for a Multi-Asset Portfolio

中等面试准备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-online-cumulative-bollinger-bands可练习
在线累计 Bollinger 带:Welford 递推的带对序列

Online Cumulative Bollinger Bands: Welford-Recurrence Band-Pair Stream

中等免费版Python / C++ / Rust
未尝试
coding-online-ewma-covariance-pair可练习
在线 EWMA 配对协方差:跨资产对冲比建模基石

Online EWMA Covariance Pair — Cross-Asset Hedge-Ratio Building Block

中等免费版Python / C++ / Rust
未尝试
coding-online-ewma-residual-stream可练习
在线 EWMA 残差流:以"先前"指数加权均值衡量当期收益的意外度

Online EWMA Residual Stream — Surprise-vs-Prior Exponential-Weight Mean

中等免费版Python / C++ / Rust
未尝试
coding-online-ewma-variance可练习
在线 EWMA 方差:偏重近期的波动率追踪器

Online EWMA Variance — Recency-Weighted Volatility Tracker

中等免费版Python / C++ / Rust
未尝试
coding-online-median-slippage可练习
在线滑点中位数

Online Median of Slippage

中等免费版Python / C++ / Rust
未尝试
coding-online-running-excess-kurtosis可练习
在线运行超额峰度(Welford 四阶矩递推)

Online Running Excess Kurtosis via Welford-Style Fourth-Moment Recurrence

中等免费版Python / C++ / Rust
未尝试
coding-online-running-skewness可练习
在线运行样本偏度(Welford 三阶矩递推)

Online Running Sample Skewness via Welford-Style Third-Moment Recurrence

中等免费版Python / C++ / Rust
未尝试
coding-online-skewness-kurtosis可练习
在线流式计算均值、方差、偏度与超额峰度(Welford-Pebay)

Online Streaming Mean, Variance, Skewness, and Excess Kurtosis (Welford-Pebay)

中等免费版Python / C++ / Rust
未尝试
coding-online-zscore-anomaly-flag订阅锁定
在线 Z 分数异常打标

Online Z-Score Anomaly Flag

中等面试准备Python / C++ / Rust
未尝试
coding-online-zscore-outlier-flagger可练习
在线 Z 分数离群标记:用 Welford 累计历史检测 tick 流异常

Online Z-Score Outlier Flagger: Welford-Cumulative Anomaly Detection on a Tick Stream

中等免费版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-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-pca-eigen-2by2订阅锁定
2x2 协方差闭式特征分解(toy PCA)

Closed-Form 2x2 PCA Eigendecomposition

中等面试准备Python / C++ / Rust
未尝试
coding-pca-explained-variance订阅锁定
主成分分析:前 k 个成分的解释方差比

PCA Explained-Variance Ratio for Top-k Components

中等面试准备Python / C++ / Rust
未尝试
coding-percent-change-from-base订阅锁定
相对可配置基的百分变化

Percent-Change from a Configurable Base

中等面试准备Python / C++ / Rust
未尝试
coding-percentile-from-bucketed-counts订阅锁定
Quantile Estimate from Pre-Bucketed Histogram Counts

Quantile Estimate from Pre-Bucketed Histogram Counts

中等面试准备Python / C++ / Rust
未尝试
coding-percentile-pnl-linear-interp可练习
成交 PnL 的线性插值百分位

Linear-Interpolation Percentile of Trade PnL

中等免费版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-pivot-long-to-wide-panel订阅锁定
长表转宽表:把 (date, ticker, value) 面板透视成二维矩阵

Long-to-Wide Pivot — Reshape a (Date, Ticker, Value) Panel into a Matrix

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

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

中等面试准备Python / C++ / Rust
未尝试
coding-prob-of-reaching-target-leaves可练习
二叉情景树上击中目标叶集合的概率

Probability of Reaching a Target Leaf Set on a Binary Scenario Tree

中等免费版Python / C++ / Rust
未尝试
coding-purged-cv-folds订阅锁定
带禁运区的 Purged K 折交叉验证

Purged k-Fold CV with Embargo

中等面试准备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-rainbow-best-of-call-mc订阅锁定
Best-of-N 彩虹看涨期权的蒙特卡洛定价(Cholesky + 对偶变量法)

Best-of-N Rainbow Call MC Pricing with Cholesky and Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-range-accrual-pricer订阅锁定
Range-Accrual 票据每日观测蒙特卡洛定价(含对偶变量法)

Range-Accrual Note Pricer via Daily-Monitoring MC with Antithetic Variates

中等面试准备Python / C++ / Rust
未尝试
coding-rank-corr-spearman订阅锁定
两因子序列的 Spearman 等级相关:平均排名破平

Spearman Rank Correlation with Average-Rank Tie Breaking

中等面试准备Python / C++ / Rust
未尝试
coding-rank-gauss-transform订阅锁定
横截面 alpha 因子的 RankGauss 变换

RankGauss Transform on a Cross-Section of Alpha Factors

中等面试准备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-recursive-subtree-leaf-payoff-sum可练习
情景树上每节点的条件期望叶节点收益

Per-Node Conditional Expected Leaf Payoff on a Scenario Tree

中等免费版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-regime-transition-path-count可练习
状态机转移路径计数:可分辨催化剂下的 DAG 取模游走枚举

Regime Transition Path Count: Modular DAG Walk Enumeration with Distinguishable Catalysts

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

Reverse Stress Test — Flag Scenarios That Hit a Loss Target

中等免费版Python / C++ / Rust
未尝试
coding-reverse-stress-test-target订阅锁定
反向压力测试——求达到目标损失的冲击幅度

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

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-beta-strategy-vs-benchmark订阅锁定
滚动贝塔:策略对基准的窗口暴露

Rolling Beta — Strategy vs. Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-beta-vs-benchmark订阅锁定
对基准的滚动 Beta

Rolling Beta vs Benchmark

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-correlation-pair订阅锁定
双序列滚动皮尔逊相关系数

Rolling Pearson Correlation Between Two Series

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-max-min-gap订阅锁定
滚动极差

Rolling Max-Min Spread

中等面试准备Python / C++ / Rust
未尝试
coding-rolling-vol-stable-window可练习
滚动样本波动率滑窗下的最长稳定波动率区间

Longest Stable-Volatility Regime via Rolling Sample-Stddev Sliding Window

中等免费版Python / C++ / Rust
未尝试
coding-rolling-window-range-spread可练习
双单调队列滑窗下的分钟级行情极差监控

Minute-Bar Range Monitor via Dual-Deque Sliding Max-Minus-Min

中等免费版Python / C++ / Rust
未尝试
coding-rolling-zscore-anomaly-flags订阅锁定
滚动 Z 分数异常打标

Rolling Z-Score Anomaly Flags

中等面试准备Python / C++ / Rust
未尝试
coding-running-max-drawdown-stream可练习
流式对数收益 NAV 路径的运行最大回撤

Running Maximum Drawdown of a Streamed Log-Return NAV Path

中等免费版Python / C++ / Rust
未尝试
coding-running-pearson-correlation-pair可练习
在线累计 Pearson 相关系数(Welford 共动差递推)

Running Cumulative-History Pearson Correlation via Welford-Style Co-Moment Recurrence

中等免费版Python / C++ / Rust
未尝试
coding-running-quantile-p2可练习
P-Square (P²) 流式分位数估计

P-Square (P²) Streaming Quantile Estimator

中等免费版Python / C++ / Rust
未尝试
coding-scenario-tree-expected-pnl可练习
风险情景树的期望 PnL

Expected PnL on a Risk-Officer Scenario Tree

中等免费版Python / C++ / Rust
未尝试
coding-scenario-tree-worst-leaf-pnl可练习
风险情景树的最差叶 PnL

Worst-Case Leaf PnL on a Risk-Officer Scenario Tree

中等免费版Python / C++ / Rust
未尝试
coding-semi-deviation-downside-volatility订阅锁定
围绕样本均值的收益序列半离差

Semi-Deviation of a Return Series Around the Sample Mean

中等面试准备Python / C++ / Rust
未尝试
coding-shortest-window-k-spikes可练习
收益流中包含 K 个幅度跳点的最短窗口

Shortest Window Containing K Magnitude Spikes in a Return Stream

中等免费版Python / C++ / Rust
未尝试
coding-shrinkage-cov-ledoit-wolf-toy订阅锁定
Ledoit-Wolf 收缩协方差(toy 版本)

Toy Ledoit-Wolf Shrinkage Covariance

中等面试准备Python / C++ / Rust
未尝试
coding-size-factor-log-mcap订阅锁定
规模因子:负对数市值的横截面 z-score

Size Factor as Negative Log Market Cap (Cross-Sectional Z-Score)

中等面试准备Python / C++ / Rust
未尝试
coding-size-weighted-median-fillprice可练习
成交量加权中位数成交价

Size-Weighted Median Fill Price

中等免费版Python / C++ / Rust
未尝试
coding-sortino-ratio订阅锁定
年化索提诺比率

Annualized Sortino Ratio

中等面试准备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-subranges-above-return-threshold可练习
累计收益超阈值的子区间计数

Subranges Above Return Threshold

中等免费版Python / C++ / Rust
未尝试
coding-top-k-pnl-days-so-far可练习
实时 Top-K 盈利日榜单

Top K PnL Days So Far

中等免费版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-mle-fit订阅锁定
Vasicek MLE Fit from a Short-Rate Series

Vasicek MLE Fit from a Short-Rate Series

中等面试准备Python / C++ / Rust
未尝试
coding-vwap-deviation-by-broker订阅锁定
VWAP Deviation by Broker

VWAP Deviation by Broker

中等面试准备Python / C++ / Rust
未尝试
coding-walk-forward-train-test-splits订阅锁定
步进式训练/测试切分(含 embargo 间隔)

Walk-Forward Train/Test Splits with Embargo

中等面试准备Python / C++ / Rust
未尝试
coding-walkforward-expanding-window-folds订阅锁定
走向前 CV:扩展窗口与滚动窗口折

Walk-forward CV: Expanding and Rolling-window Folds

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

Weighted Historical VaR with Custom Weights

中等免费版Python / C++ / Rust
未尝试
coding-welford-warmup-trimmed-variance可练习
Welford 暖启动剪裁样本方差:仅在尾段稳定计算的在线估计量

Welford Warm-up-Trimmed Sample Variance — Stable Online Estimator on a Trailing Tail

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

Wilson Score Binomial CI for VaR Exceedance Rate

中等免费版Python / C++ / Rust
未尝试
coding-windowed-positive-fraction可练习
定长滑窗内严格正收益占比

Rolling Hit-Rate of Strictly-Positive Returns over a Fixed-Size Window

中等免费版Python / C++ / Rust
未尝试
coding-winsorize-cross-sectional订阅锁定
横截面 alpha 因子值的 winsorize 截尾

Cross-Sectional Winsorization of Alpha-Factor Values

中等面试准备Python / C++ / Rust
未尝试
coding-zscore-cross-sectional订阅锁定
横截面 z-score 与可选 winsorize 截尾

Cross-Sectional Z-Score with Optional Winsorization

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