how is a hypothesis test used to conduct statistical inference?