11. The price of one share of stock in the Pilsdorff Beer Company (see Exercise 8.2.12) is given by Yn on the nth day of the year. Finn observes that the differences Xn = Yn+1 − Yn appear to be independent random variables with a common distribution having mean µ = 0 and variance σ 2 = 1/4. If Y1 = 100, estimate the probability that Y365 is

  1. ≥ 100.
pnorm(100, mean = 100, sd = sqrt(.25 * 365), lower.tail = F)
## [1] 0.5
  1. ≥ 110.
pnorm(110, mean = 100, sd = sqrt(.25 * 365), lower.tail = F)
## [1] 0.1475849
  1. ≥ 120.
pnorm(120, mean = 100, sd = sqrt(.25 * 365), lower.tail = F)
## [1] 0.01814355

2. Calculate the expected value and variance of the binomial distribution using the moment generating function.

\[m(t) = \sum_{i=1}^{\infty} e^{tx_i} p(x_i) = (pe^t + q)^n\] \[m'_X(t) = n(q+pe^t)^{n-1}pe^t\] \[\begin{split} E(X)=m'_X(0) &= n(q+pe^0)^{n-1}pe^0\\ &= n(q+p)^{n-1}p\\ &= np(1-p+p)^{n-1}\\ &= np1^{n-1}\\ &=np \end{split}\]

\[σ2 = m’’(0) – [M’(0)]2 = n(n - 1)p2 +np - (np)2 = np(1 - p)\]

3. Calculate the expected value and variance of the exponential distribution using the moment generating function.

\[f(x)=\lambda e^{-\lambda x}\] \[m_X(t)=\frac{\lambda}{\lambda-t}, t<\lambda\] \[\begin{split} V(X) = E(X^2)-E(X)^2 &= m''_X(0)-m'_X(0)^2 \\ &=\frac{2\lambda}{(\lambda-0)^3} - \frac{1}{\lambda^2}\\ &=\frac{2\lambda}{\lambda^3} - \frac{1}{\lambda^2}\\ &=\frac{2}{\lambda^2} - \frac{1}{\lambda^2}\\ &=\frac{1}{\lambda^2} \end{split}\]