Datasets:
observation listlengths 253 253 | latent_state listlengths 253 253 | seed int64 42 42 | prng_key_info stringclasses 1
value | model_name stringclasses 1
value | model_version stringclasses 1
value | parameters stringclasses 1
value | time_grid stringclasses 1
value | n_paths int64 10k 10k | library_version stringclasses 1
value | dataset_version stringclasses 1
value | generated_at stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
[
100,
99.8993221027806,
100.42191040234462,
99.25833809480872,
99.1275970054587,
99.88378910823579,
97.73903389434956,
99.1409875287059,
99.10025921142554,
97.78401528534113,
96.95634865308995,
94.73673045966781,
94.77073478517823,
95.67780588220636,
96.25297094469856,
95.93639308544641... | [
0.04,
0.03656557820046698,
0.033310666514382505,
0.03645890584009761,
0.03479057658283003,
0.02778009890526436,
0.029130427034229564,
0.023618677385701763,
0.02460379309929109,
0.026370029813034383,
0.028282383705910633,
0.03225772716468279,
0.03713887343530364,
0.03483128772572391,
0.03... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
99.6632624412525,
99.8347935580103,
100.11883481050413,
100.6165917692328,
99.96200456744323,
99.95426968136944,
99.59426322017991,
101.16648820603359,
101.5002421267747,
103.05671996967773,
103.43797613854939,
102.87063983658871,
103.33275236819341,
103.4013788811348,
103.1395356... | [
0.04,
0.044826488398088046,
0.041271975961364345,
0.03839253060745706,
0.03047060573981785,
0.027626032816197944,
0.02936295678111864,
0.028634754570583214,
0.029086260809234377,
0.026138864554991537,
0.020092752898881697,
0.01919493854215991,
0.022412774810392264,
0.020797739996021736,
... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
102.9918487067373,
103.73686827779659,
104.15132351133691,
103.4511833834537,
103.75158090628693,
102.2735042560767,
99.54256108622802,
99.55571478596293,
97.85101952493609,
96.1349588833651,
94.10519491194192,
92.8305047970126,
94.80455877916954,
94.72123745989119,
93.24673480271... | [
0.04,
0.036075102176695246,
0.034244990951792884,
0.03368569823762066,
0.033482229139454804,
0.03054324340634223,
0.03431868251581775,
0.03938950776455611,
0.03725515337412001,
0.041096692621557324,
0.04891390015230658,
0.047969833119306915,
0.05200963620772786,
0.04897799133402354,
0.05... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
98.76221535088501,
98.35790194125074,
100.16481432172544,
102.33703321020202,
103.79668640330114,
103.19325140677475,
103.64299913930185,
104.02868814664824,
105.40128037551604,
105.53509223461612,
106.70557783982629,
107.40024467584269,
108.48778515821039,
108.1967642350234,
109.... | [
0.04,
0.04297741530442119,
0.04693515481610851,
0.038333814295276186,
0.029932759895931547,
0.026628692721276014,
0.02731110103284993,
0.02896043748438831,
0.028377224143752856,
0.02680211569089362,
0.026497219267674794,
0.024599340864296212,
0.02375088564690169,
0.025258870810160688,
0.... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
100.43052803329756,
100.75440250113536,
99.03354688821997,
98.57290363468644,
98.31132038833823,
100.33002306381903,
98.08456069295241,
97.73159953428403,
96.70419018147072,
97.98683250741435,
98.79582965743852,
97.54457598189289,
97.50213154097956,
97.0759146102017,
97.1473138859... | [
0.04,
0.037421207850200304,
0.03923530335794163,
0.04678788855949804,
0.04810252517126922,
0.048022937855847034,
0.043046778231583455,
0.054952997651490726,
0.05452083260495045,
0.05376102130044919,
0.055845242476931484,
0.053902357295737356,
0.05669954576571408,
0.05581177467395841,
0.0... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
96.88892897066575,
96.91919728263287,
96.39192043527378,
95.69174585366196,
95.8828235698673,
96.83015130704638,
95.27898733080161,
95.31648632285544,
92.2610739185326,
91.50669141651937,
93.20562973971286,
92.22661109588213,
91.65851339985932,
92.34371763814825,
95.76719637042574... | [
0.04,
0.04772329750456364,
0.05114769776947639,
0.04559523849397139,
0.04409265590962512,
0.04958107489833432,
0.049021220428332506,
0.0512293432501629,
0.05526280916945279,
0.0654521618079393,
0.06955230422526996,
0.05764606326455661,
0.05975834062666133,
0.06503875579292631,
0.06292621... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
100.86600965267924,
101.68647213630156,
100.30201460842702,
100.34399615958223,
100.48836354304257,
102.81137530650484,
105.21047750655299,
105.16800469369889,
103.89847023622819,
103.91676453333291,
103.6560941421943,
103.01671051440857,
104.24301329236603,
102.85457335697446,
10... | [
0.04,
0.03643738423795007,
0.034752229007528876,
0.036858297177544276,
0.03651839532382692,
0.034299283985609094,
0.029253203209791443,
0.021009831364735984,
0.0227526369735417,
0.02575398550405119,
0.024501761394293962,
0.027065476164826536,
0.02761386916243135,
0.026166623095318208,
0.... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
98.83323903067792,
98.50701905318046,
97.28336977191232,
95.22783836151297,
95.2989368964354,
96.8348092551872,
97.31257611940859,
96.03280098689459,
94.5607369300222,
97.16319491537193,
96.79332319074892,
96.85929382508691,
97.55249525825296,
98.74853020901749,
99.35810988399606,... | [
0.04,
0.04886094803701101,
0.05042436688995073,
0.051126556809398024,
0.04905482934315331,
0.048858196616640474,
0.04504723868968678,
0.04087942363407932,
0.04658773113737527,
0.050785332492645524,
0.04254531726674514,
0.041211072337213085,
0.037186132259753105,
0.03167853545482322,
0.02... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
98.23758125674203,
96.49073238809098,
96.40396216445075,
95.89713190536469,
97.00016258591938,
94.76774810845006,
92.46191066002963,
92.61432680475471,
93.34512574658179,
92.83043314838112,
92.15014468126861,
91.58387522926866,
90.74342502014868,
91.40514256834976,
92.458875833464... | [
0.04,
0.045144027620813355,
0.04521183714182447,
0.048886441592281976,
0.04981248583556823,
0.05106541065078936,
0.06034882306925625,
0.06068356248595044,
0.06289825566950864,
0.06160395192751346,
0.06375384118284151,
0.06528813097592488,
0.06396865683082083,
0.057295185917499984,
0.0604... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
101.39101382401749,
102.52054467770134,
102.88734405388573,
101.77917560881639,
98.80523160518744,
98.54000445743841,
97.13669140934145,
99.45169131603036,
100.01972918424175,
99.06825455886964,
97.81645137814462,
98.38520081589287,
96.92046305807933,
95.17950664608267,
96.8682642... | [
0.04,
0.03532463155537775,
0.031098871434166227,
0.03156563550138642,
0.03310433244410106,
0.04225853531955848,
0.045487826684862925,
0.04645781193066634,
0.0388986026481131,
0.03660955688208179,
0.03741485007782785,
0.04055599918845343,
0.041280470924302634,
0.0438446715662224,
0.050245... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
98.30745980513382,
98.61940644801874,
97.39794425998048,
97.10398299426951,
97.27983807674464,
98.00114055955264,
97.41248139072266,
95.88395245395313,
93.93028197722606,
92.10745177271882,
92.60951872422751,
90.8444516716036,
91.00315164130227,
90.65675343585882,
90.3762669501984... | [
0.04,
0.04183427570852031,
0.0444307905330967,
0.04892590478991653,
0.05005680290385644,
0.05126126849505862,
0.049039204997333496,
0.04590463106232204,
0.04788184183860657,
0.051293288992556064,
0.0602568533704672,
0.05466375651850806,
0.058064326485270545,
0.05701377729856308,
0.052722... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
99.65688449402346,
99.35988551382279,
101.72795296834902,
102.55481986993425,
102.08733842706096,
101.76981888809206,
102.49698481434464,
102.56237564852735,
102.88132940648309,
102.6450702374191,
104.56591544126272,
103.67202107929165,
104.46847265903901,
103.64768839877433,
104.... | [
0.04,
0.04420999279316991,
0.04316492883171032,
0.03825929957762052,
0.0337729248820392,
0.0321089955865556,
0.030008584744023077,
0.030086714305615284,
0.030714406523263814,
0.028809716790268704,
0.03552938599017401,
0.02898064901075649,
0.03111376623149164,
0.033564802394379686,
0.0362... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
[
100,
99.51977665551378,
98.69177394585807,
97.49896037501486,
96.72834956352438,
96.49438791354804,
94.53271606304457,
93.37426581128018,
94.2706848178546,
92.0657697520928,
91.99400217100961,
89.31970464207386,
87.49169253846372,
88.25629415629963,
89.69036733248926,
90.10742044140493... | [
0.04,
0.04105521997112505,
0.045232168006360346,
0.04317922969177501,
0.04049503019358645,
0.04794506385251105,
0.05062025137744548,
0.050255115127888966,
0.04633082971203077,
0.05146827504599488,
0.055695961133806406,
0.06141514939484792,
0.06443426441846194,
0.06349412635816105,
0.0571... | 42 | jax.random.PRNGKey(42) | Heston | 0.1.0 | {"mu": 0.0, "kappa": 2.0, "theta": 0.04, "xi": 0.3, "rho": -0.7, "v0": 0.04, "S0": 100.0} | [0.0, 0.003968253968253968, 0.007936507936507936, 0.011904761904761904, 0.015873015873015872, 0.01984126984126984, 0.023809523809523808, 0.027777777777777776, 0.031746031746031744, 0.03571428571428571, 0.03968253968253968, 0.04365079365079365, 0.047619047619047616, 0.051587301587301584, 0.05555555555555555, 0.059523809... | 10,000 | 1.0.0 | 1.0.0 | 2026-07-01T06:53:08.184642+00:00 |
QuantScenarioBench — Heston Benchmark Dataset
This dataset is a representative benchmark sample generated by QuantScenarioBench, a JAX-native framework for reproducible stochastic market scenario generation.
It contains 10,000 independent simulation paths under the Heston stochastic volatility model over 252 daily time steps (1 year horizon). Each path includes both the asset price trajectory (observation) and the instantaneous variance trajectory (latent state).
Need a larger or custom dataset? This file is a fixed benchmark sample. To generate datasets at any scale — more paths, different parameters, non-uniform time grids, or other market models — use the QuantScenarioBench library directly:
pip install quantscenariobenchSee the GitHub project for full documentation and examples.
Model Description
The Heston model (Heston, 1993) extends Black-Scholes by making the instantaneous variance $v_t$ itself a stochastic process. The asset price and variance evolve jointly:
Key properties:
- Stochastic volatility — variance fluctuates around its long-run mean $\theta$ and reverts at speed $\kappa$
- Leverage effect — negative $\rho$ correlates downward price moves with rising volatility (realistic for equities)
- Feller condition — $2\kappa\theta \geq \xi^2$ ensures the variance process stays strictly positive
Parameters used for this dataset
| Parameter | Value | Description |
|---|---|---|
S0 |
100.0 | Initial asset price |
mu |
0.0 | Drift (risk-neutral; $r = 0$) |
kappa |
2.0 | Variance mean-reversion speed (half-life ≈ 4 months) |
theta |
0.04 | Long-run variance ($= 20%$ vol) |
xi |
0.3 | Vol-of-vol |
rho |
−0.7 | Asset–variance correlation (leverage effect) |
v0 |
0.04 | Initial variance ($= 20%$ vol) |
Feller condition satisfied: $2 \times 2.0 \times 0.04 = 0.16 \geq 0.3^2 = 0.09$.
The risk-neutral setting (mu=0) and identical initial vol (v0=theta=0.04) to the Black-Scholes benchmark make ATM option prices directly comparable across models.
Simulation Configuration
| Field | Value |
|---|---|
| Time grid | linspace(0.0, 1.0, 253) — 252 daily steps over 1 year |
| Number of paths | 10,000 |
| PRNG seed | 42 |
| Backend | JAX CPU (float64) |
| Library version | 1.0.0 |
| Dataset version | 1.0.0 |
Column Schema
All QuantScenarioBench datasets share the same 12-column schema regardless of the market model used. This enables direct cross-model comparison by loading datasets with identical code.
| Column | Type | Description |
|---|---|---|
observation |
list<float64> |
Asset price path $S_{t_0}, \ldots, S_{t_T}$; one row per path |
latent_state |
list<float64> |
Instantaneous variance path $v_{t_0}, \ldots, v_{t_T}$; same length as observation |
seed |
int64 |
Integer PRNG seed used to reproduce this batch |
prng_key_info |
string |
JAX PRNGKey derivation description |
model_name |
string |
Heston |
model_version |
string |
Model specification version |
parameters |
string |
JSON-encoded model parameters |
time_grid |
string |
JSON-encoded array of 253 time points |
n_paths |
int64 |
10000 |
library_version |
string |
quantscenariobench library version |
dataset_version |
string |
Dataset version identifier (independent of library version) |
generated_at |
string |
UTC ISO-8601 generation timestamp |
Usage
from datasets import load_dataset
import numpy as np
ds = load_dataset("QuantScenarioBench/qsb-heston", split="train")
# Each row is one simulated path
row = ds[0]
prices = np.array(row["observation"]) # shape (253,) — asset price
variances = np.array(row["latent_state"]) # shape (253,) — instantaneous variance
vols = np.sqrt(variances) # instantaneous vol
print(f"S0={prices[0]:.2f} S_T={prices[-1]:.2f} avg_vol={vols.mean():.3f}")
# Stack all paths
all_prices = np.stack([ds[i]["observation"] for i in range(len(ds))])
all_vars = np.stack([ds[i]["latent_state"] for i in range(len(ds))])
print(all_prices.shape) # (10000, 253)
print(all_vars.shape) # (10000, 253)
Cross-model comparison
All three benchmark datasets share the same schema and time grid:
bs = load_dataset("QuantScenarioBench/qsb-black-scholes", split="train")
h = load_dataset("QuantScenarioBench/qsb-heston", split="train")
rb = load_dataset("QuantScenarioBench/qsb-rough-bergomi", split="train")
import numpy as np
for name, ds in [("BS", bs), ("Heston", h), ("rBergomi", rb)]:
terminals = np.array([ds[i]["observation"][-1] for i in range(len(ds))])
print(f"{name:10s} mean={terminals.mean():.2f} std={terminals.std():.2f}")
Generate a custom dataset
from quantscenariobench.api import simulate
from quantscenariobench.export import export_parquet, publish_to_hub
from quantscenariobench.interface import TimeGrid
from quantscenariobench.models import Heston
import jax.numpy as jnp
model = Heston(mu=0.0, kappa=1.5, theta=0.06, xi=0.4, rho=-0.8, v0=0.06, S0=100.0)
tg = TimeGrid(jnp.linspace(0.0, 2.0, 505)) # 2-year horizon
scenario = simulate(model, tg, n_paths=100_000, seed=99)
export_parquet([scenario], "my_heston_dataset.parquet")
# or: publish_to_hub([scenario], "my-org/my-heston-dataset")
Reproducibility
Simulation paths are bit-identical across runs on the same computational backend when using the same seed, library_version, and model parameters.
Cross-backend bit-identity is not guaranteed. JAX floating-point operations may produce different bit patterns across hardware backends (CPU, GPU, TPU) even with identical inputs. The seed, prng_key_info, and library_version columns document full provenance so that any differences can be traced to backend changes rather than parameter or code drift.
Related Datasets
| Model | Dataset |
|---|---|
| Black-Scholes | QuantScenarioBench/qsb-black-scholes |
| Heston (this dataset) | QuantScenarioBench/qsb-heston |
| Rough Bergomi | QuantScenarioBench/qsb-rough-bergomi |
All three datasets use the same time grid, seed, and initial spot for direct cross-model comparison.
Citation
If you use this dataset or QuantScenarioBench in your research, please cite the GitHub repository.
- Downloads last month
- 31