LibraryWorkspaceDataHub

© 2026 QCA · by Lime Fintech · About QCA · Market data from Massive

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Distortion risk measures of step-weighted distribution

Open repository
Jul 13, 2026
Mathematical Finance

Verdict: Fully Reproduced

OverviewExperiments

Executive Summary

Status
Fully Reproduced
Confidence
High

Executive Summary

  • Status: FULLY REPRODUCED
  • Confidence: HIGH
  • Key Insight: The repository’s reported outputs reproduce all four selected theorem-verification experiments to machine precision or tight numerical tolerance. The paper-linked benchmark, especially Example 5.4 / Table 1, is matched exactly after rounding, and all robustness diagnostics pass.

Results Comparison

Overall paper-relevant replication verdict

The repository is not a performance/backtest study with returns, Sharpe, alpha, or drawdown metrics; it is a deterministic mathematical verification repo. So the relevant comparison metrics are theorem errors, formula errors, exact benchmark values, admissibility checks, and numerical stability.

MetricPaper / ExpectedReproducedDiffStatus
Single-risk CDF identity FXA,Q(x)=GA,
Q(FX(x))F_{X_{A,Q}}(x)=G_{A,Q}(F_X(x))
FXA,Q​​(x)=GA,Q​(FX​(x))
Should hold exactly / machine precision
max abs err = 0.00e+00 across reported cases
0
✅ Match
Single-risk distortion-risk identity ρg[XA,Q]=ρgA,Q[X]\rho_g[X_{A,Q}] = \rho_{g_{A,Q}}[X]ρg​[XA,Q​]=ρgA,Q​​[X]Should hold exactly / near-zero numerical errorAll 27 checks passed; abs err mostly 0.00e+00, largest shown around 8.88e-16Negligible✅ Match
Single-risk VaR identityShould hold exactlymax abs err = 0.00e+000✅ Match
Single-risk TVaR formulaShould hold exactly / within quadrature tolerancemax abs err from ~1e-12 to ~1.18e-09 depending on caseTiny✅ Match
Example 5.4 p∗p^*p∗ values{0.318181, 0.454545, 0.70, 0.88, 0.94}Exact match to rounding0✅ Match
Example 5.4 VaR values{0.636363, 0.909090, 1.40, 1.76, 1.88}Exact0✅ Match
Example 5.4 TVaR values{1.196969, 1.409090, 1.70, 1.88, 1.94}Exact to rounding; err 2.66e ⁣−142.66e\!-142.66e−14 to 4.00e ⁣−134.00e\!-134.00e−13Negligible✅ Match
Comonotonic equality in distribution (Sc)ω=d(Sω)c(S^c)_\omega \overset{d}= (S_\omega)^c(Sc)ω​=d(Sω​)cShould holdsup-norm quantile difference 0.00e+000✅ Match
Comonotonic distortion identity (Theorem 5.2)Should holdabs err = 0.00e+00 for all shown distortions0✅ Match
Boundary behavior p∗=qkp^*=q_kp∗=qk​Should be stable / consistent6 boundary checks, errors ≤ 1.11e-16Negligible✅ Match
Unweighted baseline GA,Q(t)=tG_{A,Q}(t)=tGA,Q​(t)=t, gA,Q=gg_{A,Q}=ggA,Q​=gExact collapseerrors around 1e-16 to 1e-13Negligible✅ Match
Admissibility validationInvalid inputs rejected; valid inputs acceptedAll checks passed0✅ Match

Summary

The repository’s outputs fully match the expected outcomes described for all four selected experiments. Where the paper provides explicit benchmark numbers, the reproduction matches them exactly after rounding. Where the expected outcome is “machine precision” or “quadrature tolerance,” the realized errors are far tighter than the stated tolerances.


Experiment-by-Experiment Analysis

1) Exp 1 — Single-risk theorem verification for step-weighted distributions

Reported results

From results/RESULTS.md and the CSV artifacts:

  • CDF identity: all reported combinations passed with
    • max abs err = 0.0
    • mean abs err = 0.0

Applies to:

  • baseline weights

  • paper example weights

  • extra admissible case

  • distributions:

    • Uniform(0,1)
    • Lognormal(0,0.5)
    • Lognormal(0.2,1.0)
  • VaR identity: all specs/distributions report

    • max abs err = 0.00e+00
  • TVaR formula:

    • baseline Uniform: 9.99e-13
    • baseline Lognormal(0,0.5): 2.28e-11
    • baseline Lognormal(0.2,1.0): 5.34e-10
    • paper example Lognormal(0.2,1.0): 6.29e-10
    • extra-case Lognormal(0.2,1.0): 1.18e-09
  • Distortion-risk identity: all 27 checks passed. Examples:

    • baseline Uniform + TVaR(0.9): 0.95=0.950.95 = 0.950.95=0.95
    • baseline Uniform + PH(0.5): 0.6666666667=0.66666666670.6666666667 = 0.66666666670.6666666667=0.6666666667
    • baseline Lognormal(0,0.5) + identity: 1.1331484529=1.13314845291.1331484529 = 1.13314845291.1331484529=1.1331484529
    • paper-example Lognormal(0.2,1.0) + PH(0.5): difference 8.88e-16
    • extra-case Lognormal(0.2,1.0) + identity: exact to displayed precision

Comparison to expected outcomes

Expected:

  • CDF identity should hold to machine precision
  • distortion-risk identity near zero error
  • VaR exact up to numerical precision
  • TVaR within very tight tolerance
  • unweighted case should reduce exactly

Observed:

  • exactly consistent with expectations

Assessment

This experiment is fully reproduced. Numerical error is effectively zero, and even the “harder” lognormal TVaR cases remain far below the stated tolerance thresholds.


2) Exp 2 — Comonotonic-sum theorem verification and Example 5.4 / Table 1 replication

Reported results

Example 5.4 / Table 1

From results/exp2_example54_table1.csv:

pp*VaR directVaR formulaTVaR directTVaR formulaTVaR err
0.250.31818181820.63636363640.63636363641.19696969701.19696969702.66e-14
0.500.45454545450.90909090910.90909090911.40909090911.40909090914.00e-14
0.750.70000000001.40000000001.40000000001.70000000001.70000000007.95e-14
0.900.88000000001.76000000001.76000000001.88000000001.88000000001.99e-13
0.950.94000000001.88000000001.88000000001.94000000001.94000000004.00e-13

This exactly reproduces the expected published values.

Dense grid

From results/exp2_dense_var_tvar.csv:

  • VaR error = 0 for the full dense grid
  • TVaR errors are on the order of 1e-14 to 1e-13

Theorem 5.2

From results/exp2_theorem52.csv:

  • TVaR(0.9): LHS = RHS = 1.8799999999992292
  • PH(0.5): LHS = RHS = 1.3140231296236262
  • identity: LHS = RHS = 1.0000000000000002
  • abs err = 0.0 in all shown cases

Equality in distribution

Reported as:

  • sup-norm difference between weighted-comonotonic quantiles = 0.00e+00

Comparison to expected outcomes

Expected:

  • exact Example 5.4 table reproduction
  • exact VaR identity
  • machine-precision TVaR agreement
  • exact quantile equality for (Sc)ω(S^c)_\omega(Sc)ω​ vs (Sω)c(S_\omega)^c(Sω​)c
  • exact distortion theorem

Observed:

  • exactly so

Assessment

This is the strongest paper-facing replication result in the repo. The benchmark table is reproduced exactly, and the theorem checks are exact to machine precision. This experiment is fully reproduced.


3) Exp 3 — Analytic special-case verification for VaR and TVaR

Reported results

From results/RESULTS.md, exp3_single_var.csv, exp3_single_tvar.csv, exp3_comon_var.csv, exp3_comon_tvar.csv, exp3_boundary.csv:

  • Single-risk VaR

    • max abs err = 0.00e+00 across baseline, paper example, extra case
    • both Uniform and Lognormal(0,0.5)
  • Single-risk TVaR

    • Uniform: about 1e-12
    • Lognormal: about 2.27e-11 to 2.49e-11
  • Boundary tests

    • 6 points tested
    • errors: 0, 5.55e-17, 1.11e-16
    • all consistent
  • Comonotonic VaR/TVaR

    • VaR errors: 0
    • TVaR errors: below 4e-13
  • Baseline identity case

    • p∗=pp^*=pp∗=p: error 0
    • VaR collapse: 0
    • TVaR collapse: 1e-13

Comparison to expected outcomes

Expected:

  • VaR exact
  • TVaR near exact
  • segment-boundary stability
  • reduction to unweighted classical formulas

Observed:

  • complete agreement

Assessment

This analytic/unit-test-style experiment gives strong independent confirmation that the paper’s closed-form corollaries were implemented correctly. Fully reproduced.


4) Exp 4 — Robustness, ambiguity handling, and baseline validation

Reported results

Admissibility

From results/exp4_admissibility.csv:

  • invalid Q ending ≠ 1: rejected
  • negative weights: rejected
  • all-zero weights: rejected
  • non-strictly increasing Q: rejected
  • mismatched lengths: rejected
  • valid cases: accepted

All passed.

CDF diagnostics

From results/exp4_cdf_diagnostics.csv:

  • 9 combinations across:
    • paper example
    • extra case
    • baseline
    • Uniform / Lognormal / Exponential
  • sup error = 0.0 for all

Risk diagnostics

From results/exp4_risk_diagnostics.csv:

  • VaR max err = 0.0 in all 9 combinations
  • TVaR max err ranges roughly:
    • Uniform: 5.00e-13
    • Lognormal: 1.02e-11 to 1.29e-11
    • Exponential: 7.92e-12 to 8.67e-12

Zero-weight generalized inverse extension

Reported:

  • A=(1,0,2),Q=(0.3,0.7,1)A=(1,0,2), Q=(0.3,0.7,1)A=(1,0,2),Q=(0.3,0.7,1)
  • G−1(pflat)=0.7045G^{-1}(p_{\text{flat}})=0.7045G−1(pflat​)=0.7045
  • generalized inverse error = 0

Comparison to expected outcomes

Expected:

  • valid/invalid input handling
  • baseline identity collapse
  • stable behavior on dense grids and additional distributions
  • optional zero-weight handling documented as extension

Observed:

  • all achieved

Assessment

This robustness layer does not test the paper’s core claims directly, but it materially increases confidence in the implementation. It supports a high-confidence final verdict.


Statistical & Economic Significance

Statistical significance

Traditional statistical significance metrics like t-stats and p-values are not applicable here because:

  • the experiments are deterministic theorem verifications,
  • there is no sampling uncertainty from empirical asset returns,
  • outputs compare exact formulas against direct numerical constructions.

The relevant analogue is numerical error magnitude.

Numerical significance

The important error scales are:

  • 0.00e+00 for:

    • CDF identities
    • VaR identities
    • comonotonic distortion identities
    • many distortion-risk checks
  • ~1e-16 to 1e-13 for:

    • boundary continuity
    • analytic Example 5.4 TVaR
    • Uniform TVaR formulas
  • ~1e-11 to 1e-9 for:

    • lognormal TVaR formulas / quadrature-based cases

These are all far below the project’s stated tolerances:

  • bounded support: ~1e-10
  • unbounded/lognormal quadrature: ~1e-8

So the numerical evidence is not just acceptable; it is materially stronger than required.

Economic significance

In a standard empirical finance sense, “economic significance” is not relevant because there is no investment strategy. But in a computational mathematics sense, the results are economically meaningful insofar as:

  • the identities are reproduced to machine precision,
  • practical implementation of step-weighted VaR/TVaR/distortion transforms appears correct,
  • the framework is robust across bounded and unbounded synthetic distributions.

Discrepancies (if any)

There are no material discrepancies between expected and reproduced results.

Minor observations:

  • Lognormal/Exponential TVaR comparisons have tiny nonzero errors, ranging from about 1e-11 to 1e-9.
  • These are fully consistent with adaptive numerical integration / quadrature on unbounded support and are well within the experiment’s tolerances.

So the only “differences” are harmless numerical noise, not substantive mismatches.


Methodology Issues

No meaningful methodology issues are evident from the results artifacts.

Positives:

  • The repo separates theorem checks by experiment.
  • It includes both direct and transformed evaluations.
  • It verifies baseline, paper example, extra admissible case, and robustness cases.
  • It includes explicit parameter choices for lognormal cases, as required.
  • It includes independent validation of formulas, not just one code path.

Potential limitation, but not a replication failure:

  • The paper’s deterministic nature means the reproduction is mainly a code correctness exercise; hence confidence depends on internal consistency plus exact benchmark replication. The repo addresses this reasonably well by using multiple independent constructions and exact worked examples.

Reliability

Stability

High.

  • 156 pytest tests passed: 156/156
  • All reported pass/fail checks are successful
  • Dense-grid diagnostics show no instability
  • Boundary-point checks are explicitly tested and pass
  • Additional distributions beyond the core examples also pass

Anomalies / red flags

None material.

The only nonzero errors are tiny and expected:

  • lognormal / exponential TVaR numerical integration
  • floating-point-level differences 10−1610^{-16}10−16 to 10−1310^{-13}10−13

Confidence assessment

High confidence because:

  1. the key paper example is exactly replicated,
  2. theorem identities are validated through multiple routes,
  3. errors are negligible and below tolerance by wide margins,
  4. the robustness suite shows the code is not overfit to one setting.

Embedded Repository Charts

Exp 1 G_AQ curves

Exp 1 Uniform VaR/TVaR paper example

Exp 1 Lognormal(0,0.5) paper example

Exp 1 Lognormal(0.2,1.0) paper example

Exp 2 Example 5.4 CDF

Exp 2 Theorem 5.2 errors

Exp 3 p-star paper example

Exp 3 TVaR error paper example Uniform(0,1)

Exp 4 multiple G functions

Exp 4 distortion transform paper example


Verdict

Final Decision: FULLY REPRODUCED

Why:

  • All four selected experiments are supported by explicit result artifacts.
  • The core theoretical identities hold at machine precision or far within tolerance.
  • The paper’s explicit benchmark, Example 5.4 / Table 1, is reproduced exactly after rounding.
  • No material discrepancy, instability, or implementation red flag appears in the reported outputs.

Experiments

Single-risk theorem verification for step-weighted distributions

Computationally verify the paper’s single-risk identities for step-weighted distributions: the step-weighted cdf identity F_{X_{A,Q}}(x)=G_{A,Q}(F_X(x)), the distortion-risk identity rho_g[X_{A,Q}] = rho_{g_{A,Q}}[X], and the special-case VaR/TVaR formulas for a single continuous risk X. This experiment is fully deterministic and uses synthetic continuous distributions with known cdf and quantile functions, primarily Uniform(0,1) and Lognormal(mu,sigma^2).

Comonotonic-sum theorem verification and exact replication of Example 5.4 Table 1

Computationally verify the paper’s comonotonic identities for step-weighted distributions and reproduce the published worked example. The core tasks are to verify the equality-in-distribution claim (S^c)omega d= (S_omega)^c, verify the comonotonic distortion identity rho_g[(S^c){A,Q}] = sum_i rho_{g_{A,Q}}[X_i], and exactly replicate Example 5.4 / Table 1 for two Uniform(0,1) risks with the published step-weight parameters.

Analytic special-case verification for VaR and TVaR under step weighting

Independently verify the paper’s closed-form special-case formulas for VaR and TVaR under step weighting, for both single risks and comonotonic sums, using analytic and semi-analytic computation. This experiment isolates the corollaries from the more general distortion-risk theorem verification and focuses on transformed probability levels p*=G_{A,Q}^{-1}(p), segment indexing, and exact formula evaluation across probability grids.

Robustness, ambiguity handling, and baseline validation for step-weighted distortion identities

Run a dedicated validation suite that is independent of the main theorem replications and focuses on implementation robustness, admissibility checks, numerical stability, limiting cases, and documented ambiguities in the paper. This experiment tests whether the coding framework behaves correctly on edge cases such as constant weights, additional admissible (A,Q) choices, dense probability grids, and optional zero-weight segments with generalized inverses.

Original paperRun QCA on your paper