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.

Lorentzian scipy.optimize.leastsq fit to data fails

Since I took a lecture on Python I wanted to use it to fit my data. Although I have been …

python numpy scipy least-squares data-fitting
Least squares linear classifier in matlab

I'm struggling to understand how to implement a least square linear classifier for my data in matlab. My data has …

matlab machine-learning classification least-squares
Non linear function parameter estimation - matlab, lsqnonlin, fzero

I'm having difficulty with a fitting problem. From the errors that I get I imagine that the boundaries are not …

matlab least-squares nonlinear-functions
Difference in Differences in Python + Pandas

I'm trying to perform a Difference in Differences (with panel data and fixed effects) analysis using Python and Pandas. I …

python pandas regression least-squares panel-data
Chi square numpy.polyfit (numpy)

Could someone explain how to get Chi^2/doF using numpy.polyfit?

python numpy least-squares
Orthogonal regression fitting in scipy least squares method

The leastsq method in scipy lib fits a curve to some data. And this method implies that in this data …

python scipy regression least-squares
How to use least squares method in Matlab?

I have 37 linear equations and 36 variables in the form of a matrix equation; A*X=B . The equations don't have …

matlab math curve-fitting least-squares best-fit-curve
How can I perform a least-squares fitting over multiple data sets fast?

I am trying to make a gaussian fit over many data points. E.g. I have a 256 x 262144 array of …

python scipy curve-fitting gaussian least-squares
trying to get reasonable values from scipy powerlaw fit

I'm trying to fit some data from a simulation code I've been running in order to figure out a power …

python numpy scipy curve-fitting least-squares
Multiple Regression

In order to combine 3 different estimators of the same variable I need to implement a multiple regression method in Java (…

java regression linear-regression least-squares