A full probability distribution (for a discrete random variable) or a density function (for a continuous random variable) carry all of the probability information. Often, we seek statistics, i.e., numbers that summarize a distribution in some way.
Let \(X\) be a discrete random variable taking the values \(x_1, x_2, \dotsc, x_n\text{.}\) The expected value (also called mean, or expectation) of \(X\) is the weighted average of the values of \(X\text{,}\) where the weights are the probabilities of \(X\) taking each value:
If \(X\) takes on the values \(x_1, x_2, \dotsc, x_n\) uniformly (i.e., each value having probability \(\frac{1}{n}\)), then the expected value is the usual average:
Suppose we roll a fair 6-sided die two times, and let \(S\) be the sum of the rolls. Itβs straightforward to check the distribution for \(S\) shown below. Weβve also included a column containing the products \(k \Pr(S = k)\text{,}\) which must be summed up to find \(\E(S)\text{.}\)
Having found the expected value for one named distribution, we may be tempted to run through our other discrete distributions (binomial, geometric, and Poisson) and find nice formulas for their expected values. Unfortunately, both the geometric distribution and the Poisson distribution have infinitely many possible values, and the summation of infinitely many discrete terms is beyond the scope of this course. (A Calculus 2 course covering series would give the right tools to find expected value formulas with full justification for these distributions.)
The binomial distribution takes only finitely many values, and we have FactΒ 2.1.12 that lets us generate a distribution table reasonably quickly, given the parameters \(n\) and \(p\text{.}\) Feel free to pick some parameter values (keep \(n\) fairly small!) to try this calculation by hand, but weβll use a powerful theorem a bit later to give a very nice general formula depending on \(n\) and \(p\text{.}\)
Let \(X\) and \(Y\) be random variables each taking the values 1, 2, 3, 4, 5. Write different distribution tables for \(X\) and \(Y\) so that they have the same expected value.
Suppose we flip a coin \(n = 100\) times, and let \(N\) count the number of heads. If the coin comes up heads on a flip with probability \(p = 0.4\text{,}\) what is \(\E(N)\text{?}\) What if \(n = 80\) and \(p = 0.6\text{?}\) What if \(n = 200\) and \(p = 0.5\text{?}\)
A continuous random variable \(X\) taking values in \([1, 4]\) has p.d.f. \(f(x) = k(x - \sqrt{x})\) for some constant \(k\text{.}\) In a previous problem, you found the value of \(k\text{.}\) Now, find \(\E(X)\text{.}\)
A continuous random variable \(X\) taking values in \([1, 2]\) has p.d.f. \(\displaystyle{f(x) = \frac{1}{2}\left(\frac{1}{x^2} + x\right)}\text{.}\) Find \(\E(X)\text{.}\)