Pergunta de entrevista da empresa Optiver

Can you derive the formula for ordinary linear regression?