How do you decide which statistical test is appropriate for a given dataset and research question?

Quick Overview

Asks how to choose the right statistical test for a dataset and research question. Tests reasoning about outcome types, number of groups, paired or clustered data, assumption checks, and when to use nonparametric tests, permutation tests or regression.

How do you decide which statistical test is appropriate for a given dataset and research question?

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Other

How do you decide which statistical test is appropriate for a given dataset and research question? ```hint Start from the question Before looking at the data, write the question as a comparison or a relationship, and name the outcome variable and its type. ``` ```hint Look at how the data was collected Whether the same units appear in more than one group, and whether observations are clustered, matters as much as the shape of the distribution. ``` ### What a Strong Answer Covers - Starting from the research question and the type of outcome variable before choosing a test. - The number of groups and whether observations are independent, paired or clustered. - A sensible approach to assumptions, including how sample size changes the importance of normality and the limits of formal normality tests. - What each nonparametric alternative actually tests, and when a permutation test, bootstrap or regression model fits better. - Choosing the test before seeing the results and adjusting for multiple comparisons. ### Follow-up Questions - Your metric is heavily right-skewed and you have 200,000 users per group. Would you still use a t-test? - When does a Mann-Whitney U test answer a different question from a t-test? - A chi-square test has several cells with expected counts below 5. What do you do? - How would you test a difference between groups when each user contributes many sessions?

Overview: Asks how to choose the right statistical test for a dataset and research question. Tests reasoning about outcome types, number of groups, paired or clustered data, assumption checks, and when to use nonparametric tests, permutation tests or regression.

General logo
General
Nov 25, 2026
mediumData ScientistOtherStatistics & Math
0
0

How do you decide which statistical test is appropriate for a given dataset and research question?

What a Strong Answer Covers Guidance

  • Starting from the research question and the type of outcome variable before choosing a test.
  • The number of groups and whether observations are independent, paired or clustered.
  • A sensible approach to assumptions, including how sample size changes the importance of normality and the limits of formal normality tests.
  • What each nonparametric alternative actually tests, and when a permutation test, bootstrap or regression model fits better.
  • Choosing the test before seeing the results and adjusting for multiple comparisons.

Follow-up Questions Guidance

  • Your metric is heavily right-skewed and you have 200,000 users per group. Would you still use a t-test?
  • When does a Mann-Whitney U test answer a different question from a t-test?
  • A chi-square test has several cells with expected counts below 5. What do you do?
  • How would you test a difference between groups when each user contributes many sessions?