Vanadium 50
Staff Emeritus
Science Advisor
Education Advisor
Gold Member
Dearly Missed
- 35,003
- 21,715
This isn't going to work. That procedure forces x2 to have a particular distribution, and that distribution may or may not (in fact, doesn't) match the correct x2 distribution.
What you need to do instead, if you want to go down this path, is once you have the x2, you calculate the probability of getting this x2, and then toss a random number. If the random number matches this probability, you keep the event, otherwise, you start over. This is called reweighting.
What you need to do instead, if you want to go down this path, is once you have the x2, you calculate the probability of getting this x2, and then toss a random number. If the random number matches this probability, you keep the event, otherwise, you start over. This is called reweighting.