# 20 Most Popular Data Science Interview Questions

### R Bhargav

Last updated October 4, 2018

• 94388 Views

Harvard Business Review referred to it as “The Sexiest Job of the 21st Century.” Glassdoor placed it in the first position on the 25 Best Jobs in America list. According to IBM, demand for this role will soar 28% by 2020.

It should come as no surprise that in the new era of Big Data and machine learning, data scientists are becoming rock stars. Companies that are able to leverage massive amounts of data to improve the way they serve customers, build products and run their operations will be positioned to thrive in this economy.

It’s simply impossible to ignore the importance of data and our capacity to analyze, consolidate, and contextualize it. Data scientists are relied upon to fill this need, but there is a serious dearth of qualified candidates worldwide.

If you’re moving down the path to be a data scientist, you need to be prepared to impress prospective employers with your knowledge. In addition to explaining why data science is so important, you’ll need to show that you're technically proficient with Big Data concepts, frameworks, and applications.

Here's a list of 20 of the most popular questions you can expect in an interview and how to frame your answers.

1. What are feature vectors?

Answer:

A feature vector is an n-dimensional vector of numerical features that represent some object. In machine learning, feature vectors are used to represent numeric or symbolic characteristics, called features, of an object in a mathematical, easily analyzable way.

2. Explain the steps in making a decision tree.

Answer:

1. Take the entire data set as input.
2. Look for a split that maximizes the separation of the classes. A split is any test that divides the data into two sets.
3. Apply the split to the input data (divide step).
4. Re-apply steps 1 to 2 to the divided data.
5. Stop when you meet some stopping criteria.
6. This step is called pruning. Clean up the tree if you went too far doing splits.

3. What is root cause analysis?

Answer:

Root cause analysis was initially developed to analyze industrial accidents but is now widely used in other areas. It is a problem-solving technique used for isolating the root causes of faults or problems. A factor is called a root cause if its deduction from the problem-fault-sequence averts the final undesirable event from reoccurring.

4. What is logistic regression?

Answer:

Logistic Regression is also known as the logit model. It is a technique to forecast the binary outcome from a linear combination of predictor variables.

5. What are Recommender Systems?

Answer:

Recommender systems are a subclass of information filtering systems that are meant to predict the preferences or ratings that a user would give to a product.

6. Explain cross-validation.

Answer:

It is a model validation technique for evaluating how the outcomes of a statistical analysis will generalize to an independent data set. It is mainly used in backgrounds where the objective is forecast and one wants to estimate how accurately a model will accomplish in practice. The goal of cross-validation is to term a data set to test the model in the training phase (i.e. validation data set) in order to limit problems like overfitting and gain insight on how the model will generalize to an independent data set.

7. What is Collaborative Filtering?

Answer:

The process of filtering used by most recommender systems to find patterns and information by collaborating perspectives, numerous data sources, and several agents.

8. Do gradient descent methods at all times converge to a similar point?

Answer:

No, they do not because in some cases they reach a local minima or a local optima point. You would not reach the global optima point. This is governed by the data and the starting conditions.

9. What is the goal of A/B Testing?

Answer:

This is a statistical hypothesis testing for randomized experiments with two variables, A and B. The objective of A/B testing is to detect any changes to a web page to maximize or increase the outcome of a strategy.

10. What are the drawbacks of the linear model?

Answer:

Some drawbacks of the linear model are:

• The assumption of linearity of the errors.
• It can’t be used for count outcomes or binary outcomes
• There are overfitting problems that it can’t solve

Nervous about your interview? Enroll in our Data Science course and walk into your next interview with confidence.

11. What is the Law of Large Numbers?

Answer:

It is a theorem that describes the result of performing the same experiment a large number of times. This theorem forms the basis of frequency-style thinking. It says that the sample mean, the sample variance and the sample standard deviation converge to what they are trying to estimate.

12.  What are confounding variables?

Answer:

These are extraneous variables in a statistical model that correlate directly or inversely with both the dependent and the independent variable. The estimate fails to account for the confounding factor.

13. Explain star schema.

Answer:

It is a traditional database schema with a central table. Satellite tables map IDs to physical names or descriptions and can be connected to the central fact table using the ID fields; these tables are known as lookup tables and are principally useful in real-time applications, as they save a lot of memory. Sometimes star schemas involve several layers of summarization to recover information faster.

14. How regularly must an algorithm be updated?

Answer:

You will want to update an algorithm when:

• You want the model to evolve as data streams through infrastructure
• The underlying data source is changing
• There is a case of non-stationarity

[Planning for Data Science Certification in R - Programming? Here're 100 Data Science Foundations Questions. Take this free practice test to know where you stand!]

15.  What are Eigenvalue and Eigenvector?

Answer:

Eigenvectors are for understanding linear transformations. In data analysis, we usually calculate the eigenvectors for a correlation or covariance matrix. Eigenvalues are the directions along which a particular linear transformation acts by flipping, compressing or stretching.

16. Why is resampling done?

Answer:

Resampling is done in any of these cases:

• Estimating the accuracy of sample statistics by using subsets of accessible data or drawing randomly with replacement from a set of data points
• Substituting labels on data points when performing significance tests
• Validating models by using random subsets (bootstrapping, cross validation)

17. Explain selective bias.

Answer:

Selection bias, in general, is a problematic situation in which error is introduced due to a non-random population sample.

18. What are the types of biases that can occur during sampling?

Answer:

• Selection bias
• Under coverage bias
• Survivorship bias

19. Explain survivorship bias.

Answer:

It is the logical error of focusing aspects that support surviving some process and casually overlooking those that did not because of their lack of prominence. This can lead to wrong conclusions in numerous different means.

20. How do you work towards a random forest?

Answer:

The underlying principle of this technique is that several weak learners combined to provide a strong learner. The steps involved are

• Build several decision trees on bootstrapped training samples of data
• On each tree, each time a split is considered, a random sample of mm predictors is chosen as split candidates, out of all pp predictors
• Rule of thumb: At each split m=p√m=p
• Predictions: At the majority rule

For data scientists, the work isn’t easy, but it’s rewarding and there are plenty of available positions out there. Be sure to prepare yourself for the rigors of interviewing and stay sharp with the nuts-and-bolts of data science.

Here're 50 Data Science with Python Exam Questions. Take this free practice test to know where you stand!

### Find our Data Science Certification Training - R Programming Online Classroom training classes in top cities:

Name Date Place
Data Science Certification Training - R Programming 4 Nov -20 Nov 2018, Weekdays batch Your City View Details
Data Science Certification Training - R Programming 10 Nov -9 Dec 2018, Weekend batch Dallas View Details
Data Science Certification Training - R Programming 23 Nov -22 Dec 2018, Weekdays batch Chicago View Details

### About the Author

An experienced process analyst at Simplilearn, the author specializes in adapting current quality management best practices to the needs of fast-paced digital businesses. An MS in MechEng with over eight years of professional experience in various domains, Bhargav was previously associated with Paradox Interactive, The Creative Assembly, and Mott MacDonald LLC.

# {{detail.h1_tag}}

### {{detail.full_name}}

Published on {{detail.created_at| date}} {{detail.duration}}

• {{detail.date}}
• Views {{detail.downloads}}
• {{detail.time}} {{detail.time_zone_code}}

Registrants:{{detail.downloads}}

Downloaded:{{detail.downloads}}

#### Hosted By

{{author.author_name}}

{{author.author_name}}

{{author.about_author}}

### About the {{detail.about_title && detail.about_title != null ? detail.about_title : 'Ebook' }}

First Name*
Last Name*
Email*
Company*
Phone Number*

#### Download the {{detail.about_title && detail.about_title != null ? detail.about_title : 'Ebook'}}

Email
{{ queryPhoneCode }}
Phone Number

Name Date Place
{{classRoomData.Date}} {{classRoomData.Place}} View Details

### About the Author

{{detail.author_biography}}

### About the Author

{{author.about_author}}

### Recommended articles for you

{{ article.title }}

Article