Skip to content

Instantly share code, notes, and snippets.

@ikatsov
Created February 26, 2019 19:18
Show Gist options
  • Save ikatsov/cc6e615ff1212695c19e7ab405511cfa to your computer and use it in GitHub Desktop.
Save ikatsov/cc6e615ff1212695c19e7ab405511cfa to your computer and use it in GitHub Desktop.
p = np.linspace(10, 16) # price range
d_means = np.exp(s.log_b + s.a * np.log(p).reshape(-1, 1))
plt.plot(p, d_means, c = 'k', alpha = 0.01)
plt.plot(p0, d0, 'o', c = 'r')
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment