Text this: Foundations of statistical inference