Course contentsShow
← Mathematics
Lesson 2842 of 3,12156. Probability — Random VariablesFree lesson

Verifying Valid PMFs and PDFs

Check whether given functions satisfy the necessary properties to be valid probability mass or density functions.

Verifying Valid PMFs and PDFs

What you'll learn: How to check whether a proposed function actually qualifies as a legitimate probability mass function (PMF) or probability density function (PDF).

Why Verification Matters

Not every function you encounter will be a valid PMF or PDF—just like not every recipe produces edible food! When someone hands you a function and claims it describes probabilities, you need to verify it satisfies the fundamental requirements before using it.

Verifying a PMF (Discrete Random Variables)

A function p(x) is a valid PMF if and only if:

  1. Non-negativity: p(x) ≥ 0 for all values x in the range
  2. Normalization: The sum of all probabilities equals 1: Σ p(x) = 1

Example check: Suppose p(x) = x/6 for x ∈ {1, 2, 3}.

  • Non-negativity? ✓ All values are positive.
  • Normalization? 1/6 + 2/6 + 3/6 = 6/6 = 1 ✓

This is a valid PMF!

Verifying a PDF (Continuous Random Variables)

A function f(x) is a valid PDF if and only if:

  1. Non-negativity: f(x) ≥ 0 for all x
  2. Normalization: The total area under the curve equals 1: ∫_{-∞}^{∞} f(x) dx = 1

Example check: Suppose f(x) = 2x for 0 ≤ x ≤ 1, and f(x) = 0 elsewhere.

  • Non-negativity? ✓ Since x ≥ 0 on the support.
  • Normalization? ∫₀¹ 2x dx = [x²]₀¹ = 1 ✓

This is a valid PDF!

Common Pitfalls

  • Forgetting domain restrictions: A negative value anywhere disqualifies the function
  • Arithmetic errors in summation/integration: Double-check your calculations
  • Missing probability mass/density: If the sum/integral ≠ 1, it's invalid

Key Takeaway: A valid PMF/PDF must be non-negative everywhere and sum/integrate to exactly 1—these two conditions are non-negotiable gatekeepers for probability functions.