Skip to content

Instantly share code, notes, and snippets.

@mtmoses
Created August 6, 2021 04:14
Show Gist options
  • Save mtmoses/68172cd05811fb2d5ec669a647b4cf48 to your computer and use it in GitHub Desktop.
Save mtmoses/68172cd05811fb2d5ec669a647b4cf48 to your computer and use it in GitHub Desktop.
new_cascade = list(np.array(lognormal_cascade(k=K, v=1, ln_lambda = simulated_lambda, ln_theta = simulated_sigma)).flat)
tradingtime = 2**K*np.cumsum(new_cascade)/sum(new_cascade)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment