Simulating a continous distribution

  • Thread starter Thread starter MechatronO
  • Start date Start date
  • Tags Tags
    Distribution
MechatronO
Messages
30
Reaction score
1
Say we want a set of random values that are distributed according to some distribution function f(x).

A common way to accomplish that is to find the cumulative distribution function F(x) for the distribution and then solve for x according to

F(x) = Y

x = F'(Y)

Then x will be distributed with the original distribution function, if F'(Y) is fed with random values Y ranging from 0-1.

I'm currently trying to do that with a weibull distribution

f(x) = a*b*xb-1*e-a*b*x^b

where F(x) should be

F(x) = e-a - e-a*x^b

when solving for x in F(x) I however get

x = ( - ln(e-a - Y)/a)1/b

When Y> e-a there are no real solutions. Is there a way to get around this? Have I done something wrong?
 
Physics news on Phys.org
Your F(x) can't be right. F(∞) should be 1.
 
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...
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...

Similar threads

Back
Top