Predicting House Prices with Linear Regression

To predict the price of a house, we can use linear regression to learn the relationship between house size and price. Then, to predict the price of a new house, we can simply plug in the size of the house into the trained model.


You are given a dataset of house prices in a US city. The task is to predict the price of a house given its size (in square feet).


by AskAI
The optimal solution for this problem is to use a linear regression model. This is because the relationship between the size of a house and its price is likely to be linear.

A.I. Evaluation of the Solution

The candidate's solution is correct and demonstrates a good understanding of the problem. The linear regression model is a good choice for this problem.

Evaluated at: 2022-10-22 20:00:54