Pregunta de entrevista de CME Group

Beyes formula. Conditions for Linear regression. Python string coding question.