What is it about?
Imagine plotting the distance people cycle against the time they spend doing so. While the data points will not fall perfectly along a single line, a straight line can represent their overall trend. This article introduces a method for determining such a line by calculating just two points based on the entire dataset: the first is the simple average position of all the data points, while the second is a different type of average that assigns varying weights to each point. The line connecting these two points is identical to the “line of best fit” derived from the standard “least squares” method used in statistics. Furthermore, this article demonstrates how to construct this line using only a ruler and a compass.
Featured Image
Photo by Jim Robinson on Unsplash
Why is it important?
What is novel is the method for finding the line, rather than the line itself. The “two-point method” makes certain concepts, well-known in statistics and machine learning, easier to visualize and interpret. Because it relies solely on addition, subtraction, multiplication, and division, it allows even primary and secondary school students to gain direct experience in fitting a straight line to empirical data, without needing to wait until they study calculus. It also provides a simple method for calculating linear trends in real-world scenarios, for instance, when analysing observational data from fields such as sciences, engineering, social sciences, and humanities.
Perspectives
Most excitingly, it holds potential for application in all fields of sciences, engineering, social sciences, and humanities. It envisions researchers collecting data themselves, calculating the coordinates of two points, and manually plotting a straight line. They could then explore further: how would the line change if a new data point were added? This approach is far superior to simply pressing a button and having a line instantly appear on a screen; it offers researchers a much more engaging way to encounter the fundamentals of statistics and machine learning.
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







