PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/WeRide

Test whether two samples differ

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a candidate's competence in statistical inference and experimental design, focusing on distributional comparison, hypothesis testing, and sampling methodology within the Statistics & Math domain for a Data Scientist role.

  • medium
  • WeRide
  • Statistics & Math
  • Data Scientist

Test whether two samples differ

Company: WeRide

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

You have two datasets collected from two versions of a system, or from two cities. The variable of interest may be continuous, skewed, heavy-tailed, or categorical, and the sample sizes may be different. 1. How would you test whether the two samples come from the same underlying distribution? Discuss the right test choices for continuous versus categorical data, and for univariate versus multivariate settings. What assumptions do the common tests make, and how would you interpret statistical significance versus practical significance? 2. What sampling methods do you know, and when would you use each one in practice for data collection or offline evaluation?

Quick Answer: This question evaluates a candidate's competence in statistical inference and experimental design, focusing on distributional comparison, hypothesis testing, and sampling methodology within the Statistics & Math domain for a Data Scientist role.

Related Interview Questions

  • Test whether two distributions differ - WeRide (medium)
  • Test Whether Two Samples Match - WeRide (medium)
WeRide logo
WeRide
Jan 23, 2025, 12:00 AM
Data Scientist
Technical Screen
Statistics & Math
1
0

You have two datasets collected from two versions of a system, or from two cities. The variable of interest may be continuous, skewed, heavy-tailed, or categorical, and the sample sizes may be different.

  1. How would you test whether the two samples come from the same underlying distribution? Discuss the right test choices for continuous versus categorical data, and for univariate versus multivariate settings. What assumptions do the common tests make, and how would you interpret statistical significance versus practical significance?
  2. What sampling methods do you know, and when would you use each one in practice for data collection or offline evaluation?

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More WeRide•More Data Scientist•WeRide Data Scientist•WeRide Statistics & Math•Data Scientist Statistics & Math
PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.