Get data science interview questions frequently asked at top companies.
Solve the problem before receiving the solution the next morning.
We send data science interview questions 3x per week
Interview question #1
Get answer to interview question #1
Interview question #2
Get answer to interview question #2
Interview question #3
Get answer to interview question #3
Suppose there are 15 different color crayons in a box. Each time one obtains a crayon, it is equally likely to be any of the 15 types. Compute the expected # of different colors that are obtained in a set of 5 crayons. (Hint: use indicator variables and linearity of expectation)
age | favorite_color | grade | name | |
---|---|---|---|---|
0 | 20 | blue | 88 | Willard Morris |
1 | 19 | blue | 92 | Al Jennings |
2 | 22 | yellow | 95 | Omar Mullins |
3 | 21 | green | 70 | Spencer McDaniel |
The dataframe is showing information about students. Write code using Python Pandas to select the rows where the students' favorite color is blue or yellow and their grade is at least 90.
Click here to view this problem in an interactive Google Colab notebook.
landfillID | weight | state | number_garbage_vehicles |
---|---|---|---|
12300 | 95 | California | 1005 |
12401 | 85 | California | 850 |
00992 | 105 | New York | 1300 |
00882 | 100 | New York | 1000 |
11100 | 55 | Michigan | 580 |
11201 | 75 | Michigan | 700 |
11207 | 60 | Michigan | 500 |
The majority of premium users (90%++) who canceled their subscription did so because they landed a job!
Data Interview Qs helped me cover all the basics of technical data science interviews, from SQL/Python to probability/statistics. The confidence/knowledge I gained from the service was incredibly useful, helping me land a data scientist position at Red Hat.
I've been on the mailing list since the initial beta, and found the questions to be very helpful with the technical side of my data science interview at Facebook, ultimately helping me land a role.
© 2021 Data Interview Questions.