Excercise 11 on page 363
1-pnorm(100-100,0,9.552487)
## [1] 0.5
1-pnorm(110-100,0,9.552487)
## [1] 0.1475849
1-pnorm(120-100,0,9.552487)
## [1] 0.01814355
To calculate the expected value, we differentiate the MGF once with respect to \(t\), yielding \(g'(t) = np e^t (pe^t + q)^{n-1}\).
We then evaluate the first derivative at \(t = 0\) to find the expected value: \(g'(0) = np(p + q)^{n-1}\).
For the variance, we proceed by taking the second derivative of the MGF with respect to \(t\), which gives \(g''(t) = np e^t (pe^t + q)^{n-1} + n(n-1)p^2 e^{2t} (pe^t + q)^{n-2}\).
Then, we evaluate the second derivative at \(t = 0\) to determine the variance: \(g''(0) = np(p + q)^{n-1} + n(n-1)p^2 (p + q)^{n-2}\).
These expressions provide a convenient method to compute the expected value and variance of a binomial distribution using its moment generating function.
Given: \(g(t) = \frac{1}{1 - \beta t}\) for \(t < \frac{1}{\beta}\)
To find the expected value, differentiate the moment generating function \(g(t)\) once with respect to \(t\), yielding \(g'(t) = \beta \left( 1 - \beta t \right)^{-2}\). Evaluate \(g'(0)\) to get the expected value: \[ \text{Expected value} = \beta \]
To find the variance, differentiate the moment generating function \(g(t)\) twice with respect to \(t\), yielding \(g''(t) = 2 \beta^2 \left( 1 - \beta t \right)^{-3}\). Evaluate \(g''(0)\) to get the variance: \[ \text{Variance} = 2\beta^2 \]