Having problems with PMF, CDF and PMF.

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

Discussion Overview

The discussion centers around understanding the differences and relationships between the Cumulative Distribution Function (CDF), Probability Mass Function (PMF), and Probability Density Function (PDF) in the context of probability theory, particularly for undergraduate students in electrical engineering. Participants explore definitions, properties, and graphical representations of these concepts.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Conceptual clarification

Main Points Raised

  • One participant requests a simple and detailed explanation of CDF, PMF, and PDF, indicating difficulty in understanding these concepts.
  • Another participant explains that every random variable has a CDF, which calculates cumulative probabilities, and describes the properties of a PDF, emphasizing that it does not yield probability directly but is linked to the CDF through integration.
  • There is a contention regarding whether density functions yield probability by themselves, with some participants arguing that they do not, while others assert that the area under the curve represents probability.
  • Participants clarify that the PMF assigns probabilities to individual values of discrete random variables, while the CDF gives cumulative probabilities.
  • One participant expresses confusion about the difference between PMF and PDF, leading to further clarification that PMF is associated with discrete variables and PDF with continuous variables.
  • Discussion includes graphical representations of PMF and PDF, with one participant questioning the appropriateness of using impulses versus stems in illustrations, leading to a mention of Dirac delta functions.

Areas of Agreement / Disagreement

Participants express various viewpoints on the properties of density functions and their relationship to probability. There is no consensus on whether density functions yield probability directly, and the discussion remains unresolved regarding the graphical representation of PMF and PDF.

Contextual Notes

Some participants highlight common misconceptions among students regarding the use of density values as probabilities, indicating a need for clarity in foundational concepts.

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
3K
  • · Replies 24 ·
Replies
24
Views
31K
  • · Replies 2 ·
Replies
2
Views
2K