The system entries are sums of the shown data. This lesson assembles those sums before any solving happens.
The entries are sums
The exact sums are n=4, sum x=6, sum y=11, sum x times x=14, and sum x times y=22.
n,∑x,∑y,∑x⋅x,∑xy
Assemble the system
Placing those sums into X-transpose X and X-transpose y gives the displayed system.
[n∑x∑x∑x⋅x∑y∑xy]
Summary
The assembly step is exact integer arithmetic from the shown data. Every displayed arithmetic value is recomputed exactly from the data.
[466141122]