Question

Linear Regression Inputs: The training data contain some example measurements of the profit gained by opening...

Linear Regression

Inputs: The training data contain some example measurements of the profit gained by opening an outlet in the cities with the population ranging between 30,000 and 100,000. The y-values are the profit measured in USD, and the x-values are the populations of the city. Each city population and profit tuple constitutes one training example in training dataset.

Problem: Use training dataset to develop a linear regression model and solve it by using gradient descent algorithm. Find the values of Theta0, Theta1 , and cost function J in the first two iterations.Show all calculation steps

Initialization: Theta0=0, Theta1=0. Alpha=0.01

City Population (10^4)x Profit (10^4) y
6.4862 6.5987
5.5277 9.1302
8.5186 13.662
7.0032 11.854

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT