10 problems found
A fair coin is tossed \(N\) times and the random variable \(X\) records the number of heads. The mean deviation, \(\delta\), of \(X\) is defined by \[ \delta = \mathrm{E}\big(|X - \mu|\big) \] where \(\mu\) is the mean of \(X\).
Solution:
A random process generates, independently, \(n\) numbers each of which is drawn from a uniform (rectangular) distribution on the interval 0 to 1. The random variable \(Y_k\) is defined to be the \(k\)th smallest number (so there are \(k-1\) smaller numbers).
Solution:
In this question, the definition of \(\displaystyle\binom pq\) is taken to be \[ \binom pq = \begin{cases} \dfrac{p!}{q!(p-q)!} & \text{ if } p\ge q\ge0 \,,\\[4mm] 0 & \text{ otherwise } . \end{cases} \]
Solution:
An operator \(\rm D\) is defined, for any function \(\f\), by \[ {\rm D}\f(x) = x\frac{\d\f(x)}{\d x} .\] The notation \({\rm D}^n\) means that \(\rm D\) is applied \(n\) times; for example \[ \displaystyle {\rm D}^2\f(x) = x\frac{\d\ }{\d x}\left( x\frac{\d\f(x)}{\d x} \right) \,. \] Show that, for any constant \(a\), \({\rm D}^2 x^a = a^2 x^a\,\).
Solution: \begin{align*} {\mathrm D}^2 x^a &= x\frac{\d\ }{\d x}\left( x\frac{\d}{\d x} \left ( x^a \right) \right) \\ &= x\frac{\d\ }{\d x}\left( ax^a \right) \\ &= a^2 x^a \end{align*}
By considering the coefficient of \(x^r\) in the series for \((1+x)(1+x)^n\), or otherwise, obtain the following relation between binomial coefficients: \[ \binom n r + \binom n {r-1} = \binom {n+1} r \qquad (1\le r\le n). \] The sequence of numbers \(B_0\), \(B_1\), \(B_2\), \(\ldots\) is defined by \[ B_{2m} = \sum_{j=0}^m \binom{2m-j}j \text{ and } B_{2m+1} = \sum_{k=0}^m \binom{2m+1-k}k . \] Show that \(B_{n+2} - B_{n+1} = B_{n}\,\) (\(n=0\), \(1\), \(2\), \(\ldots\,\)). What is the relation between the sequence \(B_0\), \(B_1\), \(B_2\), \(\ldots\) and the Fibonacci sequence \(F_0\), \(F_1\), \(F_2\), \(\ldots\) defined by \(F_0=0\), \(F_1=1\) and \(F_n = F_{n-1}+F_{n-2}\) for \(n\ge2\)?
Solution: The coefficient of \(x^{r-1}\) in \((1+x)^n\) is \(\binom{n}{r-1}\) and the coefficient of \(x^r\) in \((1+x)^n\) is \(\binom{n}{r}\). The only ways to get \(x^r\) in the expansion of \((1+x)(1+x)^n\) is to either multiply the \(x^r\) term from the second expansion by \(1\) or the \(x^{r-1}\) term by \(x\). This is \(\binom{n}{r-1} + \binom{n}{r}\). However, the coefficient of \(x^r\) in \((1+x)^{n+1}\) is \(\binom{n+1}r\), so \(\binom{n}{r} + \binom{n}{n-1} = \binom{n+1}r\). Claim: \(B_{n+2} - B_{n+1} = B_{n}\). Proof: Consider \(n\) even, ie \(n = 2m\) \begin{align*} B_{n+2} - B_{n+1} &= \sum_{j=0}^{m+1} \binom{2(m+1)-j}{j} - \sum_{j=0}^m \binom{2m+1-j}{j} \\ &= \binom{2(m+1)-(m+1)}{m+1} +\sum_{j=0}^m \left ( \binom{2(m+1)-j}{j} - \binom{2m+1-j}{j} \right) \\ &= 1 + \sum_{j=1}^m \binom{2m+1-j}{j-1} \\ &= 1 + \sum_{j=0}^{m-1} \binom{2m-j}{j} \\ &= \binom{m}{m} + \sum_{j=0}^{m-1} \binom{2m-j}{j} \\ &= \sum_{j=0}^{m} \binom{2m-j}{j} \\ &= B_n \end{align*} Consider \(n\) even, ie \(n = 2m+1\) \begin{align*} B_{n+2} - B_{n+1} &= \sum_{j=0}^{m+1} \binom{2(m+1)+1-j}{j} - \sum_{j=0}^{m+1} \binom{2(m+1)-j}{j} \\ &= \sum_{j=0}^{m+1} \left (\binom{2(m+1)+1-j}{j} - \binom{2(m+1)-j}{j}\right)\\ &= \sum_{j=1}^{m+1} \binom{2(m+1)-j}{j-1} \\ &= \sum_{j=0}^{m} \binom{2m+1-j}{j} \\ &= B_n \end{align*} as required. \(B_0 = 1, B_1 = 2\), therefore \(B_n = F_{n+2}\)
Show that $\ds ^{2r} \! {\rm C}_r =\frac{1\times3\times\dots\times (2r-1)}{r!} \, \times 2^r \;, $ for \(r\ge1\,\).
Solution: \begin{align*} \binom{2r}{r} &= \frac{(2r)!}{r!r!} \\ &= \frac{1 \cdot 2 \cdot 3 \cdot 4 \cdots (2r-1)(2r)}{r! r!} \\ &= \frac{1 \cdot 3 \cdot 5 \cdots (2r-1) \cdot (2 \cdot 1) \cdot (2 \cdot 2) \cdots (2 \cdot r)}{r!}{r!} \\ &= \frac{1\cdot 3 \cdots (2r-1) \cdot 2^r \cdot 1 \cdot 2 \cdots r}{r!r!} \\ &= \frac{1\cdot 3 \cdots (2r-1) \cdot 2^r \cdot r!}{r!r!} \\ &= \frac{1\cdot 3 \cdots (2r-1)}{r!} \cdot 2^r \end{align*} which is what we wanted to show
An examiner has to assign a mark between 1 and \(m\) inclusive to each of \(n\) examination scripts (\(n\leqslant m\)). He does this randomly, but never assigns the same mark twice. If \(K\) is the highest mark that he assigns, explain why \[ \mathrm{P}(K=k)=\left.\binom{k-1}{n-1}\right/\binom{m}{n} \] for \(n\leqslant k\leqslant m,\) and deduce that \[ \sum_{k=n}^{m}\binom{k-1}{n-1}=\binom{m}{n}\,. \] Find the expected value of \(K\).
Solution: If the highest mark is \(k\), then there are \(n-1\) remaining marks to give, and they have to be chosen from the numbers \(1, 2, \ldots, k-1\), ie in \(\binom{k-1}{n-1}\) ways. There are \(n\) numbers to be chosen from \(1, 2, \ldots, m\) in total, therefore \(\displaystyle \mathbb{P}(K=k) = \left.\binom{k-1}{n-1} \right/ \binom{m}{n}\) Since \(K\) can take any of the values \(n, \cdots, m\), we must have \begin{align*} && 1 &= \sum_{k=n}^m \mathbb{P}(K=k) \\ &&&= \sum_{k=n}^m \left.\binom{k-1}{n-1} \right/ \binom{m}{n} \\ \Rightarrow && \binom{m}{n} &= \sum_{k=n}^m \binom{k-1}{n-1} \\ \\ && \mathbb{E}(K) &= \sum_{k=n}^m k \cdot \mathbb{P}(K=k) \\ &&&= \sum_{k=n}^m k \cdot \left.\binom{k-1}{n-1} \right/ \binom{m}{n} \\ &&&= n\binom{m}{n}^{-1} \sum_{k=n}^m \frac{k}{n} \cdot \binom{k-1}{n-1} \\ &&&= n\binom{m}{n}^{-1} \sum_{k=n}^m \binom{k}{n} \\ &&&= n\binom{m}{n}^{-1} \sum_{k=n+1}^{m+1} \binom{k-1}{n+1-1} \\ &&&= n\binom{m}{n}^{-1} \binom{m+1}{n+1} \\ &&&= n \cdot \frac{m+1}{n+1} \end{align*}
I have a bag containing \(M\) tokens, \(m\) of which are red. I remove \(n\) tokens from the bag at random without replacement. Let \[ X_{i}=\begin{cases} 1 & \mbox{ if the ith token I remove is red;}\\ 0 & \mbox{ otherwise.} \end{cases} \] Let \(X\) be the total number of red tokens I remove.
Solution:
Let \(\mathrm{p}_{0}(x)=(1-x)(1-x^{2})(1-x^{4}).\) Show that \((1-x)^{3}\) is a factor of \(\mathrm{p}_{0}(x).\) If \(\mathrm{p}_{1}(x)=x\mathrm{p}_{0}'(x)\) show, by considering factors of the polynomials involved, that \(\mathrm{p}_{0}'(1)=0\) and \(\mathrm{p}_{1}'(1)=0.\) By writing \(\mathrm{p}_{0}(x)\) in the form \[ \mathrm{p}_{0}(x)=c_{0}+c_{1}x+c_{2}x^{2}+c_{3}x^{3}+c_{4}x^{4}+c_{5}x^{5}+c_{6}x^{6}+c_{7}x^{7}, \] deduce that \begin{alignat*}{2} 1+2+4+7 & \quad=\quad & & 3+5+6\\ 1^{2}+2^{2}+4^{2}+7^{2} & \quad=\quad & & 3^{2}+5^{2}+6^{2}. \end{alignat*} Show that we can write the integers \(1,2,\ldots,15\) in some order as \(a_{1},a_{2},\ldots,a_{15}\) in such a way that \[ a_{1}^{r}+a_{2}^{r}+\cdots+a_{8}^{r}=a_{9}^{r}+a_{10}^{r}+\cdots+a_{15}^{r} \] for \(r=1,2,3.\)
Solution: \begin{align*} && p_0(x) &= (1-x)(1-x^2)(1-x^4) \\ &&&= (1-x)(1-x)(1+x)(1-x^2)(1+x^2) \\ &&&= (1-x)^2 (1+x)(1-x)(1+x)(1+x^2) \\ &&&= (1-x)^3 (1+x)^2 (1+x^2) \end{align*} \begin{align*} && p_0'(x) &= 3(1-x)^2(1+x)^2(1+x^2) + (1-x)^3 q(x) \\ \Rightarrow && p_0'(1) &= 3 \cdot 0 \cdots + 0 \cdots \\ &&&= 0 \\ && p_1'(x) &= p_0(x) + xp'_0(x) \\ \Rightarrow && p_1'(1) &= p_0(1) + 1\cdot p_0'(1) \\ &&&= 0 + 1 \cdot 0 \\ &&&= 0 \end{align*} Notice that \(p_0(x) = (1-x-x^2+x^3)(1-x^4) = 1-x-x^2+x^3-x^4+x^5+x^6-x^7\), so: \(p'_0(x) = -1-2x+3x^2-4x^3+5x^4+6x^5-7x^6 \Rightarrow p'_0(1) = 0 = -1 -2 -4 -7 + 3 + 5+6\). \((xp'_1(1))' = 0 = -1^2-2^2-4^2-7^2 + 3^2 + 5^2 + 6^2\). Consider \(q_0(x) = (1-x)(1-x^2)(1-x^4)(1-x^8)\), then \((1-x)^4\) is a factor, so in particular we know \(q_0(1), (xq_0(x))'|_{x=1} = 0,(x(xq_0(x))')'|_{x=1} = 0\), and so: \(q_0(x) = 1-x-x^2+x^3-x^4+x^5+x^6-x^7 - x^8+x^9+x^{10}-x^{11}+x^{12}-x^{13}-x^{14}+x^{15}\), and so: \(1^r+2^r+4^r+7^r+8^r+11^r+13^r+14^r = 3^r+5^r+6^r+9^r+10^r+12^r+15^r\) for \(r = 1,2,3\)
If \(y=\mathrm{f}(x)\), then the inverse of \(\mathrm{f}\) (when it exists) can be obtained from Lagrange's identity. This identity, which you may use without proof, is \[ \mathrm{f}^{-1}(y)=y+\sum_{n=1}^{\infty}\frac{1}{n!}\frac{\mathrm{d}^{n-1}}{\mathrm{d}y^{n-1}}\left[y-\mathrm{f}\left(y\right)\right]^{n}, \] provided the series converges.
Solution: