# The 5 Basic Types of Data Science Interview Questions

Data science interviews are notoriously complex, but most of what they throw at you will fall into one of these categories.

**By Roger Huang, Springboard**.

*This is an excerpt of Springboardâ€™s guide to data science interviews.*

### "Always explain the thought process behind your choices and the assumptions that guide them."

Data science interviews are daunting, complicated gauntlets for many. But despiteÂ the ways they're evolving, the technical portion of the typical data science interview tends to be pretty predictable. TheÂ questions most candidatesÂ face usually cover behavior, mathematics, statistics, coding, and scenarios. However they differ in their particulars, those questions may be easier to answer if you can identify which bucket each one falls into. Here's a breakdown, and what you can do to prepare.

**1. BEHAVIORAL QUESTIONS**

Similar to any other interview, these questions are meant to test for yourÂ soft skillsÂ and see if you fit in culturally with the company.

Example:Â What have you liked and disliked about your previous position?

The intent here is to identify whether the role youâ€™re interviewing for suits your personality and temperament, and to identifyÂ why youâ€™re moving onfrom a previous position.

Don't overthink it or imagine that the key here is really any different from any other type of interview: Just understand the role well, avoid talking about issues you've had in the past with specific people, and be professional when describing what you disliked and why. A data science role may call for an analytical mind, but hiring managers still want to hear what makes you passionate.

Â

**2. MATHEMATICS QUESTIONS**

Data scientist roles where you're expected not only to implement algorithms but also tweak them for specific purposes will usually come with mathematical questions.

Example:Â How does the linear regression algorithm determine what the best coefficient values are?

The point is to see how deeply you understand linear regression, which is critical because in many data science roles you wonâ€™t just work with algorithms in a black box; youâ€™ll actually put them into action. This category of question tests how much you know about what's actually happening beneath the surface.

So this is one of those "show your work" moments. Trace out every step of your thinking and write down the equations. As youâ€™re writing out the solution, describe your thought process so the interviewer can see your mathematical logic at work.

Â

**3. STATISTICS QUESTIONS**

It goes without saying that a strong grasp of statistics is important for solving different data science problems. Chances are youâ€™ll be tested on your ability to reason statistically and your knowledge of statistical theory.

Example:Â What is the difference between Type I error and Type II error?

Proving your mettle requires showing you understand the fundamentals of statistics. But more than that, interviewers also want to see whether you're capable of using the technical language and logic of statistics to grapple with ideas you may not often approach that wayâ€”and still communicate them clearly. So be no-nonsense in your response. Use the relevant statistical knowledge to arrive at your answer, but be as direct as possible about whatever you're asked to define.

**4. CODING QUESTIONS**

A big part of most data sciences roles is programming to implement algorithms at scale. These questions are similar to the ones candidates face in software engineering interviews; they're meant to test your experience with the technical tools a company uses and your overall knowledge of programming theory.

Example:Â Develop a K Nearest Neighbors algorithm from scratch.

Showing you can write out the thinkingÂ *behind*Â an algorithm and deploy it efficiently under time constraints is a great way to demonstrate your engineering skills. This kind is usually posed to data scientists who have a knowledge both of algorithms and their technical implementation, or data engineers who are given some context on what the algorithm is.

In any event, this type of question tests your understanding of matrix computation and how to deal with vectors and matrices. So start by going through a sample set of inputs and outputs, and manually work out the answer. As you do, keep an eye onÂ time/space complexity.

**5. SCENARIO QUESTIONS**

Last but not least, scenario questions are designed to test your experience and knowledge in different fields of data science, to find out the practical limits of your abilities. Demonstrate your applied knowledge as thoroughly as you can, and youâ€™ll come off well in any case analysis.

Example:Â If you were a data scientist at a web company that sells shoes, how would you build a system that recommends shoes to visitors?

This question is meant to see how you envision your work delivering products or services from end to end. Scenario questions donâ€™t test for knowledge in every field; they're meant to explore a product's life cycle from beginning to delivery and see what limits the candidate might have at each stage of that process. But these questions also evaluate holistic knowledgeâ€”for instance, what it takes to manage a team to deliver a final productâ€”to determine how candidates perform in team situations.

Here, too, the usual job-interview advice applies: Be honest about where you can add a lot of value, but donâ€™t be shy about where you expect to get a little bit of help from your teammates. Try to relate how your technical knowledge can help with business outcomes, and always explain the thought process behind your choices and the assumptions that guide them. AndÂ donâ€™t hesitate to ask questionsÂ that can help you suss out an interviewer's intentions so you can better tailor your answers.

Data science interviews can be tricky straddling actsâ€”you're challenged to program and come up with technical algorithms on the spot, but you're also measured by much the same criteria for nontechnical roles. Your statistical and mathematical knowledge will be tested, as will your ability to lead a team, communicate, persuade, and influence.

So instead of trying to prepare for every imaginable question, prepare for these fiveÂ *types*Â of question. You can't anticipate every question that's thrown at you, but you can pretty accurately forecast what a hiring manager's needs and expectations might beâ€”then set yourself up to meet them.

**Bio: Roger Huang** works in Growth at Springboard. He broke into a career in data by analyzing $700 million worth of sales for a major pharmaceutical company. Now he writes content that compiles insights from Springboard's network of data experts to help others do the same.

This post originally appeared on Fast Company. Reposted with permission.

**Related:**

- 21 Must-Know Data Science Interview Questions and Answers
- 10 Tips to Improve your Data Science Interview
- The Secret to a Perfect Data Science Interview