45 Data Analyst Interview Questions

Interviewing for a role as a analyst? You've come to the right place! Below we've curated a list of data analyst interview questions from multiple sources to help make your preparation easier.

For a data analyst interview, the interviewer will ask a wide range of topics covering statistics, programming (Python and/or SQL), data modeling, and overall business acumen. This guide contains 45 data analyst interview questions, broken out by high-level topics.

If you're interested in practicing further (and having the option to receive solutions), sign up for our email newsletter, where we send a few interview questions per week.


Statistics are the guiding principles to collection, organizing, and interpreting data. A general familiarity with stats will be necessary for any data analyst. You don't necessarily have to be an expert in statistics, but use the job description to gauge the level of familiarity necessary.

  • What is r^2? What are some other metrics that could be better than r^2 and why?
  • What is sampling? Can you provide an example of a sampling method? Can you provide an example of a time in the past where you needed to use sampling?
  • What is Type I error and how is it different from Type II error?
  • How would you explain a linear regression to a non-technical person?
  • What are the assumptions of linear regression?
  • What is selection bias?
  • How would you explain a logistic regression to a non-technical person?
  • Be prepared to answer conditional probability questions and Bayesian probability questions.
  • What are the assumptions of a logistic regression?
  • What is a p-value?
  • What is a confidence interval and how do you interpret it?
  • How would you estimate the disease probability in a city, given the probability is very low nationwide?
  • In any 15-minute interval, there is a 20% probability that you will see at least one shooting star. What is the probability that you see at least one shooting star in the period of an hour?
  • You have an 50-50 mixture of two normal distributions with the same standard deviation. How far apart do the means need to be in order for this distribution to be bimodal?
  • A couple tells you that they have two children, at least one of which is a girl. What is the probability that they have two girls?
  • What is the probability of rolling a 4 or 7 for two 6 sided dice?
  • On a dating site, users can select 1 out of 10 adjectives to describe themselves. A match is declared between two users if they match on at least 4 adjectives. Given a pool of 10 independent users, what is the probabilty that at least two will be a match?
  • You have two coins, one of which is fair and comes up heads with a probability 1/2, and the other which is biased and comes up heads with probability 3/4. You randomly pick coin and flip it twice, and get heads both times. What is the probability that you picked the fair coin?


Another large portion of data analytics is aggregating and processing data. As a data analyst, having a familiarity with programming can provide you an advantage in the interview process. It's common for data analysts to be fluent in SQL/Excel, but often Python is not an explicit requirement. By knowing at least a little bit of programming you can stand out both in the interview process and on the job (e.g. using programming to automate work/analysis will go a long way). Below are some practice data science interview questions covering Python and general programming.

  • How would you clean a data set in Python (or any other language)?
  • How would you drop null values in a Pandas dataframe?
  • Given a list of tweets, determine the top 10 most used hashtags. You can assume the list is provided in a Python dataframe.
  • Write an algorithm that can calculate the square root of a number, using Python.
  • Explain some examples of automating data analysis/related processes using programming.
  • How would you replace all NaN values in a Pandas dataframe?
  • {Whiteboard} Create a simple Python function to take in an integer value, multiply it by 2, and append it to an array.
  • {Whiteboard} Create a simple Python function to determine if a given Python string contains a baseline string, 'as'. If the given string does contain 'as', print 'yes' otherwise print 'no'.


As a data analyst, being able to pull information directly from datatables will be very important to a lot of employers. SQL is the most common language for the job, and is becoming a standard requirement for many data analyst roles. If you can master basic/intermediate SQL this portion of the interview will be a breeze.

  • What does the GROUP BY function in SQL do?

  • What is the difference between an inner join and a union?

  • How do you eliminate duplicate rows from a query result?

  • Given a impressions table with ad_id, click (a boolean indicator that the ad was clicked), and date, can you write a SQL query that will tell me the monthly click-through-rate all ads?

  • Can you write a query that returns the name of each department and a count of the number of employees in each? Below are the tables' schema:

  • EMPLOYEES containing: Emp_ID (Primary key) and Emp_Name

  • EMPLOYEE_DEPT containing: Emp_ID (Foreign key) and Dept_ID (Foreign key)

  • DEPTS containing: Dept_ID (Primary key) and Dept_Name

  • Explain to me a common use case of windowing functions.

  • What's the difference between a right join and a left join?

  • What is a subquery?

Behavioral/Business scenarios

You can be a great data analyst, but if you're unable to communicate the results of your analysis, or you don't mesh well culturally that could cost you the job. Because of this, it's important to have a few situations prepared prior to interviewing that highlight your communication skills, character, and capabilities! Keep it cool, and let your personality shine through!

  • Tell me about a time where you had to present a detailed analysis to a high-level executive.
  • Introduce me to something you’re passionate about.
  • Tell me about a time you failed, and what you have learned from it.
  • Tell me about a time you had to influence someone without authority.
  • What have you done in your previous job that you are really proud of?
  • What’s a project you would want to work on at our company?
  • Tell me about a time where you resolved a conflict.
  • Tell me about a time when you took initiative.
  • Suppose you encounter a tedious, boring task. How would you deal with it and motivate yourself to complete it?
  • What are your top 5 predictions for the next 20 years?
  • What personality traits do you conflict with?