Can You Generate Samples from f(x2) Based on f(x1)?

  • Context: Graduate 
  • Thread starter Thread starter benjaminmar8
  • Start date Start date
  • Tags Tags
    Pdf
Click For Summary
SUMMARY

The discussion centers on generating samples from the probability density function (pdf) of random variable x2, given the pdf of random variable x1, denoted as f(x1). It is established that one effective method to obtain samples from f(x2) is to first generate a sample from x1 and then apply the transformation to obtain the corresponding value for x2. Additionally, to compute the pdf of x2, the cumulative distribution function (CDF) can be utilized, followed by taking the derivative to derive the pdf.

PREREQUISITES
  • Understanding of probability density functions (pdf)
  • Knowledge of cumulative distribution functions (CDF)
  • Familiarity with transformation of random variables
  • Basic calculus for differentiation
NEXT STEPS
  • Study the transformation of random variables in probability theory
  • Learn about cumulative distribution functions and their applications
  • Explore methods for deriving probability density functions from cumulative distributions
  • Investigate Monte Carlo methods for sampling from complex distributions
USEFUL FOR

Statisticians, data scientists, and anyone involved in probabilistic modeling or random variable transformations will benefit from this discussion.

benjaminmar8
Messages
10
Reaction score
0
Hi,all,

I have a problem of computing pdf of some random variables. Assuming x1, x2... xN are some random variables. Now, I know the pdf of x1, which is f(x1). For the pdf of x2, it is given as a function of x1, in this case, how do I compute pdf of x2? Or, rather, how do I generate samples from f(x2)?

Thks
 
Last edited:
Physics news on Phys.org
One way is simply to generate a sample from x1, and compute what it gets transformed to in x2.
 
If you *have* to get the pdf of x2, the easiest way is to use the cumulative distribution and then take the derivative.
 

Similar threads

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