Regress_Bivariate

Weighted Linear Regression w (Correlated or Uncorrelated) Errors in Bivariate Data

You are now following this Submission

Regress_Bivariate produces a weighted least squares fit of a straight line to a set of points with error in both coordinates. It can handle bivariate regression where the errors in both coordinates are correlated (or uncorrelated) and is capable of performing force-fit regression. The algorithm used in the code is based on the Maximum Likelihood Estimation technique from 'Unified Equations for the slope, intercept, and standard errors of the best straight line' (York et al., 2004).
This file uses the MATLAB code 'Errorbar_x' (#12751; included in the .zip file) to display error-bars in the X direction.
Citation: Thirumalai, K., A. Singh, and R. Ramesh (2011), A MATLAB code to perform weighted linear regression with (correlated or uncorrelated) errors in bivariate data, Journal of the Geological Society of India, 77(4), 377–380, doi: 10.1007/s12594-011-0044-1

Cite As

Kaustubh Thirumalai (2026). Regress_Bivariate (https://www.mathworks.com/matlabcentral/fileexchange/47702-regress_bivariate), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.0.0

Enabled help file to be opened via html on this site.

1.0.0.0