Question: Using the data below: a. read and extract data from the file studentdate.csv. Calculate the BMI using the formula BMI=weight/(height) 2 Create a plot of
Using the data below:
a. read and extract data from the file studentdate.csv. Calculate the BMI using the formula BMI=weight/(height)2 Create a plot of age versus BMI with appropriate labels and title
b. read and extract height, weight from file studentdata.csv. By using the least squares polynomial fit, create models that range from polynomial degrees of 1 to 5. i.e.create 5 models. Without plotting the models, identify which one has the best model and print the statistic used to identify the best fit model
studentdata.csv
| age | weight | height |
| 22 | 44 | 5.1 |
| 24 | 50 | 5.2 |
| 26 | 55 | 5.3 |
| 28 | 58 | 5.4 |
| 30 | 60 | 5.5 |
| 32 | 65 | 5.6 |
| 34 | 68 | 5.7 |
| 36 | 70 | 5.8 |
| 38 | 73 | 5.9 |
| 40 | 78 | 5.1 |
| 42 | 80 | 5.11 |
| 44 | 84 | 5.11 |
| 46 | 86 | 6 |
| 48 | 88 | 6.1 |
| 50 | 90 | 6.1 |
| 21 | 43 | 5.2 |
| 23 | 48 | 5.3 |
| 25 | 56 | 5.4 |
| 26 | 59 | 5.5 |
| 27 | 61 | 5.6 |
| 28 | 66 | 5.7 |
| 29 | 69 | 5.8 |
| 31 | 71 | 5.9 |
| 33 | 73 | 5.1 |
| 35 | 77 | 5.11 |
| 37 | 82 | 5.11 |
| 38 | 83 | 6 |
| 39 | 90 | 6.1 |
| 40 | 92 | 6.1 |
| 41 | 90 | 6.2 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
