Calculating a probability given a point for a continuous distribution?

Click For Summary

Discussion Overview

The discussion revolves around the calculation of probabilities for continuous distributions, particularly in the context of Bayes' theorem and the interpretation of probability density functions (pdf). Participants explore the challenges of translating theoretical concepts into computational methods and the implications of using point values versus ranges in probability calculations.

Discussion Character

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

Main Points Raised

  • One participant notes that calculating a probability at a specific point in a normal distribution cannot be done directly, as the probability is a density, suggesting the need to use the cumulative distribution function (CDF) and consider a small range around the point.
  • Another participant emphasizes that for a continuous random variable, the probability of it taking on an exact value is zero, and instead, probabilities should be calculated over intervals.
  • It is mentioned that P(x) does not have a formal meaning in the context of a pdf, and probabilities can only be computed for ranges (P(a
  • A participant discusses the nature of sampling from a continuous distribution, indicating that computer-generated samples are approximations and that algorithms for generating pseudo-random samples may be relevant.
  • Another contribution highlights the practical difficulty of integrating the pdf directly and suggests using the CDF for easier probability calculations over intervals.
  • A participant expresses the need to review the generalization of Bayes' theorem for continuous distributions and to clarify when it is appropriate to use pdf values directly.

Areas of Agreement / Disagreement

Participants generally agree on the interpretation of probabilities in continuous distributions and the limitations of using point values. However, there are nuances in the application of Bayes' theorem and the use of pdf versus CDF that remain open for further exploration.

Contextual Notes

Participants acknowledge the complexities involved in integrating pdfs and the challenges of translating theoretical knowledge into computational practice. There is also an emphasis on the need for careful consideration of measurement precision when discussing probabilities at specific points.

Who May Find This Useful

This discussion may be useful for individuals interested in probability theory, statistics, computational methods in data analysis, and those working with continuous distributions in practical applications.

TheOldHag
Messages
44
Reaction score
3
I thought I understood all the theory quite well and sat down to begin coding until I realized that calculating a probability at a point within a normal distribution in the application of bayes' rule you can't simply plug the point into the normal distribution and get the value since the probability is a density. How do you approach this from a numerical standpoint or am I incorrect? My guess is that you need to leverage the cumulative distribution function instead and calculate the probability over some small delta around the point.

My broader problem is now after having gone through a good part of probability and statistics and being able to wield the P notation quite deftly on paper, I'm finding that translating those theories to actual computation has its own challenges and I'm wondering how this is generally approached or if I'm completely misunderstanding something. I'm fairly certain that P(x) doesn't mean evaluating the pdf f(x) and just taking that value.

Appreciate any guidance.
 
Physics news on Phys.org
My guess is that you need to leverage the cumulative distribution function instead and calculate the probability over some small delta around the point.
Pretty much except you don't need the cumulative probability.

If X~N, P(X=x)=0
There is no such thing as an arbitrarily precise measurement.
When we say that someone is 183cm tall, we really mean they are between 182.5cm and 183.5cm or something like that. So the probability of someone being 183cm tall, in the same sense, is actually P(182.5<x<183.5).

I'm fairly certain that P(x) doesn't mean evaluating the pdf f(x) and just taking that value.
That is correct. P(x) has no formal meaning where a pdf is concerned. You can only compute P(a<x<b) ... i.e. you can only find a non-zero probability for a continuous random variable falling between a range of values.

In general we can say: $$\lim_{b-a\rightarrow 0}P(a<x<b)\rightarrow 0$$

You can work it out for yourself:$$P(x=a)=\lim_{\epsilon\rightarrow 0}P(a-\epsilon<x<a+\epsilon)=\int_a^a p(x)\; dx$$
 
  • Like
Likes   Reactions: 1 person
Adding to what Simon Bridge said, if you are trying to generate samples from a normal distribution then your computer program will produce a specific number - an "exact" real number one might say. But this type of sampling is only an approximation of the idea of sampling from a continuous distribution. The program is actually picking a number from a finite population of numbers - those that it can represent.

Are you familiar with the typical algorithms for generating pseudo-random samples?
 
If you can integrate the PDF from a to b, then you can use the PDF to calculate P(a < X < b). In practice, the integration can be very difficult. The CDF has already done the integration from -∞ up to any point, so P(a < X < b) = CDF(b) - CDF(a). There are very accurate tables for most the CDFs of the common distributions.
 
I think Simon's point was helpful to confirm and clear up some of my confusion regarding density functions and how to interpret the value of a density function. The other part that I needed to clear up was to go back and review the generalization of Bayes' Theorem to continuous distributions and then apply that to my current problem which is after all calculating values and summing etc directly from PDF because of that generalization. But also to distinguish when it is safe to use the value directly and when it doesn't make sense.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 25 ·
Replies
25
Views
6K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 63 ·
3
Replies
63
Views
7K