This article explores two fundamental statistical methods: confidence intervals for estimating population parameters and simple linear regression for modeling relationships between variables. It covers point vs. interval estimates, the role of standard error and the t-distribution, and interpreting regression lines.
In statistics, we rarely have access to an entire population. Instead, we rely on samples to make educated guesses about the world. This article explores two fundamental ways we use samples: first, by estimating a single population value using confidence intervals, and second, by modeling the relationship between two different variables using simple linear regression.
Estimating the Population Mean
When we want to know something about a large group (the population mean, μ), we often start by calculating the sample mean (yˉ) from a smaller group.
Point Estimates vs. Interval Estimates
A point estimate is a single value used to estimate a population parameter. For example, if you want to know the average height of women in a city, your sample mean of 162cm is your point estimate. However, point estimates are imperfect because they vary; every time you take a new sample, you will likely get a different result.
To account for this uncertainty, we use an interval estimate, also known as a confidence interval (CI). Instead of providing one number, an interval provides a range of "believable" values. When we say we have a "95% confidence interval," we mean that if we repeated the sampling process many times, 95% of the intervals we calculated would contain the true population mean.
Exam Tip: A larger interval is more likely to contain the true population parameter, but it is less informative because it is less precise. A smaller interval is more informative but carries a higher risk of missing the true mean.
The Role of Standard Error and the t-Distribution
How wide or narrow our interval is depends on the standard error. The standard error measures the variability of the sample mean and is calculated using the standard deviation (σ) and the sample size (n):
Standard Error=nσ
In many real-world scenarios, the population standard deviation (σ) is unknown. In these cases, we must use the sample standard deviation (s) as an estimate.
When σ is unknown, the standard Normal distribution (the z-distribution) is no longer the best model because our estimate of the standard deviation might be slightly off. Instead, we use the Student’s t-distribution. The t-distribution takes the sample size into account; as the sample size increases, the t-distribution becomes more similar to the Normal distribution.
To calculate a 95% confidence interval when σ is unknown, we use the following formula:
yˉ±tcrit×ns
where tcrit is the critical value from the t-distribution.
Note on Normality: You can only use the t-distribution if the variable of interest is approximately Normal (unimodal and symmetric). However, if your sample size is large, the Central Limit Theorem (CLT) suggests that the sampling distribution of the mean will be approximately Normal regardless of the population shape, making the t-distribution quite robust.
Simple Linear Regression
While confidence intervals help us estimate a single value, simple linear regression allows us to model the relationship between two different numerical variables.
Variables and Scatterplots
In regression, we deal with two types of variables:
Independent Variable (X): Also called the predictor, determinant, or response variable. This is the variable we use to make predictions.
Dependent Variable (Y): Also called the outcome or response variable. This is the variable we are trying to predict.
To visualize the relationship between these variables, we use a scatterplot. By plotting X on the horizontal axis and Y on the vertical axis, we can see patterns, such as whether the trend is positive (both increase together) or negative (one increases while the other decreases).
Warning about Causation: Just because a relationship exists between X and Y does not mean XcausesY. They might both be influenced by a third factor, known as a confounder.
The Least Squares Regression Line
The goal of linear regression is to find the "best" straight line through the scatterplot. This is known as the least squares regression line. The equation for this line is:
y^=b0+b1x
In this equation:
y^ (pronounced "y-hat") represents the predicted value.
b0 is the y-intercept.
b1 is the slope.
The "best" line is mathematically defined as the one that minimizes the sum of the squared residuals. A residual (e) is the difference between the observed value (y) and the predicted value (y^):
e=y−y^
Interpreting the Slope
The most important part of the regression line is the slope, b1. The slope tells us how much we expect the dependent variable to change for every one-unit increase in the independent variable:
For every 1 unit increase in X, we expect Y to change by b1 units, on average.
For example, if we are studying the price of used Toyota Corollas and find a slope of −1310, we would interpret this as: "For every extra year in the age of a used Toyota Corolla, we expect the price to decrease by an average of $1,310".
Keep reading for free.
Create an account to finish this reading and make it part of your study routine.