What is it about?
When analyzing a set of data points, researchers often seek to draw a straight line that captures the overall trend—a line known as the “line of best fit”. Determining this line typically involves solving multiple equations or performing complex matrix operations. This article introduces a straightforward approach to constructing a line of best fit, termed “Shu’s two–point method”. The method identifies two points within the dataset that possess clear geometric significance: the “geometric center”, which represents the average position of the data, and the “mass center”, a weighted average point that reflects the distribution of the data. The line connecting these two points serves as the regression line. Because the method relies on these geometrically meaningful points, the line can be constructed using only a ruler and a compass. This approach offers an intuitive interpretation of regression analysis, making it easier to grasp than traditional, equation-based computational methods. In short, it transforms the task of “solving a large system of equations” into the simpler process of “locating two central points and connecting them”.
Featured Image
Photo by Jim Robinson on Unsplash
Why is it important?
Easier to understand: Traditional least-squares regression is typically introduced through formulas, matrices, derivatives, and optimization theory—mathematical tools that often pose challenges for students and non-specialists. The “Shu’s two–point method” offers a geometric interpretation: identify two representative central points and draw a line passing through them. This approach renders the fundamental logic behind regression more intuitive and clear. It may also offer greater computational efficiency: conventional implementations often rely on matrix operations, which can become computationally burdensome when dealing with large datasets or a high number of variables. In contrast, this method avoids explicit matrix inversion and the need to solve large systems of equations. For simple linear regression, the required central points can be determined by a single pass through the observed data. This makes the method particularly advantageous for handling large-scale datasets, performing real-time computations, or operating on devices with limited computing power. It bridges classical geometry and modern data analysis: by grounding the approach in geometric construction—reminiscent of classical compass-and-straightedge geometry—it demonstrates that modern statistical problems can have simple geometric foundations. This connection is highly valuable both conceptually and pedagogically, as it links regression analysis to familiar notions such as averages, central points, proportions, and lines. It helps lower the barrier to entry for learning regression analysis: because the core construction relies solely on averages, weighted averages, and basic arithmetic, it makes regression analysis more accessible to a broader audience—including undergraduate students, engineers and applied scientists, data analysts without an advanced mathematical background, and those new to statistics or machine learning. Consequently, this method serves as an effective complement to the traditional teaching of least-squares regression, moving beyond the presentation of regression analysis as merely an abstract optimization problem.
Perspectives
This paper offers a promising alternative perspective on the “least squares” method; however, its broader significance hinges on the effective refinement and validation of the “two–point principle”. From a pedagogical standpoint, this approach serves as a practical teaching tool, helping to clarify concepts such as what a line of best fit represents, why the mean is crucial in regression analysis, how data distribution influences the fitted line, and the connection between algebraic and geometric interpretations. With the aid of interactive software, students can manipulate individual data points and observe, in real time, how the geometric center, the mass center, and the line of best fit shift. This transforms regression analysis from a process of rote formulaic calculation into an intuitive, exploratory discipline. From a computational perspective, this method is particularly well-suited for scenarios involving continuous data streams—such as those found in sensor networks, manufacturing systems, environmental monitoring, and Internet of Things applications. Rather than storing and reprocessing the entire dataset, the algorithm only needs to update the key quantities required to determine the two aforementioned centers. Future research should evaluate the computational costs of this method under various conditions and benchmark it against existing numerical techniques, such as QR decomposition, singular value decomposition, stochastic gradient descent, and recursive least squares. From an engineering viewpoint, this intuitive “two–point representation” is highly valuable in applications where users require not only numerical predictions but also an understanding and justification of the underlying model. Potential applications include instrument calibration, process monitoring and quality control, trend estimation based on sensor measurements, predictive maintenance, experimental data analysis, and on-device or embedded machine learning. This geometric construction offers a distinct advantage when model interpretability and computational simplicity are prioritized over the use of highly complex predictive models. From a statistical perspective, future research should further characterize the method’s statistical properties and precisely define the conditions under which the line connecting these two points aligns perfectly with the solution derived from ordinary least squares. A key question to address is how the method performs when the two centers coincide or are extremely close to one another. How sensitive is the fitted line to outliers? How does it perform when the data contains measurement errors? Can this method handle weighted observations or cases with unequal variances? How are uncertainties, confidence intervals, and prediction intervals calculated? Furthermore, how can this construction be extended to scenarios involving multiple independent variables? Exploring these questions is crucial; even if a method is geometrically elegant and computationally efficient, it must be applied with caution when dealing with anomalous or noisy datasets. From a machine learning perspective, this “Shu’s two–point method” concept could serve as a foundation for developing lightweight learning algorithms tailored for large-scale or streaming data. Potential extensions include nonlinear regression, multivariate modeling, robust regression, online updates, and distributed computing. However, extending it to nonlinear or high-dimensional contexts require rigorous mathematical definitions. Since a nonlinear curve generally cannot be uniquely determined by just two arbitrary points, such extensions might necessitate the introduction of transformations, local constructions, basis functions, or multiple representative central points. Ultimately, the primary contribution of this work is not merely a new formula for drawing a regression line, but a fresh way of conceptualizing regression: the idea that a “best-fit” relationship can be interpreted not only through equations and optimization, but also via meaningful “central points” derived from the data itself. If the method’s equivalence, numerical stability, and scalability are validated across various datasets, the “Shu’s two–point method” could serve both as a practical computational tool for specific regression problems and as an intuitive pedagogical framework for explaining the fundamental principles of the least-squares method. A simplified overview for a general audience: The “Shu’s two–point method” derives a trend line by identifying two meaningful central points within a dataset and connecting them. This approach replaces complex matrix operations with basic arithmetic and clear geometric construction. It not only accelerates regression computations and enhances the visual interpretability of results, but also makes regression analysis more accessible to students, engineers, and those working with large-scale datasets. Future research should further examine its numerical stability, statistical properties, robustness to outliers, and its extended application to nonlinear and multivariate problems.
Professor Jian-Jun SHU
Nanyang Technological University
Read the Original
This page is a summary of: A novel and concise Shu’s two–point method for fast least squares and regression analysis and its straightedge–and–compass construction, Advanced Engineering Informatics, January 2027, Elsevier,
DOI: 10.1016/j.aei.2026.105422.
You can read the full text:
Contributors
The following have contributed to this page







