Regress_Bivariate

Weighted Linear Regression w (Correlated or Uncorrelated) Errors in Bivariate Data
1K Downloads
Updated 12 Sep 2014

View License

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 (2024). Regress_Bivariate (https://www.mathworks.com/matlabcentral/fileexchange/47702-regress_bivariate), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Regress_Bivariate/

Regress_Bivariate/html/

Version Published Release Notes
1.1.0.0

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

1.0.0.0