MATH 375 Assignment 6: Least Squares Fitting¶
Brenton LeMesurier, April 28 2021
Due by Monday May 3
For the following data, find:
A linear least squares fit
\[
\text{(Blood Pressure)} \approx P_0  + P_1 \text{(Weight)}.
\]
A power law fit
\[
\text{(Blood Pressure)} \approx P \text{(Weight)}^a.
\]
Illustrate your results with graphs, and compare how the two methods perform.
Species  | 
Blood Pressure (mm Hg)  | 
Weight (g)  | 
|---|---|---|
Cow  | 
157  | 
800000  | 
Cat  | 
129  | 
2000  | 
Dog  | 
120  | 
5000  | 
Duck  | 
162  | 
2000  | 
Frog  | 
24  | 
50  | 
Giraffe  | 
300  | 
900000  | 
Goat  | 
98  | 
30000  | 
Guinea Pig  | 
60  | 
100  | 
Human  | 
120  | 
90000  | 
Monkey  | 
140  | 
5000  | 
Pig  | 
128  | 
150000  | 
Snake  | 
55  | 
100  | 
Turkey  | 
193  | 
15000  | 
A small bonus for illustrating with graphs.
This can be done using Python or by hand (that is, with pencil, paper, hand and-caculator). Eiher way, describe the systems of linear equations that are to be solved to get the coefficients, \(P_0\), \(P_1\), \(P\), and \(a\).
This work is licensed under Creative Commons Attribution-ShareAlike 4.0 International