Monte Carlo Simulation, Quantitative Finance, Python, Data Science, Data Visualization.
negative number, you’ll have losses (1 * -x = -x). # Where value in coins is equal to 0, replace 0 by -1 coins = np.where(coins == 0, -1, 1) coins array([[ 1, -1, 1, ..., -1, -1, -1], [-1, -1, -1, ..., -1, -1, 1], [-1, 1, 1, ..., -1, 1, 1], ..., [-1, -1, 1, ..., -1, -1, -1], [-1, 1, -1, ..., -1,