Code covered by the BSD License  

Highlights from
Linear Regression with Errors in X and Y

5.0

5.0 | 3 ratings Rate this file 47 Downloads (last 30 days) File Size: 4.66 KB File ID: #26586
image thumbnail

Linear Regression with Errors in X and Y

by

 

Calculates slope and intercept for linear regression of data with errors in X and Y.

| Watch this File

File Information
Description

Calculates slope and intercept for linear regression of data with errors in X and Y. The errors can be specified as varying point to point, as can the correlation of the errors in X and Y.

The uncertainty in the slope and intercept are also estimated.

This follows the method in D. York, N. Evensen, M. Martinez, J. Delgado "Unified equations for the slope, intercept, and standard errors of the best straight line" Am. J. Phys. 72 (3) March 2004.

The package includes an example and a Monte Carlo simulation verifying the estimated uncertainties.

For more info, visit http://blog.nutaksas.com

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
07 Jun 2013 Antoni J. CanĂ³s  
20 Aug 2011 Stephan Koehler  
04 Feb 2010 Paul Behrens  

Contact us