LibraryWorkspaceDataHub

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

PrivacyTermsCookiesDisclaimer
HomeLibrary
DataHub
  1. Library
  2. Report

Optimal entry and exit for variance swaps: closed-form rules for the perpetual contract

Open repository
Sep 17, 2026
Mathematical Finance

Verdict: Partially Reproduced

OverviewExperiments

Executive Summary

Status
Partially Reproduced
Confidence
High

Executive Summary

  • Status: PARTIALLY REPRODUCED
  • Confidence: HIGH
  • Key Insight: The repository reproduces the paper’s main structural findings across all seven selected experiments: Q-degeneracy, P-measure nontrivial timing, closed-form perpetual thresholds, entry/exit asymmetry, idle-cost effects, operational waiting times, and state-dependent-cost optionality. Most numerical targets are very close to the paper; the main material discrepancy is the minimum premium for the non-degenerate entry-exit window in Experiment 4.

Repository-level evidence also looks strong:

  • 27/27 tests passed
  • results are internally consistent across analytics, PDE/VI, and simulation checks
  • several machine-precision identities are verified explicitly

Results Comparison

MetricPaperReproducedDiffStatus
Exp 1: EQ[e−rτΠτT]E^Q[e^{-r\tau}\Pi_\tau^T] invariance across stopping rules
EQ[e−rτΠτT​]
Equal across all τ\tauτ
Equal within MC error; max rel. dev. about 2.65% with SE ≈ 0.000075
Economically negligible; statistically within ~3 SE
✅ Reproduced
Exp 1: Martingale identityExactExact; Π0T=0.00140000\Pi_0^T=0.00140000Π0T​=0.00140000 analytically0✅ Reproduced
Exp 2: Carry identity error0 / machine precision0.00e+000✅ Reproduced
Exp 2: 1D reduction / VI boundary stabilityBoundary geometry as in paperLong bT(0)b_T(0)bT​(0): 0.06766 → 0.06866 → 0.06913 with grid refinementStable convergence✅ Reproduced
Exp 3: Affine reduced reward errorExact affine2.95e-170✅ Reproduced
Exp 3: Analytic vs PDE/ODE thresholdMatch closelyLong diff 2.51e-11, short diff 4.54e-12Negligible✅ Reproduced
Exp 3: λ=0\lambda=0λ=0 degeneracyNo exercise regionβ≈0, no exercise region0✅ Reproduced
Exp 4: Minimum premium for non-degenerate window~1.09 vol pts1.237 vol pts+0.147 vol pts (~13.5%)⚠️ Material difference
Exp 4: Table 2, 1-year entry percentile94.7%95.55%+0.85 ppt✅ Within tolerance
Exp 4: Table 2, 2-year95.4%96.16%+0.76 ppt✅ Within tolerance
Exp 4: Table 2, 4-year96.6%97.14%+0.54 ppt✅ Within tolerance
Exp 4: Table 2, 8-year97.8%98.09%+0.29 ppt✅ Within tolerance
Exp 4: Table 2, 16-year98.9%98.83%-0.07 ppt✅ Reproduced
Exp 4: Table 2, 32-year99.4%99.32%-0.08 ppt✅ Reproduced
Exp 5: Entry vol at c0=0c_0=0c0​=0~22.62%22.62%~0✅ Reproduced
Exp 5: Entry percentile at c0=0c_0=0c0​=0~94.8%94.75%-0.05 ppt✅ Reproduced
Exp 5: Entry vol at c0=25c_0=25c0​=25 bp~21.17%21.17%~0✅ Reproduced
Exp 5: Entry percentile at c0=25c_0=25c0​=25 bp~83.1%83.07%-0.03 ppt✅ Reproduced
Exp 5: Entry vol at c0=50c_0=50c0​=50 bp~19.81%19.71%-0.10 vol pts✅ Within tolerance
Exp 5: Entry percentile at c0=50c_0=50c0​=50 bp~58.0%55.58%-2.42 ppt⚠️ Mild discrepancy
Exp 5: Immediate-entry regime at c0≥100c_0\ge100c0​≥100 bp~17.32%, immediate17.32%, immediate0✅ Reproduced
Exp 6: Mean time to entry~4.0 yr4.17 yr+0.17 yr✅ Reproduced
Exp 6: Mean holding time~2.3 yr2.37 yr+0.07 yr✅ Reproduced
Exp 7: Affine identity under state-dependent costExact≤ 5.2e-180✅ Reproduced
Exp 7: Table 4 example: c1=−0.20,cm=80c_1=-0.20, c_m=80c1​=−0.20,cm​=80 bp entry~22.54%, 96.5th pct22.54%, 96.49th pct~0✅ Reproduced
Exp 7: Table 4 example: c1=−0.20,cm=80c_1=-0.20, c_m=80c1​=−0.20,cm​=80 exit~18.46%, 0.9th pct18.46%, 0.89th pct~0✅ Reproduced
Exp 7: Table 4 example: c1=+0.30,cm=−120c_1=+0.30, c_m=-120c1​=+0.30,cm​=−120 bp entry~18.82%, 7.1th pct18.82%, 7.10th pct~0✅ Reproduced
Exp 7: Table 4 example: c1=+0.30,cm=−120c_1=+0.30, c_m=-120c1​=+0.30,cm​=−120 exit~22.31%, 95.4th pct22.31%, 95.35th pct~0✅ Reproduced

Summary:

The core theoretical and numerical conclusions of the paper are reproduced well. Experiments 1, 2, 3, 5, 6, and 7 are effectively reproduced. Experiment 4 is qualitatively reproduced and mostly quantitatively close, but the minimum-premium threshold for the non-degenerate window is materially above the paper’s reported ~1.09 vol points, which prevents a “fully reproduced” verdict.


Detailed Experiment Findings

Experiment 1 — Risk-Neutral Degeneracy Under Q

This is reproduced convincingly.

Analytical result:

  • EQ[e−rτΠτT]=Π0T=0.00140000E^Q[e^{-r\tau}\Pi_\tau^T] = \Pi_0^T = 0.00140000EQ[e−rτΠτT​]=Π0T​=0.00140000 exactly.

Monte Carlo result:

  • all stopping rules give expected values very close to 0.0014
  • the largest deviation is for “first passage above high”: -0.0000371, or -2.65%
  • but the standard error is 0.0000745, so the deviation is only about 0.50 SE

Interpretation:

  • pathwise distributions differ by stopping rule, but unconditional expectation does not
  • that is exactly the expected outcome from Lemma/Proposition/Corollary cited in the prompt

Image: Experiment 1 martingale test


Experiment 2 — Dated Variance Swap Under P

This looks well reproduced, though the repository provides less direct paper-number comparison than in later experiments.

Strong points:

  • carry identity verified at machine precision
  • grid convergence shown for the free boundary
  • long-case bT(0)b_T(0)bT​(0) stabilizes from 0.06766 to 0.06913 as grid resolution increases
  • short-case bT(0)=0.01357b_T(0)=0.01357bT​(0)=0.01357 on the 500×400 grid
  • reported long/short boundary ranges match the paper’s qualitative geometry

Interpretation:

  • the state reduction V(t,A,v)=ϵA+w(t,v)V(t,A,v)=\epsilon A + w(t,v)V(t,A,v)=ϵA+w(t,v) appears implemented correctly
  • the finite-difference VI is stable
  • the geometry under sign changes of ϵλ\epsilon\lambdaϵλ is consistent with the paper’s description

Images: Experiment 2 boundary in variance units

Experiment 2 boundary in volatility units

Experiment 2 long-case heatmap


Experiment 3 — Perpetual Exit Closed Form

This is one of the strongest reproductions in the repository.

Key metrics:

  • affine identity error: 2.95×10−172.95\times 10^{-17}2.95×10−17
  • smooth-pasting residuals: −4.32×10−14-4.32\times 10^{-14}−4.32×10−14 and −7.50×10−12-7.50\times 10^{-12}−7.50×10−12
  • analytic vs ODE threshold differences: 2.51×10−112.51\times 10^{-11}2.51×10−11 and 4.54×10−124.54\times 10^{-12}4.54×10−12

Thresholds:

  • Long: b∗=0.0252647b^*=0.0252647b∗=0.0252647, 15.89% vol
  • Short: b∗=0.0259003b^*=0.0259003b∗=0.0259003, 16.09% vol

Interpretation:

  • the hypergeometric closed-form implementation appears numerically correct
  • PDE/ODE cross-check supports reliability
  • the λ=0\lambda=0λ=0 optionality collapse is reproduced exactly as theory predicts

Image: Experiment 3 exit values


Experiment 4 — Entry-Exit Window and Expected-Life Statics

This is the only experiment with a clearly material numerical discrepancy.

What matches

The expected-life sweep is quite close to the paper:

  • 1y: 95.55 vs 94.7
  • 2y: 96.16 vs 95.4
  • 4y: 97.14 vs 96.6
  • 8y: 98.09 vs 97.8
  • 16y: 98.83 vs 98.9
  • 32y: 99.32 vs 99.4

These differences are all modest and preserve the key monotone pattern:

  • longer expected life makes entry less reachable

What differs materially

Minimum premium for any non-degenerate window:

  • paper: ~1.09 vol pts
  • reproduced: 1.237 vol pts

Difference:

  • +0.147 vol pts
  • about +13.5% relative to paper

That exceeds the prompt’s suggested return-like tolerance analog and is the main reason the repo is not “fully reproduced.”

Likely interpretation:

  • the qualitative finding is intact: there exists a premium floor below which no operationally meaningful round-trip exists
  • but the precise location of that floor is calibration-sensitive and was not hit exactly

Image: Experiment 4 non-degenerate window


Experiment 5 — Opportunity Cost of Staying Flat

This is reproduced very well.

Matches to paper:

  • c0=0c_0=0c0​=0: 22.62%, 94.75th percentile
  • c0=25c_0=25c0​=25 bp: 21.17%, 83.07th percentile
  • c0=50c_0=50c0​=50 bp: 19.71% vs target 19.81%; percentile 55.58% vs target 58.0%
  • c0≥100c_0\ge100c0​≥100 bp: immediate entry at 17.32%

Interpretation:

  • the obstacle shift by c0/δc_0/\deltac0​/δ is behaving exactly as theory predicts
  • exit threshold remains unchanged, also as predicted
  • the 50 bp percentile gap is noticeable but not economically important for the core claim: even modest idle cost dramatically lowers the entry threshold

Image: Experiment 5 idle-cost effect


Experiment 6 — Simulated Waiting and Holding Times

This is also reproduced well.

Baseline estimates:

  • mean entry time: 4.1709 years vs paper ~4.0
  • mean holding time: 2.3740 years vs paper ~2.3

Absolute differences:

  • entry: +0.17 years
  • hold: +0.07 years

These are small and consistent with simulation noise plus barrier-discretization bias.

Additional strength:

  • repository reports medians and quantiles, showing strong right-skew in entry time:
    • median 2.66 years vs mean 4.17 years
    • 90th percentile 10.29 years
  • this supports the paper’s “operational remoteness” narrative

Caveat:

  • time-step sensitivity indicates downward movement in both means as dt gets finer:
    • entry: 3.55 → 3.36 → 3.13
    • hold: 2.30 → 2.16 → 2.02
  • that suggests discretization bias in first-passage estimation is nontrivial
  • however, the main headline numbers still bracket the paper closely

Image: Experiment 6 hitting times


Experiment 7 — State-Dependent Carrying Cost

This looks successfully reproduced.

Direct paper-targeted rows:

  • c1=−0.20,cm=80c_1=-0.20, c_m=80c1​=−0.20,cm​=80 bp:
    • exit 18.464%
    • exit percentile 0.891%
    • entry 22.536%
    • entry percentile 96.489%
  • c1=+0.30,cm=−120c_1=+0.30, c_m=-120c1​=+0.30,cm​=−120 bp:
    • exit 22.311%
    • exit percentile 95.352%
    • entry 18.823%
    • entry percentile 7.099%

These are essentially exact matches to the expected outcomes in the prompt.

Other findings:

  • affine identity error is effectively zero
  • optionality persists at λ=0\lambda=0λ=0 when c1≠0c_1\neq0c1​=0
  • empty-region cases also appear, e.g. c1=−0.10c_1=-0.10c1​=−0.10, cm=40c_m=40cm​=40 bp

Image: Experiment 7 state-dependent carrying cost


Statistical & Economic Significance

Statistical significance

This repository is not performance-backtest oriented, so classic Sharpe/alpha/t-stats are mostly not applicable. The relevant significance checks here are:

  • machine-precision identity errors
  • smooth-pasting residuals
  • PDE-vs-analytic threshold agreement
  • Monte Carlo standard errors for simulated expectations and hitting times

By those standards:

  • Exp 1: stopping-rule differences are not statistically significant; all lie within MC uncertainty
  • Exp 3 and Exp 7: identity and smooth-fit residuals are orders of magnitude below any practical tolerance
  • Exp 6: standard errors are reasonably small (0.065 yr for entry, 0.025 yr for hold), though time-discretization error is comparable to or larger than MC error

Economic significance

Economically, the findings are meaningful:

  • under Q, timing is vacuous
  • under P, timing becomes meaningful and state-dependent
  • perpetual entry is much more selective than exit
  • adding idle-capital cost greatly reduces the extremity of entry thresholds
  • longer expected life worsens practical entry reachability
  • optionality can arise even without a VRP if carrying costs are state dependent

Those are exactly the paper’s economically relevant conclusions, and they are preserved in the reproduction.


Discrepancies

  • Experiment 4 minimum-premium threshold

    • Paper: ~1.09 vol points
    • Reproduced: 1.237 vol points
    • This is the main material discrepancy.
    • Most likely causes:
      • premium-targeting calibration differences
      • coarseness of the premium/carry-cost sweep grid
      • different reachability-screen implementation
      • slight differences in fixed physical-law calibration or percentile inversion
  • Experiment 5 at c0=50c_0=50c0​=50 bp

    • Paper percentile: ~58.0%
    • Reproduced: 55.58%
    • Likely minor numerical/calibration difference rather than methodological failure.
  • Experiment 6 discretization bias

    • Fine-step sensitivity suggests coarser-step waiting times are upward biased.
    • This does not overturn the result, but it lowers confidence in exact second-decimal timing estimates.

Methodology Issues

Only a few mild issues stand out:

  1. Experiment 4 window threshold sensitivity

    • The minimum premium result depends on grid search and recalibration.
    • A more refined parameter sweep or root-based premium threshold solver might reduce the gap vs the paper.
  2. Experiment 6 first-passage simulation

    • Reported baseline uses dt=1/252, while sensitivity results show meaningful bias.
    • A bridge correction or exact-transition crossing adjustment would improve precision.
  3. Repository reporting

    • Exp 2 results are more qualitative than paper-number specific.
    • More direct side-by-side paper values for Figure 3 would strengthen the reproduction claim.

None of these appears fatal, but they prevent a “fully reproduced” conclusion.


Reliability

Overall reliability is strong.

Positive signals:

  • 27/27 tests passed
  • multiple experiments verify exact identities to machine precision
  • closed-form and numerical solvers cross-validate closely
  • simulations include standard errors and sensitivity checks
  • qualitative patterns are consistent across all selected experiments

Minor red flags:

  • Exp 4 premium-window threshold is noticeably off
  • Exp 6 barrier-hitting times are somewhat dt-sensitive
  • some experiments rely on repository-authored summaries rather than extensive raw diagnostics

Net assessment:

  • high confidence in the structural conclusions
  • medium-to-high confidence in precise threshold levels
  • lower confidence only in the exact location of the Exp 4 window edge and fine-grained Exp 6 hitting-time estimates

Verdict

Final Decision: PARTIALLY REPRODUCED

Why: The repository reproduces the paper’s main findings and nearly all benchmark numbers across the seven selected experiments. The strongest evidence comes from exact analytical identities, near-zero smooth-pasting residuals, PDE/analytic agreement, and close matches for Table 2, Table 3, Table 4, and the simulation timing targets. The main exception is the Experiment 4 minimum premium threshold for a non-degenerate entry-exit window, which is materially higher than the paper’s reported value, so the reproduction is strong but not exact.


Embedded Figures

Experiment 1 martingale test

Experiment 2 boundary in variance units

Experiment 2 boundary in volatility units

Experiment 2 long-case heatmap

Experiment 3 exit values

Experiment 4 non-degenerate window

Experiment 5 idle-cost effect

Experiment 6 hitting times

Experiment 7 state-dependent carrying cost

Experiments

Risk-Neutral Degeneracy of Variance-Swap Timing Under Q

Verify that optimal stopping for exiting a dated variance swap is degenerate under the pricing measure Q because the mark-to-market, after removing trivial discounting, is a martingale. This experiment reproduces the paper’s analytical identities corresponding to Lemma 2.1, Proposition 2.2, and Corollary 2.3, and confirms numerically that all admissible stopping rules have identical expected value under Q.

Dated Variance Swap Under P: State Reduction, Carry Identity, and Variational-Inequality Boundary

Reproduce the reduction of the dated variance swap unwind problem under the physical measure P from a two-state problem in (A_t,v_t) to a one-state optimal stopping problem in v_t, verify the carry identity, and solve the finite-horizon variational inequality to recover the time-dependent free boundary b_T(t). This experiment reproduces Proposition 3.1, Proposition 4.1, Proposition 4.3, and the numerical geometry shown in Figure 3.

Perpetual Variance Swap Exit Rule in Closed Form and PDE Cross-Validation

Solve and validate the perpetual exit timing problem for a continuously settled variance swap with exponentially distributed termination. Show that the reduced stopping reward is affine in the CIR state v, derive the one-sided stopping rule, solve the smooth-pasting threshold equation using confluent hypergeometric functions, and cross-check the closed-form threshold against a numerical variational-inequality solver. This experiment reproduces Proposition 6.5, Corollaries 6.6–6.9, and Theorem 6.11, and recreates the geometry illustrated in Figure 1.

Perpetual Entry Rule, Entry-Exit Window, and Expected-Life Comparative Statics

Reproduce the perpetual entry timing problem, solve the coupled exit and entry thresholds, and map the non-degenerate entry-exit region as a function of variance risk premium magnitude and holding cost c_m. This experiment focuses on the asymmetry between entry and exit, the operational reachability screen based on stationary percentiles, and the deterioration of entry timing as expected contract life increases. It reproduces Proposition 7.1, Theorem 7.8, Proposition 7.9, Figure 2, and Table 2.

Opportunity Cost of Staying Flat and the Entry Threshold Shift

Quantify how adding an opportunity cost of idle capital while flat, c_0, changes the perpetual entry problem and dramatically lowers the entry threshold. This experiment reproduces Table 3 and highlights the entry asymmetry: absent a cost of waiting, optimal entry may require unrealistically extreme states, but introducing c_0 makes entry materially earlier.

Simulation of Operational Round-Trip Waiting and Holding Times Under P

Estimate operational timing characteristics of the perpetual entry-exit strategy by simulating the CIR variance process under P and measuring first-passage times to the entry threshold and from entry to exit. This experiment reproduces the paper’s reported waiting and holding times for the 'inside the window' calibration and provides Monte Carlo error bars and discretization checks.

State-Dependent Carrying Cost and Optionality Without Variance Risk Premium

Reproduce the extension in which optionality is generated not by a variance risk premium but by a state-dependent carrying charge c(v)=cm+c1vc(v)=c_{m}+c_{1} vc(v)=cm​+c1​. Show that the dated and perpetual structures are preserved, derive the modified reduced reward slope beta, and solve entry/exit thresholds for the lambda=0 case as in Appendix B and Table 4. Also test sensitivity to c_1 under a nonzero premium and identify the sign-flip point of beta.

Original paperRun QCA on your paper
v