I have a question about calculating the hypergeometric test.

I have two sets of random names and a number that shows the overlap:

```
the number of names in set A: 488
the number of names in set B: 312
the number of overlap between the two sets: 16
```

I want to calculate if `the number of overlap between the two sets`

is significant or is by chance?

How can I perform this by having `ONLY`

three values as input?

Thank you.

The hypergeometric test. See Finding the significance of the overlap between 2 or more gene sets using simulation in R..