PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Statistics & Math/Uber

Derive a CDF from a PDF

Last updated: Apr 2, 2026

Quick Overview

This question evaluates a candidate's understanding of the relationship between probability density functions and cumulative distribution functions, including handling bounded or piecewise support, boundary conditions like limits at ±infinity, verification of a valid CDF, and clarity in stating modeling assumptions.

  • medium
  • Uber
  • Statistics & Math
  • Data Scientist

Derive a CDF from a PDF

Company: Uber

Role: Data Scientist

Category: Statistics & Math

Difficulty: medium

Interview Round: Technical Screen

During a first-round Data Scientist interview, you are asked a coding-and-statistics question: You are given a valid probability density function `f(x)` for a continuous random variable `X`. Explain how to derive the cumulative distribution function `F(x)` from the PDF. Your answer should cover: - the mathematical definition of a CDF - how to handle bounded or piecewise support - boundary conditions such as `F(-infinity) = 0` and `F(infinity) = 1` - how to verify that the result is a valid CDF - how you would compute an approximate CDF in code if the PDF is available only numerically rather than in closed form State any assumptions clearly.

Quick Answer: This question evaluates a candidate's understanding of the relationship between probability density functions and cumulative distribution functions, including handling bounded or piecewise support, boundary conditions like limits at ±infinity, verification of a valid CDF, and clarity in stating modeling assumptions.

Related Interview Questions

  • Should Uber double member discounts? - Uber (medium)
  • Compare Two Coin Proportions - Uber (medium)
  • Analyze the Accident-Rate Spike - Uber (easy)
  • How do you derive CDF from a PDF? - Uber (easy)
  • Formulate OR model to reduce driver backtracking - Uber (Medium)
Uber logo
Uber
Jan 3, 2026, 12:00 AM
Data Scientist
Technical Screen
Statistics & Math
4
0
Loading...

During a first-round Data Scientist interview, you are asked a coding-and-statistics question:

You are given a valid probability density function f(x) for a continuous random variable X. Explain how to derive the cumulative distribution function F(x) from the PDF.

Your answer should cover:

  • the mathematical definition of a CDF
  • how to handle bounded or piecewise support
  • boundary conditions such as F(-infinity) = 0 and F(infinity) = 1
  • how to verify that the result is a valid CDF
  • how you would compute an approximate CDF in code if the PDF is available only numerically rather than in closed form

State any assumptions clearly.

Solution

Show

Submit Your Answer

Sign in to leave a comment

Loading comments...

Browse More Questions

More Statistics & Math•More Uber•More Data Scientist•Uber Data Scientist•Uber 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.