Top "Least-squares" questions

Refers to a general estimation technique that selects the parameter value to minimize the squared difference between two quantities, such as the observed value of a variable, and the expected value of that observation conditioned on the parameter value.

fast & efficient least squares fit algorithm in C?

I am trying to implement a linear least squares fit onto 2 arrays of data: time vs amplitude. The only technique …

c algorithm least-squares
R draw (abline + lm) line-of-best-fit through arbitrary point

I am trying to draw a least squares regression line using abline(lm(...)) that is also forced to pass through …

r plot line point least-squares
How do I use the least squares approximation in MATLAB?

For a homework assignment in linear algebra, I have solved the following equation using MATLAB's \ operator (which is the recommended …

math matlab linear-algebra least-squares
Use of curve_fit to fit data

I'm new to scipy and matplotlib, and I've been trying to fit functions to data. The first example in the …

python python-3.x scipy curve-fitting least-squares
Linear regression line in MATLAB scatter plot

I am trying to get the residuals for the scatter plot of two variables. I could get the least squares …

matlab regression least-squares
Lasso on sklearn does not converge

When I run something like import numpy from sklearn import linear_model A= #something b= #something clf=linear_model.Lasso(…

python machine-learning least-squares scikit-learn
Plane fitting to 4 (or more) XYZ points

I have 4 points, which are very near to be at the one plane - it is the 1,4-Dihydropyridine cycle. I …

python geometry least-squares plane
Least square method in python?

I have these values: T_values = (222, 284, 308.5, 333, 358, 411, 477, 518, 880, 1080, 1259) (x values) C/(3Nk)_values = (0.1282, 0.2308, 0.2650, 0.3120 , 0.3547, 0.4530, 0.5556, 0.6154, 0.8932, 0.9103, 0.9316) (y values) I know they follow the model: C/(3…

python least-squares data-fitting
function for weighted least squares estimates

Does R have a function for weighted least squares? Specifically, I am looking for something that computes intercept and slope. …

r least-squares