Question: in python Problem #2 Recall from the lecture notes that the coefficients in an exponential function y=coeciu can be determined by converting the exponential into
Problem #2 Recall from the lecture notes that the coefficients in an exponential function y=coeciu can be determined by converting the exponential into a linear regression prob- lem. a) Write a user-defined function that takes two vectors as its input arguments that contain the values of I, and yi i=1,...,N in the data set, performs the linear regression, and returns the values of the coefficients co and ci. b) Consider the following data giving the population of the earth in billions for selected years between 1850 and 2000: Year 1 Population 1850 1.3 1900 1.6 1950 1980 2000 3.0 4.4 6.0 Assuming that this population growth data follows roughly an exponential growth curve, use your user-defined function from part (a) to determine the best-fit values of the coefficients Co and cy in the exponential function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
