Expected value of election process

Problem

After the election, party A may fill three seats in a committee. Out of the eight female and four male city councillors, who were interested in a seat in this comittee, three people are determined to be members of the committee by lot.

The random variable \(X\) describes the number of female members of the committee of party A. Figure 1 depicts the probability distribution of the random variable \(X\) with \(P(X=0) = \frac{1}{55}\) and \(P(X=3) = \frac{14}{55}\).

../../../_images/erwartungswert1.png
  1. Compute the probability \(P(X=1)\) and \(P(X=2)\).

    (Result: \(P(X=1)=\frac{12}{55}, P(X=2)=\frac{28}{55}\))

  2. Determine the expected value and the variance of the random variable \(X\).

    (Result: \(E(X)=2, \mathrm{Var}(X)=\frac{6}{11}\))

  3. Figure 2 shows the probability distribution of the binomially distributed random variable \(Y\) with the parameters \(n=3\) and \(p=\frac{2}{3}\). Show by calculation that \(Y\) has the same expected value as the random variable \(X\) but has a bigger variance than \(X\). Explain how one can see by comparison of figures 1 and 2 that \(\mathrm{Var}(Y)>\mathrm{Var}(X)\) holds.

Solution of part a

The drawing of lots corresponds to drawing from an urn without replacement. This yields a hypergeometric distribution. With the number of female (\(f=8\)) and male city councillors (\(m=4\)) one obtains for \(N=3\) members of the committee

\[P(X) = \dfrac{\frac{f!}{X!(f-X)!} \frac{m!}{(N-X)!(m-N+X)!}} {\frac{(f+m)!}{N!(f+m-N)!}}\,.\]

For \(X=1\) one finds

\[P(1)=\frac{12}{55}\,.\]

Since the sum of probabilities has to equal one, it follows that

\[P(2) = 1-P(0)-P(1)-P(3) = \frac{28}{55}\,.\]

The probabilities can also be easily determined with the help of Sage.

Solution of part b

Generally, the expected value of the distribution can be computed with the formula

\[E(X) = \sum_k k \cdot P(k).\]

The variance is then given by

\[\mathrm{Var}(X) = E(X^2) - \big(E(X)\big)^2\]

with

\[E(X^2) = \sum_k k^2 \cdot P(k)\,.\]

With the probabilities from the first part of the problem, one obtains

\[\begin{split}E(X) &= \frac{1}{55}(0\cdot 1+1\cdot 12+2\cdot 28+3\cdot 14) = \frac{110}{55} = 2\\ E(X^2) &= \frac{1}{55}(0\cdot 1+1\cdot 12+4\cdot 28+9\cdot 14) = \frac{250}{55} = \frac{50}{11}\end{split}\]

and hence

\[\mathrm{Var}(X) = \frac{50}{11}-4 = \frac{6}{11}\,.\]

With Sage, we can determine these results easily as well.

Solution of part c

For the given binomial probability distribution

\[\begin{split}P(Y=k) = \left(\frac{2}{3}\right)^k\left(\frac{1}{3}\right)^{3-k} \begin{pmatrix}3\\k\end{pmatrix}\,,\end{split}\]

we can determine the expected value as well as the variance with the help of Sage.

Of cource, one can obtain these results by explicit calculations along the lines of the previous part of the problem if one determines the probabilities first.

Comparing the results with part b, one sees that the expected value is equal but the variance is bigger.

This can already be concluded by means of the figures because the probability for \(Y\) at \(k=2\) is smaller, while at \(k=0\) and \(k=3\) it is clearly bigger than for \(X\). Hence, the probability distribution for \(Y\) is “broader” and has a bigger variance.