Search for probability and statistics terms on Statlect
StatLect

Legitimate probability density functions

by , PhD

This lecture discusses two properties characterizing probability density functions (pdfs).

Not only any pdf satisfies these two properties, but also any function that satisfies them is a legitimate pdf.

Therefore, in order to determine whether a function is a valid pdf, we just need to verify that the two properties hold.

Table of Contents

Properties of probability density functions

The following proposition formally describes the two properties.

Proposition Let X be a continuous random variable. Its probability density function, denoted by [eq1], satisfies the following two properties:

  1. Non-negativity: [eq2] for any $xin U{211d} $;

  2. Integral over R equals 1: [eq3].

Proof

Remember that, by the definition of a pdf, [eq4] is such that[eq5]for any interval $left[ a,b
ight] $. Probabilities cannot be negative, therefore [eq6] and[eq7]for any interval $left[ a,b
ight] $. But the above integral can be non-negative for all intervals $left[ a,b
ight] $ only if the integrand function itself is non-negative, that is, if [eq2] for all x. This proves property 1 above (non-negativity).

Furthermore, the probability of a sure thing must be equal to 1. Since [eq9] is a sure thing, then[eq10]which proves property 2 above (integral over R equals 1).

How to check that a pdf is valid

Any pdf must satisfy property 1 and 2 above. It can be demonstrated that also the converse holds: any function enjoying these properties is a pdf.

Proposition Let [eq4] be a function satisfying the following two properties:

  1. Non-negativity: [eq2] for any $xin U{211d} $;

  2. Integral over R equals 1: [eq3].

Then, there exists a continuous random variable X whose pdf is [eq14].

The practical implication is that we only need to verify that these two properties hold when we want to prove that a function is a valid pdf.

How to build valid pdfs

The proposition above also gives us a powerful method for constructing probability density functions.

Take any non-negative function g(x) (non-negative means that [eq15] for any $xin U{211d} $).

If the integral[eq16]exists and is finite and strictly positive, then define[eq17]

Since I is strictly positive, [eq4] is non-negative and it satisfies Property 1.

The function [eq4] also satisfies Property 2 because[eq20]

Thus, any non-negative function g(x) can be used to build a pdf if its integral over R exists and is finite and strictly positive.

Example Define a function g(x) as follows:[eq21]How do we construct a pdf from g(x)? First, we need to verify that g(x) is non-negative. But this is true because $x^{2}$ is always non-negative. Then, we need to check that the integral of g(x) over R exists and is finite and strictly positive:[eq22]Having verified that I exists and is finite and strictly positive, we can define[eq23]By the above proposition, [eq4] is a legitimate pdf.

Solved exercises

Below you can find some exercises with explained solutions.

Exercise 1

Consider the following function:[eq25]

where [eq26].

Prove that [eq4] is a legitimate probability density function.

Solution

Since $lambda >0$ and the exponential function is strictly positive, [eq28] for any $xin U{211d} $, so the non-negativity property is satisfied. The integral property is also satisfied because[eq29]

Exercise 2

Define the function[eq30]

where $l,uin U{211d} $ and $l<u$.

Prove that [eq4] is a valid probability density function.

Solution

$l<u$ implies $frac{1}{u-l}>0$, so [eq2] for any $xin U{211d} $ and the non-negativity property is satisfied. The integral property is also satisfied because[eq33]

Exercise 3

Consider the function[eq34]where $nin U{2115} $ and [eq35] is the Gamma function.

Determine whether [eq4] is a valid probability density function.

Solution

Remember the definition of Gamma function:[eq37][eq38] is obviously strictly positive for any $z$, since [eq39] is strictly positive and $x^{z-1}$ is strictly positive on the interval of integration (except at 0 where it is 0). Therefore, [eq4] satisfies the non-negativity property because the four factors in the product[eq41]are all non-negative on the interval [eq42].

The integral property is also satisfied because[eq43]

How to cite

Please cite as:

Taboga, Marco (2021). "Legitimate probability density functions", Lectures on probability theory and mathematical statistics. Kindle Direct Publishing. Online appendix. https://www.statlect.com/fundamentals-of-probability/legitimate-probability-density-functions.

The books

Most of the learning materials found on this website are now available in a traditional textbook format.