Hello!

I am not sure whether I should place this in the advanced or normal statistics sections.

This is because I am not actually asking for this information for a class, but would like to know for my own use.

How could I solve problems like this word problem:

"A bag contains black and white marbles. A man takes a random marble out of a bag. If the marble is white, he paints it black, and then places it back in the bag. If black, he simply replaces it in the bag. If there are N number of marbles in the bag, m of which are white, what is the probability of k white draws after n total draws?"

I would like to graph this problem, but I cannot find a formula to do so.

Thanks!