solve statistics problems