SpinTheMic
Pro

Interview practice question

Running and interpreting a regression in statsmodels

Data Analyst · Python and Pandas · Experienced

You want to understand how price, promotion and region affect weekly sales. How would you do it in statsmodels, and what would you check?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • smf.ols("sales ~ price + promo + C(region)", data).
  • Interpret coefficients, CIs.
  • Check residuals, heteroscedasticity (robust SEs).
  • Multicollinearity (VIF).
  • Log transforms for elasticity.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics