-2
$\begingroup$

Imagine a population of people where $x\%$ have blue hats and $(100-x)\%$ have green hats where every year some people are awarded prizes. The rule is that everyone should have an equal chance of being awarded a prize every year. The village bosses would like to decide if this rule is being followed as they suspect there may be some prejudice based on hat color. They count the number of people with blue hats who get a prize and call it $A$ and also the number of people with green hats who get a prize and call that $B$. The total population size of green and blue hats is $P$.

What is a good method to determine if the prize awarding has indeed been fair?

$\endgroup$

3 Answers 3

0
$\begingroup$

You will have a two-way contingency table and the classic chi-square test of independence will provide a good answer.

$\endgroup$
2
  • $\begingroup$ Thank you. I went for Fisher's exact test in the end but you pointed me in the right direction. I have no idea why this question was down-voted however. $\endgroup$
    – nina001
    Commented Apr 9, 2013 at 17:11
  • $\begingroup$ I suspect the question was downvoted because, although written very clearly, it is a straightforward example of an absolutely classic situation that would feature in most introductory stats texts, but you hadn't indicated what you had tried before asking the question. People may have suspected it was untagged 'homework' or self-learning. I presume my answer got a downvote because it is too brief - doesn't explain why my answer is appropriate or how it works(and I agree, I just don't have time to expand on it properly just now, and the expansion can be found in many texts anyway). $\endgroup$ Commented Apr 10, 2013 at 20:17
4
$\begingroup$

You could consider using a hypergeometric distribution.

Let $Y$ denote the number of people with blue hats that receive prizes. For each year, let $a$, $b$, and $p$ be the observed values of $A$, $B$, and $P$. Based upon your description, it is assumed that $x$ is constant across all years. Then: $$Y \sim Hypergeometric(N=p, K=x*p, n=a+b) $$ $$P(Y=k) = \frac{\binom{K}{k}\binom{N-K}{n-k}}{\binom{N}{n}}$$ You would then calculate the probability that $Y = a$ for that year: $$P(Y=a) = \frac{\binom{x*p}{a}\binom{p-x*p}{a+b-a}}{\binom{p}{a+b}}\\ = \frac{\binom{x*p}{a}\binom{(1-x)*p}{b}}{\binom{p}{a+b}}$$ If that probability is too low (based on some threshold), you would know it was rigged.

$\endgroup$
-1
$\begingroup$

$x/100 = A/(A+B)$?

Within limits of random error, of course. How confident does the boss want to be that that a prejudice is indeed a prejudice?

There's probably a good theoretical way of getting the confidence (p-values?) but personally lazy me would just simulate many populations of size $P$, then draw $(A+B)$ number of prize-winners randomly (without replacement) and finally tally the $A$ and $B$ values observed to get my confidence limits.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.