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

  • Thread starter Thread starter benjaminmar8
  • Start date Start date
  • Tags Tags
    Pdf
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.
 
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Back
Top