Skip to main content

How to Answer Regression Questions

Premium

In this lesson, we'll teach you how to answer conceptual and applied regression interview questions.

Conceptual questions

Conceptual questions test your ability to apply regression concepts in real-world scenarios. The key is to communicate clearly and use practical examples to illustrate the theory.

Imagine you’re asked, “What’s the best way to handle multicollinearity in a regression analysis?” The answer would involve specifying the purpose of the regression:

  • If it is a statistical analysis to determine which features are most predictive of a given outcome, you would need to remove collinear features that conflict with the important features you are testing for significance.
  • If the purpose is solely prediction, you might leave in collinear features and simply test different feature sets and see which feature sets give the best cross-validated result.

Applied questions

Applied statistics interview questions allow interviewers to evaluate your approach and execution of statistical techniques and formulas. In addition to mathematical accuracy, interviewers are assessing your ability to communicate your approach in an organized way.

Below, we describe a 6-step framework for answering numerical and applied questions.

  • Step 1: Define the problem. Ask clarifying questions and present the problem statement.
  • Step 2: Identify assumptions and variables. Identify relevant outcomes and any conditions or criteria.
  • Step 3: Apply the relevant regression model, and check assumptions. Implement a regression model to analyze the relationship.
  • Step 4: Examine the coefficients. Determine the effect of the features on the target variable.
  • Step 5: Relate back to the business case. Interpret the result in the context of the problem.
  • Step 6: Check in with the interviewer. Be open to feedback and constructive criticism.

Regression Framework (updated)

Say you’re given the following interview question:

“Imagine you're working for a tech company that wants to analyze the relationship between website metrics (page load time, traffic source, and time on site) and conversion rate.

How would you analyze this and identify opportunities to improve conversions? Each row in the dataset would represent a single user interaction with the site.”

Step 1: Define the problem

When appropriate, ask clarifying questions and define the scope before starting to think about the solution. Defining the scope is particularly important to clarify what you will be focusing on, and what will be deprioritized.

Step 2: Identify assumptions and variables

Identify the relevant variables and any underlying assumptions.

When answering regression case questions, it is best practice to include stating the assumptions inherent in a regression analysis as shown in the example response below.

Some other assumptions might relate to the problem at hand, for example, what the business priority is, or what metric we are trying to optimize for. If you're unclear at this step, be sure to clarify with your interviewer as you shape your answer.

Step 3: Apply the regression model, and check assumptions

Implement a regression model to analyze the relationship between the variables.

If the target variable is continuous, you can use a linear regression. If the target variable is categorical, you are best off using a logistic regression. While both are common, logistic regression may come up more often since many targets are categorical.

Lastly, examine the residuals to ensure assumptions are met and check the model's R-squared value to assess its explanatory power.

Step 4: Examine the coefficients

After running the regression, examine your coefficients and determine the predictive power of each feature. This is the heart of the question.

These coefficients inform which features are most and least important, and also explain how they affect the underlying business case. Keep that in mind as examine them, and use that as the core information to underlie your business recommendations you'll share at the end.

If you are using linear regression, and the coefficients are significant without multicollinearity, you can infer that a 1 unit increase in the feature results in a coefficient-sized increase to the target.

If you are using logistic regression, you must calculate the Odds Ratio to determine the effect of a feature on the target variable.

Step 5: Relate back to the business case

Interpret the results in relation to the initial problem. Confirm that your analysis answers the original question.

Step 6: Check in with the audience

Be prepared to discuss your findings and consider alternative approaches or further refinements. For instance, you could explore additional metrics that might affect conversions or consider non-linear relationships if warranted by the data.