This video shows how to derive the Mean and Variance of HyperGeometric Distribution in English. If you have any request, please don't hesitate to ask in the comments below and don't forget to subscribe.
Your initial definition of Hypergeometric distribution is itself wrong. x doesn't simply varies from zero to k, rather the range of x takes special range.
It is actually the range of the Hypergeometric random variable since a random variable is a function. 0 to k are the only possible values for such random variable for any given event or outcome from a hypergeometric experiment. From the perspective of the definition of the random variable such range should be the only allowed values even though outside that range the probability is zero. -1 for example cannot be called a "value" of the function Hypergeometric random variable since there is no input for such function that can make it to be called a "value". Soon I will be uploading videos for discussion of various distributions in a formal way.
👍Well done. Thanks! It's really a lengthy boring derivation! Got bored halfway watching this.😂 Completely understand how it's derived. But I don't think I have the courage and patience to derive it myself😅