Catch rate: Difference between revisions

made more clear that the simplification of a/255 includes all 4 shakes. I still don't follow how all a values over 200 yield the same b, or how a 1/65535 chance of failure equates to 99.994% success rate. Also contradicts a=255 being 100%.
m (Bot: Adding es:Captura de Pokémon)
(made more clear that the simplification of a/255 includes all 4 shakes. I still don't follow how all a values over 200 yield the same b, or how a 1/65535 chance of failure equates to 99.994% success rate. Also contradicts a=255 being 100%.)
Line 140: Line 140:


===Probability of capture===
===Probability of capture===
The probability ''p'' of catching a Pokémon, given the values ''a'' and ''b'' calculated above, approximates ''a''/255. However, due to rounding errors produced when calculating ''b'', this approximation can be significantly inaccurate: all ''a'' values greater than 200, for instance, yield the same ''b'' value, 65535 (which results in a 99.994% chance of a successful capture).
The probability ''p'' of catching a Pokémon—given the values ''a'' and ''b'' calculated above for each shake, then requiring all 4 shakes be passed—approximates (''b''/65535)^4, or simply ''a''/255. However, due to rounding errors produced when calculating ''b'', this approximation can be significantly inaccurate: all ''a'' values greater than 200, for instance, yield the same ''b'' value, 65535 (which results in a 99.994% chance of a successful capture).


For a constant probability ''p'', the probability ''P'' that a player can capture the Pokémon with no more than ''r'' tries is:
For a constant probability ''p'', the probability ''P'' that a player can capture the Pokémon with no more than ''r'' tries is:
1

edit