How to do proper linear regression using matlab


Matlab statsitics

Response to the following questions:

1. I need a good way to display error bars on a scatter plot. I have a set of x and y data, that I have attached as a text file along with y+err and y-err data (denoted +/-). The err values vary from point to point, and +err and -err are not necessarily the same.

2. I am using the data to get a slope and an intercept. Once I know. I need an easy way to calculate the errors in slope and intercept? (This may be more of a math question than a MatLab question, but I assume someone here knows the solution.)

Please do an example In full detail since I will be doing this for my physics lab reports for the next two months and I really need to know how to do proper linear regression using Matlab.

Also I need a Chi square test to verify that my fit is in fact good. Can you also please explain that .

2.0	4.220 +/- .005
1.8	3.819 +/- .005
1.6	3.415 +/- .005
1.4	3.010 +/- .004
1.2	2.604 +/- .004
1.0	2.201 +/- .003
0.8	1.794 +/- .003
0.6	1.387 +/- .003
0.4	0.981 +/- .002
o.2	0.578 +/- .001
0	0.185 +/- .001

Solution Preview :

Prepared by a verified Expert
Engineering Mathematics: How to do proper linear regression using matlab
Reference No:- TGS01939537

Now Priced at $25 (50% Discount)

Recommended (95%)

Rated (4.7/5)