What is the difference between a PDF and a CDF, and how are they related?

Quick Overview

Asks how a probability density function differs from a cumulative distribution function and how the two are linked. Tests whether you know which one gives probabilities, how to get interval probabilities from each, and how integration and differentiation connect them.

What is the difference between a PDF and a CDF, and how are they related?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

What is the difference between a PDF and a CDF, and how are they related? ```hint Which one is a probability Ask which of the two functions returns a probability directly, and what you would have to do to the other one to get a probability out of it. ``` ### What a Strong Answer Covers - What each function returns, and why only one of them is a probability - How the probability of an interval is computed from each function - The properties a valid PDF and a valid CDF must satisfy - The calculus relationship between the two, in both directions - What changes for a discrete random variable ### Follow-up Questions - Can a PDF take a value above 1? Can a CDF? - A CDF jumps at one point. What does that tell you about the distribution, and does a PDF exist there? - Given a sample of data, how would you estimate the CDF, and how would you estimate the PDF? Which is harder?

Overview: Asks how a probability density function differs from a cumulative distribution function and how the two are linked. Tests whether you know which one gives probabilities, how to get interval probabilities from each, and how integration and differentiation connect them.

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

What is the difference between a PDF and a CDF, and how are they related?

What a Strong Answer Covers Guidance

  • What each function returns, and why only one of them is a probability
  • How the probability of an interval is computed from each function
  • The properties a valid PDF and a valid CDF must satisfy
  • The calculus relationship between the two, in both directions
  • What changes for a discrete random variable

Follow-up Questions Guidance

  • Can a PDF take a value above 1? Can a CDF?
  • A CDF jumps at one point. What does that tell you about the distribution, and does a PDF exist there?
  • Given a sample of data, how would you estimate the CDF, and how would you estimate the PDF? Which is harder?