Edit: Fisher's exact is the wrong test, but a hypergeometric test is appropriate.
Following the answer to a similar question, you can test how "unlikely" either proportion is using Fisher's exact test or a hypergeometric test. From your question, you're interested in whether the proportion of blue:green for either person (90:10 person A, 99:1 person B) significantly differs from the true proportion (4950:50). In that case you have two contingency tables:
$$
\array{& \text{Blue} & \text{Green} \\\text{Person A} & 90 & 10 & 100\\\text{Truth} & 4950 & 50 & 5000 \\ & 5040 & 60}
$$
$$
\array{& \text{Blue} & \text{Green} \\\text{Person B} & 99 & 1 & 100\\\text{Truth} & 4950 & 50 & 5000 \\ & 5049 & 51}
$$
and you'd want to test both tables. Since the hypergeometric distribution models the probability of getting a certain number of draws without replacement, i.e. your situation, you can use phyper
in R
to run a hypergeometric test:
pA = phyper(10-1,50,4950,100, lower.tail=F)
pB = phyper(1-1,50,4950,100, lower.tail=F)
Which gives pA=3.4e-08
and pB=0.64
. (The -1
in phyper(10-1,...)
because we want the probability of getting greater than or equal to that number of green draws.)
So, by the logic of the hypergeometric test, Person A's basket of fish is highly unlikely to have occurred by chance, while person B's basket is totally reasonable.