Stock Market, Time Series Analysis, Time Series Forecasting, Python, Monte Carlo.
list(dfprices) mean=[] stdev=[] for column in columns: dfreturns[f'Log Daily Returns {column}']=np.log(dfprices[column]).diff() mean.append(dfreturns[f'Log Daily Returns {column}'][1:].mean()) stdev.append(dfreturns[f'Log Daily Returns {column}'][1:].std()) dfreturns=dfreturns.dropna() if