A shipment of 2500 car headlights contains 200 which are defective. You choose from this shipment without replacement until you have 18 which are not defective. Let X be the number of defective headlights you obtain. Find the probability function $f(x)$.
This seems to be hypergeometric distribution
$N = 2500$, $r = 200$, $x$ is the variable. $r$ is the "successes" which means the number of defective, since we are after defective.The $n$ here, which is the number we choose is tricky, how do I go about it?