Pharmanovia Interview Question

1)Explain safety stock calculation process 2) Linear regression process