Least-squares regression line
最小二乘法与经验回归方程
How do you find the least-squares regression line?
The slope is the correlation times the ratio of the standard deviations; the line passes through the point of means.
Sign in to read the whole lesson, with 1 interactive aid, 5 exercises
Sign in / Sign upMastery goals
- Can find the least-squares (empirical) regression line using b̂ = Σ(xᵢ − x̄)(yᵢ − ȳ)/Σ(xᵢ − x̄)² (equivalently b̂ = r·s_y/s_x) and â = ȳ − b̂x̄
- Can find the regression line with technology
We call the empirical regression equation of on , also called the empirical regression function or empirical regression formula, and its graph is called the empirical regression line. This way of finding the empirical regression equation is called the method of least squares, and the , obtained are called the least squares estimates of , .
("Least squares" refers to the squares in the sum .)
For the data in Table 8.2-1, formula (2) gives and , so the empirical regression equation of the son's height on the father's height is
and the corresponding empirical regression line is shown in Figure 8.2-6.
The empirical regression model can also be found with statistical software: some spreadsheet programs give it through the "regression" tool in data analysis or through "add trendline", and in R the function lm computes the least squares estimates of the parameters.
Related points
All points in this topicCite this page: Least-squares regression line · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000942