A confidence interval for a mean

With sigma unknown we use s and a t critical value with n - 1 degrees of freedom, which is wider than z to pay for the extra uncertainty; for paired data the same interval is built on the differences.

From AP Statistics.