Introduction to Probability · Problem 17

Expected Value and Variance — Grinstead & Snell

Mathematics — Probability · variance-discrete-random-variables

Problem

Let XX be the outcome of a chance experiment with E(X)=μE(X) = \mu and V(X)=σ2V(X) = \sigma^2. When μ\mu and σ2\sigma^2 are unknown, the statistician often estimates them by repeating the experiment nn times with outcomes x1,x2,…,xnx_1, x_2, \ldots, x_n, estimating μ\mu by the sample mean xˉ=1n∑i=1nxi,\bar{x} = \frac{1}{n} \sum_{i=1}^n x_i, and σ2\sigma^2 by the sample variance s2=1n∑i=1n(xi−xˉ)2.s^2 = \frac{1}{n} \sum_{i=1}^n (x_i - \bar{x})^2. Then ss is the sample standard deviation. (Many statisticians define the sample variance with the coefficient 1/n1/n replaced by 1/(n−1)1/(n-1). If this alternative definition is used, the expected value of s2s^2 is equal to σ2\sigma^2. See Exercise 18, part (d).) Write a computer program that will roll a die nn times and compute the sample mean and sample variance. Repeat this experiment several times for n=10n = 10 and n=1000n = 1000. How well do the sample mean and sample variance estimate the true mean 7/27/2 and variance 35/1235/12?

Related theory

Browse the problem library