Inference helper function for Intro Stats education