5.0

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

Linear Regression with Errors in X and Y

by Travis Wiens

 

03 Feb 2010

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  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
04 Feb 2010 Paul Behrens  
20 Aug 2011 Stephan Koehler  
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
mathematics Travis Wiens 04 Feb 2010 10:24:14
measurement Travis Wiens 04 Feb 2010 10:24:14
statistics Travis Wiens 04 Feb 2010 10:24:14
interpolation Travis Wiens 04 Feb 2010 10:24:14
modeling Travis Wiens 04 Feb 2010 10:24:14
linear regression Travis Wiens 04 Feb 2010 10:24:14
errors Travis Wiens 04 Feb 2010 10:24:14
uncertainty Travis Wiens 04 Feb 2010 10:24:14
line Travis Wiens 04 Feb 2010 10:24:14
slope Travis Wiens 04 Feb 2010 10:24:14
intercept Travis Wiens 04 Feb 2010 10:24:14

Contact us at files@mathworks.com