183 problems found
A discrete random variable \(X\) takes only positive integer values. Define \(\E(X)\) for this case, and show that \[\E(X) =\sum^{\infty}_{n=1}\P\left(X\ge n \right).\] I am collecting toy penguins from cereal boxes. Each box contains either one daddy penguin or one mummy penguin. The probability that a given box contains a daddy penguin is \(p\) and the probability that a given box contains a mummy penguin is \(q\), where \(p\ne0\), \(q\ne0\) and \(p+q=1\,\). Let \(X\) be the number of boxes that I need to open to get at least one of each kind of penguin. Show that \(\P(X\ge 4)= p^{3}+q^{3}\), and that \[ \E(X)=\frac{1}{pq}-1.\, \] Hence show that \(\E(X)\ge 3\,\).
Solution: \[ \E[X] := \sum_{n=1}^{\infty} n \mathbb{P}(X=n) \] \begin{align*} && \sum^{\infty}_{n=1}\mathbb{P}\left(X\ge n \right) &= \sum^{\infty}_{n=1}\sum_{k=n}^\infty \mathbb{P}(X=k) \\ &&&= \sum_{k=1}^\infty k \cdot \mathbb{P}(X=k) \\ &&&= \E[X] \end{align*} \begin{align*} &&\mathbb{P}(X \geq 4) &= \mathbb{P}(\text{first 3 are daddies}) +\mathbb{P}(\text{first 3 are mummies}) \\ &&&= p^3 + q^3 \\ \Rightarrow && \E[X] &= \sum_{n=1}^{\infty} \mathbb{P}\left(X\ge n \right) \\ &&&= 1+\sum_{n=2}^{\infty} \left ( p^{n-1} + q^{n-1}\right) \\ &&&= 1+\frac{p}{1-p} + \frac{q}{1-q} \\ &&&= 1+\frac{p}q + \frac{q}p \\ &&&= 1+\frac{p^2+q^2}{pq} \\ &&&= 1+\frac{(p+q)^2-2pq}{pq} \\ &&&= \frac{1}{pq} -1 \\ &&& \underbrace{\geq}_{AM-GM} \frac{1}{4}-1 = 3 \end{align*}
The number of texts that George receives on his mobile phone can be modelled by a Poisson random variable with mean \(\lambda\) texts per hour. Given that the probability George waits between 1 and 2 hours in the morning before he receives his first text is \(p\), show that \[ p\e^{2\lambda}-\e^{\lambda}+1=0. \] Given that \(4p<1\), show that there are two positive values of \(\lambda\) that satisfy this equation. The number of texts that Mildred receives on each of her two mobile phones can be modelled by independent Poisson random variables with different means \(\lambda_{1}\) and \(\lambda_{2}\) texts per hour. Given that, for each phone, the probability that Mildred waits between 1 and 2 hours in the morning before she receives her first text is also \(p\), find an expression for \(\lambda_{1}+\lambda_{2}\) in terms of \(p\). Find the probability, in terms of \(p\), that she waits between 1 and 2 hours in the morning to receive her first text.
Solution: Let \(X_t\) be the number of texts he recieves before \(t\) hours. So \(X_t \sim P(t\lambda)\) \begin{align*} &&\mathbb{P}(X_1 = 0 \, \cap \, X_2 > 0) &= e^{-\lambda} \cdot \left ( 1-e^{-\lambda}\right) = p \\ \Rightarrow && e^{2\lambda}p &= e^{\lambda} - 1 \\ \Rightarrow && 0 &= pe^{2\lambda}-e^{\lambda} + 1 \\ \Rightarrow && e^{\lambda} &= \frac{1 \pm \sqrt{1-4p}}{2p} \end{align*} Which clearly has two positive roots if \(4p < 1\). We need to show both roots are \(>1\). So considering the smaller one we are looking at: \begin{align*} && \frac{1-\sqrt{1-4p}}{2p} & > 1 \\ \Leftrightarrow && 1-\sqrt{1-4p} &> 2p \\ \Leftrightarrow && 1-2p&> \sqrt{1-4p} \\ \Leftrightarrow && (1-2p)^2&> 1-4p \\ \Leftrightarrow && 1-4p+4p^2&> 1-4p \\ \end{align*} which is clearly true. We must have \(e^{\lambda_1}\cdot e^{\lambda_2} = \frac{1}{p}\), so \(\lambda_1 + \lambda_2 = -\ln p\) by considering the product of the roots in our quadratic. (Vieta). Therefore the probability she waits between 1 and 2 hours in the morning is \(e^{-(\lambda_1 + \lambda_2)} \cdot ( 1- e^{-(\lambda_1+\lambda_2)}) = p \cdot (1-p)\)
The continuous random variable \(X\) has probability density function \(\f(x)\), where \[ \f(x) = \begin{cases} a & \text {for } 0\le x < k \\ b & \text{for } k \le x \le 1\\ 0 & \text{otherwise}, \end{cases} \] where \(a > b > 0\) and \(0 < k < 1\). Show that \(a > 1\) and \(b < 1\).
Solution: \begin{align*} && 1 &= \int_0^1 f(x) \d x \\ &&&= ak + b(1-k) \\ &&&= b + (a-b)k \\ \Rightarrow && k &= \frac{1-b}{a-b} \\ \Rightarrow && b & < 1 \tag{\(0 < k, \,a > b\)} \\ && k &> 1 \\ \Rightarrow && a-b & > 1-b \\ \Rightarrow && a > 1 \end{align*}
Rosalind wants to join the Stepney Chess Club. In order to be accepted, she must play a challenge match consisting of several games against Pardeep (the Club champion) and Quentin (the Club secretary), in which she must win at least one game against each of Pardeep and Quentin. From past experience, she knows that the probability of her winning a single game against Pardeep is \(p\) and the probability of her winning a single game against Quentin is \(q\), where \(0 < p < q < 1\).
Solution:
The infinite series \(S\) is given by \[ S = 1 + (1 + d)r + (1 + 2d)r^2 + \cdots + (1+nd)r^n +\cdots\; ,\] for \(\vert r \vert <1\,\). By considering \(S - rS\), or otherwise, prove that \[ S = \frac 1{1-r} + \frac {rd}{(1-r)^2} \,.\] Arthur and Boadicea shoot arrows at a target. The probability that an arrow shot by Arthur hits the target is \(a\); the probability that an arrow shot by Boadicea hits the target is \(b\). Each shot is independent of all others. Prove that the expected number of shots it takes Arthur to hit the target is \(1/a\). Arthur and Boadicea now have a contest. They take alternate shots, with Arthur going first. The winner is the one who hits the target first. The probability that Arthur wins the contest is \(\alpha\) and the probability that Boadicea wins is \(\beta\). Show that \[ \alpha = \frac a {1-a'b'}\,, \] where \(a' = 1-a\) and \(b'=1-b\), and find \(\beta\). Show that the expected number of shots in the contest is \(\displaystyle \frac \alpha a + \frac \beta b\,.\)
Solution: Notice that \begin{align*} && S - rS &= 1 + dr + dr^2 + \cdots \\ &&&= 1 + dr(1 + r+r^2+ \cdots) \\ &&&= 1 + \frac{rd}{1-r} \\ \Rightarrow && S &= \frac{1}{1-r} + \frac{rd}{(1-r)^2} \end{align*} The number of shots Arthur takes is \(\textrm{Geo}(a)\), so it's expectation is \(1/a\). The probability Arthur wins is: \begin{align*} \alpha &= a + a'b'a + (a'b')^2a + \cdots \\ &= a(1+a'b' + \cdots) \\ &= \frac{a}{1-a'b'} \\ \\ \beta &= a'b + a'b'a'b + \cdots \\ &= a'b(1+b'a' + (b'a')^2 + \cdots ) \\ &= \frac{a'b}{1-a'b'} \end{align*} The expected number of shots in the contest is: \begin{align*} E &= a + 2a'b + 3a'b'a + 4a'b'a'b + \cdots \\ &= a(1 + 3a'b' + 5(a'b')^2 + \cdots) + 2a'b(1 + 2(a'b') + 3(a'b')^2 + \cdots) \\ &= a \left ( \frac{1}{1-a'b'} + \frac{2a'b'}{(1-a'b')^2} \right) + 2a'b \left ( \frac{1}{1-a'b'} + \frac{a'b'}{(1-a'b')^2}\right) \\ &= \frac{a}{1-a'b'} \left (1 + \frac{2a'b'}{(1-a'b')} \right) + 2\frac{a'b}{1-a'b'} \left ( 1 + \frac{a'b'}{(1-a'b')}\right) \\ &= \alpha \frac{1+a'b'}{1-a'b'} + \beta \frac{2}{1-a'b'} \\ &= \alpha \frac{1+1-a-b+ab}{1-a'b'} + \beta \frac{2}{1-a'b'} \\ \end{align*}
Prove that, for any real numbers \(x\) and \(y\), \(x^2+y^2\ge2xy\,\).
I seat \(n\) boys and \(3\) girls in a line at random, so that each order of the \(n+3\) children is as likely to occur as any other. Let \(K\) be the maximum number of consecutive girls in the line so, for example, \(K=1\) if there is at least one boy between each pair of girls.
Solution:
Satellites are launched using two different types of rocket: the Andover and the Basingstoke. The Andover has four engines and the Basingstoke has six. Each engine has a probability~\(p\) of failing during any given launch. After the launch, the rockets are retrieved and repaired by replacing some or all of the engines. The cost of replacing each engine is \(K\). For the Andover, if more than one engine fails, all four engines are replaced. Otherwise, only the failed engine (if there is one) is replaced. Show that the expected repair cost for a single launch using the Andover is \[ 4Kp(1+q+q^2-2q^3) \ \ \ \ \ \ \ \ \ \ \ \ \ (q=1-p) \tag{*} \] For the Basingstoke, if more than two engines fail, all six engines are replaced. Otherwise only the failed engines (if there are any) are replaced. Find, in a form similar to \((*)\), the expected repair cost for a single launch using the Basingstoke. Find the values of \(p\) for which the expected repair cost for the Andover is \(\frac23\) of the expected repair cost for the Basingstoke.
In this question, you may use without proof the results: \[ \sum_{r=1}^n r = \tfrac12 n(n+1) \qquad\text{and}\qquad \sum_{r=1}^n r^2 = \tfrac1 6 n(n+1)(2n+1)\,. \] The independent random variables \(X_1\) and \(X_2\) each take values \(1\), \(2\), \(\ldots\), \(N\), each value being equally likely. The random variable \(X\) is defined by \[ X= \begin{cases} X_1 & \text { if } X_1\ge X_2\\ X_2 & \text { if } X_2\ge X_1\;. \end{cases} \]
Solution: \begin{align*} \P(X = r) &= \P(X_1 = r, X_2 \leq r) + \P(X_2 = r, X_1 < r) \\ &= \P(X_1 = r) \P(X_2 \leq r) + \P(X_2 = r)\P( X_1 < r) \\ &= \frac{1}{N} \frac{r}{N} + \frac{1}{N} \frac{r-1}{N} \\ &= \frac{2r-1}{N^2} \end{align*} \begin{align*} \E(X) &= \sum_{r=1}^N r \P(X = r) \\ &= \sum_{r=1}^N \frac{2r^2 - r}{N^2} \\ &= \frac{1}{N^2} \l \frac{N(N+1)(2N+1)}{3} - \frac{N(N+1)}{2} \r \\ &= \frac{N+1}{N} \l \frac{4N-1}{6} \r \end{align*} When \(N = 100\), this is equal to \(\frac{101 \cdot 399}{6 \cdot 100} = \frac{101 \cdot 133}{200} = 67.165\) \begin{align*} &&\frac12 &\leq \P(X \leq m) \\ &&&=\sum_{r=1}^m \P(X=r) \\ &&&=\sum_{r=1}^m \frac{2r-1}{N^2} \\ &&&= \frac{1}{N^2} \l m(m+1) - m \r \\ &&&= \frac{m^2}{N^2} \\ \Rightarrow && m^2 &\geq \frac{N^2}{2} \\ \Rightarrow && m &\geq \frac{N}{\sqrt{2}} \\ \Rightarrow && m &= \left \lceil \frac{N}{\sqrt{2}} \right \rceil \end{align*} When \(N = 100\), \(100/\sqrt{2} = \sqrt{2}50\). \(\sqrt{2} > 1.4 \Rightarrow 50\sqrt{2} > 70\) \(\sqrt{2} < 1.42 \Rightarrow 50 \sqrt{2} < 71\), therefore \(\displaystyle \left \lceil \frac{100}{\sqrt{2}} \right \rceil = 71\) \begin{align*} \lim_{N \to \infty} \frac{\frac{(N+1)(4N-1)}{6N}}{ \left \lceil\frac{N}{\sqrt{2}} \right \rceil} &= \lim_{N \to \infty} \frac{\sqrt{2}}{3}\l \frac{4N^2 +3N - 1}{2N^2} \r \tag{since the floor will be irrelevant}\\ &= \lim_{N \to \infty} \frac{\sqrt{2}}{3}\l 2 + \frac{3}{2N} - \frac{1}{N^2} \r \\ &= \lim_{N \to \infty} \frac{2\sqrt{2}}{3} \end{align*}
Three married couples sit down at a round table at which there are six chairs. All of the possible seating arrangements of the six people are equally likely.
In the High Court of Farnia, the outcome of each case is determined by three judges: the ass, the beaver and the centaur. Each judge decides its verdict independently. Being simple creatures, they make their decisions entirely at random. Past verdicts show that the ass gives a guilty verdict with probability \(p\), the beaver gives a guilty verdict with probability \(p/3\) and the centaur gives a guilty verdict with probability \(p^2\). Let \(X\) be the number of guilty verdicts given by the three judges in a case. Given that \(\E(X)= 4/3\), find the value of \(p\). The probability that a defendant brought to trial is guilty is \(t\). The King pronounces that the defendant is guilty if at least two of the judges give a guilty verdict; otherwise, he pronounces the defendant not guilty. Find the value of \(t\) such that the probability that the King pronounces correctly is \(1/2\).
Solution: \begin{align*} && \mathbb{E}(X) &= p + \frac{p}{3} + p^2 = \frac43p+p^2 \\ \Rightarrow && \frac43 &= \frac43p+p^2 \\ \Rightarrow && 0 &= 3p^2+4p-4 \\ &&&= (3p-2)(p+2) \\ \Rightarrow && p &= \frac23, -2 \end{align*} Since \(p \in [0,1]\) we must have \(p = \frac23\). \begin{align*} && \mathbb{P}(\text{correct verdict}) &= t p+ (1-t) (1-p) \\ &&&= t(2p-1)+(1-p)\\ \Rightarrow && \frac12 &= t(2p-1)+(1-p) \\ \Rightarrow && t &= \frac{\frac12-(1-p)}{2p-1} \\ &&&= \frac{2p-1}{2(2p-1)} = \frac12 \end{align*} (so it doesn't depend at all on what the judges are doing, the only way to be fair is if the trials happen at random!)
Bag \(P\) and bag \(Q\) each contain \(n\) counters, where \(n\ge2\). The counters are identical in shape and size, but coloured either black or white. First, \(k\) counters (\(0\le k\le n\)) are drawn at random from bag \(P\) and placed in bag \(Q\). Then, \(k\) counters are drawn at random from bag \(Q\) and placed in bag \(P\).
Solution:
A box contains \(n\) pieces of string, each of which has two ends. I select two string ends at random and tie them together. This creates either a ring (if the two ends are from the same string) or a longer piece of string. I repeat the process of tying together string ends chosen at random until there are none left. Find the expected number of rings created at the first step and hence obtain an expression for the expected number of rings created by the end of the process. Find also an expression for the variance of the number of rings created. Given that \(\ln 20 \approx 3\) and that \(1+ \frac12 + \cdots + \frac 1n \approx \ln n\) for large \(n\), determine approximately the expected number of rings created in the case \(n=40\,000\).
Solution: Let \(X_i\) be the indicator variable a loop is formed when there are \(i\) strings in the bag, so \(\mathbb{P}(X_i = 1) = \frac{1}{2i-1}\). Therefore \begin{align*} && Y_n &= X_n + Y_{n-1} \\ && Y_n &= X_n + \cdots + X_1 \\ \Rightarrow && \E[Y_n] &= \frac{1}{2n-1} + \frac{1}{2n-3} + \cdots + \frac{1}{1} \\ && \var[Y_n] &= \sum_{i=1}^n \frac{1}{2i-1} \frac{2i-2}{2i-1} \\ &&&= 2\sum_{i=1}^n \frac{i-1}{(2i-1)^2} \end{align*} \begin{align*} && \E[Y_{n}] &= 1 + \frac13 + \cdots + \frac{1}{2n-1} \\ &&&= 1 + \frac12 + \cdots + \frac1{2n} - \frac12\left (1 + \frac12 + \cdots + \frac1n \right) \\ &&&\approx \ln 2n -\frac12 \ln n \\ &&&= \ln 2 \sqrt{n} \\ \\ && \E[Y_{40\,000}] &= \ln 2 \sqrt{40\,000} \\ &&&= \ln 400 \\ &&&= 2 \ln 20 \approx 6 \end{align*}
A bag contains eleven small discs, which are identical except that six of the discs are blank and five of the discs are numbered, using the numbers 1, 2, 3, 4 and 5. The bag is shaken, and four discs are taken one at a time without replacement. Calculate the probability that:
Solution: There are many ways to do the counting in each question, possibly the clearest way is to always consider the order in which discs are taken, although all methods should work equally well. For some examples Bayes rule also offers a fast solution.