Let \(X\) be a discrete random variable with
| \(x\) | -1 | 3 | 7 |
|---|---|---|---|
| \(P(X=x)\) | 0.5 | 0.2 | 0.3 |
- Compute the mgf of \(X\).
- Compute the mean two ways: using the definition, and using the mgf. Confirm that you get the same answer.
- Compute the variance two ways: using the definition, and using the mgf. Confirm that you get the same answer.