In trying to fit polynomials to data, I have a tall and skinny matrix $A$, of size $\simeq 250,000 \times 1000$, that is quite ill-conditioned $\kappa(A) \simeq 10^{78}$.
I am solving it by pivoted QR, but the results get worse when adding more data points, and more polynomials.
I tried building the normal form $A^TA$, but the condition number is worse, and the smallest eigenvalue is around $-10^3$, which is strange for a symmetric positive matrix... I expect that this is due to floating point arithmetic, and it should not matter if the conditioning is better.
Could preconditioning help? I saw somewhere that rescaling the grid on which the polynomials live might make it better.
Any other ideas?