Question: In python , generate the following code and calculate the value three different ways by hand. !!! Please explain your steps . 1 Part 1

In python , generate the following code and calculate the value three different ways by hand. !!!
Please explain your steps .  In python , generate the following code and calculate the value

1 Part 1 . Generate random r. y.6yl data points using the following code data = [(x,randon.gauss (1,0.01) *exp(log(2) +10g(id)sx/400) ,20) for x in range(100,201)] where id is your student id. 2. Plot the data 3. The data can be modeled with the following function y=2 You must determine the value of b in three different ways Analitycally, as function of vour student id. Using the linear least square fitting function discussed in class. Notice the fitting function above is not linear in b therefore you need to perform a transformation of the data before you can apply linear least squares By minimizing 2 using an optimization algorithm (for example New- ton). For each of the above methods: . Explain the method in detail Show your steps Show your result . A plot of your fitting function superimposed to the data Do you expect the three methods to agree? Why? If you do not expect them to agree exactely, To what precision should they agree

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!