You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
strike_mesh.shape == (n_sigmas, n_strikes), the transpose of prices.
np.meshgrid is a bit confusing in this regard. np.mgrid produces arrays with the shape you apparently expect, but is 'called' with slices, not arrays.
This error is hidden to the casual user because the default invocation uses the same size (5) in both dimensions. But the contour plots are wrong (as shown in the tutorial text). The call should have lower values for lower sigmas (and higher strike prices).
The text was updated successfully, but these errors were encountered:
In mcdriver.py, the 3 arrays used for plotting do not match in shape.
prices.shape = (n_strikes, n_sigmas)
strike_mesh, sigma_mesh = np.meshgrid(strike_vals, sigma_vals)
strike_mesh.shape == (n_sigmas, n_strikes), the transpose of prices.
np.meshgrid is a bit confusing in this regard. np.mgrid produces arrays with the shape you apparently expect, but is 'called' with slices, not arrays.
This error is hidden to the casual user because the default invocation uses the same size (5) in both dimensions. But the contour plots are wrong (as shown in the tutorial text). The call should have lower values for lower sigmas (and higher strike prices).
The text was updated successfully, but these errors were encountered: