How to solve an inequality that contains standard deviation in python?
I have the past 19 days of stock price stored in the pd.dataframe and I am trying to find out the price P that is smaller than (mean – 2.5*standard deviation), where mean and standard deviation are calculated based on P and the past 19 days prices. The inequality will be something like below: