we have 100 families: 10 families have no children, 40 families have 1 child for each one, 30 families have 2 children for each one, 10 families have 3 children for each one and 10 families have 4 children for each one
A- suppose we selected a family randomly, what is the expected number of children in that family? B-suppose we selected a child randomly, what is the expected number of children in his family? is it the same?
I've tried the expectation to solve it but only for "A" , for "B" I didn't know how to solve it
the answer for A is 1.7 children but it is wrong because prof said the correct one is 3.
Intuitively, the expected number of children must be higher when you select a child because you are more likely to select a family with lots of children. In particular, if you select a child, you will never select the families with no children.
For each question, you just add up the product of the number of children and the probability of selecting a family of that size. For A, you have $0.1$ chance of selecting a family with no children, $0.4$ chance of selecting a family with $1$ child and so on. The expected number is then $$0.1\cdot 0 + 0.4 \cdot 1 +0.3 \cdot 2 + 0.1 \cdot 3 + 0.1 \cdot 4=1.7$$
For B, what fraction of the children are in families of $4$ children? That is the probability you select a family of $4$. The approach is the same as part A, but the probabilities are different. Over to you.