Suzy, knowing people own cats with probability p and wear black socks (by total coincidence!) with probability p, interviews people on the street up to and including the first cat owner she meets and then asks them if they’re wearing black socks. What is the variance and expectation of the number of people wearing black socks?
Okay, I've got some questions here. Is saying that "interviews people on the street up to and including the first cat owner she meets" means that we have a geometric distribution here?
I'm a bit confused because after meeting everybody and stopping at the first cat owner shes will question them on the colour of their socks (black) like they will hypothetically all wait for her to finish the first task.
Yes. Let $X$ be the count of people she asks. Then $X\sim\mathcal{Geo}_1(p)$.
She asks two questions of every person she interviews, "do you wear black socks?" and "do you own a cat?", keeping tally of the answers. She stops asking after getting the first positive answer to the second question.
Let $Y$ be the count of people wearing black socks among the people asked. The conditional expectation for this count for a given $X$ will be Binomially distributed. $Y\mid X\sim\mathcal{Bin}(X, p)$
Your task is to evaluate $\mathsf E(Y)$ and $\mathsf {Var}(Y)$ from these distributions. Use the Laws of Total Expectation and Total Variance.