Finance, Economics, Mathematics, Physics, Quantitative Finance.
[path[j] for j in range(len(path))] sample_final_values.append(value[-1]) plt.plot(time, value) # Plot settings plt.title('Sample Paths for FX Rate (USD/EUR)') plt.xlabel('Time to Maturity (in years)') plt.ylabel('FX Rate (USD/EUR)') plt.show() # Plot histogram of final FX rates