Skip to content

Commit

Permalink
ENH: Update savings example 4
Browse files Browse the repository at this point in the history
  • Loading branch information
fumitoh committed May 3, 2023
1 parent f8a62f0 commit 24818fb
Show file tree
Hide file tree
Showing 4 changed files with 712 additions and 240 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -956,9 +956,9 @@ def inv_return_table():
sigma = 0.03
dt = 1/12

return np.exp(
(mu - 0.5 * sigma**2) * dt + sigma * dt**0.5 * std_norm_rand()
) - 1
return np.tile(np.exp(
(mu - 0.5 * sigma**2) * dt + sigma * dt**0.5 * std_norm_rand()) - 1,
(point_size(), 1))


def is_wl():
Expand Down Expand Up @@ -1920,6 +1920,8 @@ def surr_charge_table_stacked():
return surr_charge_table.stack().reorder_levels([1, 0]).sort_index()


point_size = lambda: len(model_point_table_ext())

# ---------------------------------------------------------------------------
# References

Expand All @@ -1939,10 +1941,10 @@ def surr_charge_table_stacked():

stats = ("Module", "scipy.stats")

scen_size = 10000
scen_size = 1000

model_point_1 = ("DataClient", 1916615684048)

model_point_moneyness = ("DataClient", 1916616522432)

model_point_table = ("DataClient", 1916615684048)
model_point_table = ("DataClient", 1916616522432)
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 24818fb

Please sign in to comment.