Data science interview questions

Want to become an expert in cracking Data science interview questions/Data analysis interview questions?

Start with practicing the questions below. Whether a question involves multiple choice or live coding, we will give you hints as you go and tell you if your answers are correct or incorrect.

After that, take our timed public Data science interview questions test.

To use our service for testing developers, purchase one of the paid plans for companies.


1. AB Test
Data science Bayes' theorem Probability Public New

Your company is running a test that is designed to compare two different versions of the company’s website.

Version A of the website is shown to 60% of users, while version B of the website is shown to the remaining 40% of users. The test shows that 8% of users who are presented with version A sign up for the company’s services, compared to 4% of users who are presented with version B.

If a user signs up for the company’s services, what is the probability that she/he was presented with version A of the website?

Easy  
10min
Solve question

2. Marketing Costs
Data science Linear regression Python Public New

Implement the desired_marketing_expenditure function, which returns the required amount of money that needs to be invested in a new marketing campaign to sell the desired number of units.

Use the data from previous marketing campaigns to evaluate how the number of units sold grows linearly as the amount of money invested increases.

For example, for the desired number of 60,000 units sold and previous campaign data from the table below, the function should return the float 250,000.

Previous campaigns

Campaign Marketing expenditure Units sold
#1 300,000 60,000
#2 200,000 50,000
#3 400,000 90,000
#4 300,000 80,000
#5 100,000 30,000
Easy  
20min
Solve question

3. Stock Prices
Data science Correlation Data aggregation Python Public New

You are given a list of stocks and their daily closing prices for a given period.

Your task is to determine which pair of stocks had the most highly (linearly) correlated daily percentage changes of closing prices.

For example, with the sample data below the function should return ['FB', 'MSFT'].

DAY

GOOG

FB

MSFT

AAPL

1

742.66

108.40

55.40

106.00

2

738.40

107.92

54.63

104.66

3

738.22

109.64

54.98

104.87

4

741.16

112.22

55.88

105.69

5

739.98

109.57

54.12

104.22

6

747.28

113.82

59.16

110.16

7

746.22

114.03

58.14

109.84

8

741.80

112.24

55.97

108.86

9

745.33

114.68

61.20

110.14

10

741.29

112.92

57.14

107.66

11

742.83

113.28

56.62

108.08

12

750.50

115.40

59.25

109.90

Easy  
30min
Solve question

If you feel ready, take one of our timed public Data science interview questions tests:
  • Data science test ( Easy )
Not exactly what you are looking for? Go to our For developers section.