Question: (b) Based on the following sample data that relates population (x) to accidents (y), write MATLAB code to build a linear model. The code should

(b) Based on the following sample data that relates population (x) to accidents (y), write MATLAB code to build a linear model. The code should not use the MATLAB function polyfit(xy,n). Assume that the variables x and y are already in the MATLAB workspace, where each is a vector of one column, and many rows. Population (x) 493,782 572,059 608,827 626,932 642,200 Accidents (y) 164 98 101 100
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
