---
title: What is a probability density function, how does it differ from a probability mass function and a CDF, and can a…
url: https://gurkanozkan.ai/learn/questions/research-densities-masses-cdfs-016/
markdown: https://gurkanozkan.ai/learn/questions/research-densities-masses-cdfs-016.md
kind: question
role: Research
stage: Technical
difficulty: Warm-up
json: https://gurkanozkan.ai/api/learn/questions/research-densities-masses-cdfs-016.json
robots: noindex
---

# What is a probability density function, how does it differ from a probability mass function and a CDF, and can a density exceed 1?

Research · Technical · Warm-up

## Answer

*Model answer, written in a candidate's voice*

### In short

- PDF: nonnegative, integrates to 1; interval probabilities are integrals.
- PMF: discrete point probabilities that sum to 1.
- CDF: F(x)=P(X<=x); for continuous variables f=F' where it exists.
- Density can exceed 1; Uniform(0,0.5) has density 2.
- Continuous single points have probability zero.

### In full

A probability density function describes a continuous random variable: it is nonnegative and integrates to 1 over its support, and the probability of an interval is the integral of f over that interval. A probability mass function is for discrete variables and gives point probabilities, which sum to 1. The CDF is F(x)=P(X<=x); for a continuous variable with density f, F'(x)=f(x) where it exists. Yes, a density can exceed 1 because it is not itself a probability; for example, Uniform(0,0.5) has density 2 on [0,0.5], and the integral over that interval is 1. For continuous variables, P(X=x)=0 for any single point, so probabilities must be assigned to intervals rather than points.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- A density integrates to 1, and probabilities come from integrals over intervals.
- A pmf gives point probabilities. The CDF F(x) = P(X ≤ x), and f = F′.
- Yes, a density can exceed 1: Uniform(0, 0.5) has density 2.
- For continuous variables, single points have probability zero.

## Common mistakes

- Calling density values probabilities.
- Claiming f ≤ 1.
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
