Having problems with PMF, CDF and PMF.

  • Context: Undergrad 
  • Thread starter Thread starter Peon666
  • Start date Start date
  • Tags Tags
    Cdf
Click For Summary
SUMMARY

This discussion clarifies the distinctions between the Cumulative Distribution Function (CDF), Probability Mass Function (PMF), and Probability Density Function (PDF) in probability theory. The CDF, denoted as F(a), calculates cumulative probabilities for both discrete and continuous random variables, while the PMF assigns probabilities to individual values of discrete random variables, expressed as P(X = x). The PDF, applicable to continuous random variables, does not yield probabilities directly but requires integration to determine probabilities over intervals. The conversation emphasizes the importance of understanding these functions to avoid common misconceptions in probability courses.

PREREQUISITES
  • Understanding of random variables (discrete and continuous)
  • Familiarity with basic probability concepts
  • Knowledge of integration and its application in probability
  • Ability to interpret mathematical notation related to probability functions
NEXT STEPS
  • Study the properties of Cumulative Distribution Functions (CDFs) in detail
  • Learn about Probability Density Functions (PDFs) and their integration techniques
  • Explore the differences between discrete and continuous random variables
  • Investigate graphical representations of PMFs and PDFs, including stem plots and impulse functions
USEFUL FOR

Students in undergraduate probability courses, educators teaching probability concepts, and anyone seeking to clarify the differences between PMF, CDF, and PDF in statistical analysis.

Peon666
Messages
107
Reaction score
0
I'm having a course in Probability in undergrad EE and I'm having too much difficuly understanding the concepts.

Would anyone explain to me, in SIMPLEST and DETAILED words the difference between these three i.e Cumulative Distribution Function (CDF), Probability Mass Function (PMF) and Probability Distribution Function (PDF)? I'd be highly obliged.
 
Physics news on Phys.org
Every random variable, continuous or discrete (also mixed, if you discuss those) has a CDF. It allows you to calculate cumulative probability , which have the form

<br /> \Pr(X \le a)<br />

for numbers a. We typically use upper-case letters as names for CDFS, so

<br /> F(a) = \Pr(X \le a)<br />

A continuous random variable has a probability density function. This is a function having the following properties.

<br /> \begin{align*}<br /> f(x) &amp; \ge 0\\<br /> \int_{-\infty}^\infty f(x) \, dx &amp; = 1<br /> \end{align*}<br />

Density functions do not yield probability themselves, but there is a link between the density function and the cdf:

<br /> F(x) = \int_{-\infty}^a f(x) \, dx<br />

Finally, some random variables are discrete (integer valued, for example), and it is possible to calculate values like this:

<br /> \Pr(X = a)<br />

(note the equal sign). The probability mass function is the function that gives these:

<br /> \Pr(X = a) = f(a)<br />

For discrete random variables the link between the CDF and the mass function is

<br /> \Pr(X \le a) = \sum_{x_i \le a} f(x_i)<br />
 
statdad said:
A continuous random variable has a probability density function. This is a function having the following properties.

<br /> \begin{align*}<br /> f(x) &amp; \ge 0\\<br /> \int_{-\infty}^\infty f(x) \, dx &amp; = 1<br /> \end{align*}<br />

There is one other property:

P(a &lt; X &lt; b) = \int_a^b f(x)dx = F(b) - F(a)

where a and b are constants.

statdad said:
Density functions do not yield probability themselves...

Yes they do. The probability is simply the area under curve as given above.

CS
 
Density functions do not yield probability by themselves. As you pointed out, they need to be integrated to find probability. The values a density function itself returns is the ordinate on a graph, not a probability. That is a point we stress in introductory stat (math/stat) courses.
The cumulative distribution function yields probability.
 
statdad said:
Density functions do not yield probability by themselves. As you pointed out, they need to be integrated to find probability. The values a density function itself returns is the ordinate on a graph, not a probability. That is a point we stress in introductory stat (math/stat) courses.
The cumulative distribution function yields probability.

Good point, I missed the "themselves" part.

CS
 
Upon rereading my response seems harsh, and I apologize. But if I had $1 for every time a student has confused a density with a cdf, and tried to use a value of f(x) as a probability, I would be able afford a drink or two (and possibly forget that the student missed a fundamental point ) :0-
 
statdad said:
Upon rereading my response seems harsh, and I apologize. But if I had $1 for every time a student has confused a density with a cdf, and tried to use a value of f(x) as a probability, I would be able afford a drink or two (and possibly forget that the student missed a fundamental point ) :0-

I didn't think it seemed harsh at all. You merely clarified your original statement such that your point was received. The first time it just seemed to me as if you were implying that a PDF is unable to provide a probability (even with integration). :smile:

CS
 
I'm having an issue with this too. What is the difference between PMF and CDF of a discrete function?
 
The PMF (Probability Mass Function) can be thought of as assigning probability to individual values of the random variable: that is, the PMF gives

<br /> P(X = x)<br />

The CDF (Cumulative Distribution Function) gives cumulative probabilities: That is, gives

<br /> P(X \le x)<br />
 
  • #10
statdad said:
The PMF (Probability Mass Function) can be thought of as assigning probability to individual values of the random variable: that is, the PMF gives

<br /> P(X = x)<br />

The CDF (Cumulative Distribution Function) gives cumulative probabilities: That is, gives

<br /> P(X \le x)<br />

Ahh I'm so sorry! I actually understood the relationship between pmf and cdf. What I meant to ask was what is the difference between the pmf and pdf!
 
  • #11
Usually in the undergraduate level pmf associated with a discrete random variable and pdf is with continuous variable. But both can be used interchangeably ( I think ).
 
  • #12
The pmf (mass function) is used with discrete random variables to show individual probabilities as shown before. a pdf is used with (what are known in introductory texts as) continuous distributions. as mentioned above, pdfs do not themselves give probability, their integrals do.

for both discrete and continuous distributions it is typically the case that the cumulative distribution function is indicated with a capital (uppercase) letter. So, for a discrete distribution

<br /> F(x) = P(X \le x) = \sum_{t \le x} f(t)<br />

while for a continuous distribution

<br /> F(x) = P(X \le x) = \int_{-\infty}^x f(t)\, dt<br />
 
  • #13
Thanks for the replies! Does this mean that it is technically incorrect for my book to draw the pmf as impulses instead of just regular values (stem plot)
 
  • #14
no - I assume that by impulses you mean a graph with vertical lines rising from each x-value. the heights of those lines should correspond to the probability attached to x.
 
  • #15
statdad said:
no - I assume that by impulses you mean a graph with vertical lines rising from each x-value. the heights of those lines should correspond to the probability attached to x.

No, I actually meant impulses. Arrows with a values above them, (no width but still have area). Also when I go to wikipedia they use lines (stems) instead of impulses (arrows) so I am guessing my book might have incorrectly used those.

So I am guessing that a pmf uses stems, but a pdf shouold uses impulses?
 
  • #16
Rib5 said:
Arrows with a values above them, (no width but still have area).

These would be representing Dirac delta functions, a neat way of describing density of a point mass.
 

Similar threads

Replies
4
Views
2K
  • · Replies 36 ·
2
Replies
36
Views
5K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 14 ·
Replies
14
Views
6K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 24 ·
Replies
24
Views
31K
  • · Replies 2 ·
Replies
2
Views
2K