statistics expected value formula applied