Statistical inference involves using data from a sample to make conclusions about the population from which the sample was drawn. It includes estimation of population parameters and testing hypotheses about parameters. Confidence intervals provide a range of values that are likely to contain the true population parameter, based on a sample statistic and a confidence level such as 95%. The width of the confidence interval depends on factors like the sample size, standard deviation, and desired confidence level.