Generating Random Numbers ~ Zipf(alpha<1)

  • Thread starter Thread starter zbobet2012
  • Start date Start date
  • Tags Tags
    Numbers Random
zbobet2012
Messages
14
Reaction score
0
The only reliable method of generating random numbers according to a Zipf distribution I have been able to find was here:

http://books.google.com/books?id=ER...AEwBw#v=onepage&q=inverse CDF of zipf&f=false

but this does not work for parameters of alpha < 1. My first instinct is to generate an array a such that a_{i} represents the CDF at that point, than generate a RV U~Uniform and check it against each bin to see if it is less than that item. (E.g. if P(1)=0.5, P(2)=0.25, P(3)=.125 than a_{1}=0.5, a_{2}=0.75, a_{3}=0.875 and U_{1}=0.4, U_{2}=0.55, U_{3}=0.9 than we return 1 when we generate U_{1} and 2 for U_{2} etc. Will this generate a correct distribution?
 
Physics news on Phys.org
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...
Back
Top