I want to simulate an array of stock prices by using simulated returns. For example, I set the initial stock price to be $70 and I created a panda series with 10 periods of returns:
returns = pd.Series([1.01,1.02,1.03,1.01,0.99,0.98,1.07,0.99,1.03,1.03])
How can I get a series of stock prices with 10 periods?
(the 1st price data should be initial stock price(70) * 1.01
; the 2nd should be 70 * 1.01 * 1.02
; the 3rd should be ... till the 20th.)
initial stock price = 70
returns = pd.Series([1.01,1.02,1.03,1.01,0.99,0.98,1.07,0.99,1.03,1.03])