Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 . image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions