In a dark room there is a box with 8 red and 5 black socks, socks are removed from the box until two red socks appear. The random variable $X$ is the number of socks removed for this purpose, make table of distribution of the values of this random variable and calculate its mathematical expectation
this my solution :
$ P(\text{one black sock})=5/13 $
$ P(\text{two black socks})=4/13 $
$ P(\text{three black socks})=3/13 $
$ P(\text{four black socks})=2/13 $
$ P(\text{five black socks})=1/13 $
$ P(\text{one red sock})=8/13 $
$ P(\text{two red socks})=7/13 $
$ E(x) = 5/13 * 0 + 4/13 * 0 + 3/13 * 0 + 2/13 * 0 + 1/13 * 0 + 8/13 * 1 + 2 * 7 /13 $
Is that right ?
Hint:
The possible outcomes for your experiment are:
The second red sock was drawn on the second pull (meaning that both the first and second pulls were both red, i.e. RR)
The second red sock was drawn on the third pull (meaning that among the first two pulls one was red and the other black, while the third pull was red, i.e. either RBR or BRR)
The second red sock was drawn on the fourth pull (meaning that among the first three pulls one was red and the other two black, while the fourth pull was red, i.e. either RBBR, BRBR, or BBRR)
$\vdots$
The second red sock was drawn on the seventh pull (meaning that among the first six pulls one was red and the other five black, while the seventh pull was red, i.e. either RBBBBBR, BRBBBBR, ..., or BBBBBRR)