Question

"## Task 4 (3 points)\n",

"\n",

"1. Assume that you already know the hidden law behind the data. You need to read and

understand the function `generate_data` to figure out the hidden law (obvious though!).

**Question**: How would you obtain the regression model with the hypothesis function that uses

the hidden law but with unknown parameters. That is, any constants in the hidden law should be

replaced by appropriate parameters.\n",

"2. Define the function representing the hypothesis/model function following the above

step.\n",

"3. Define the cost function using the above model function.\n",

"4. Perform optimization with any techniques you know/learned online to obtain the

parameters in the model function.\n",

"5. Make a short comment on the results on this new strategy as compared the results in the

last all 3 tasks."

Question image 1