# In linear regression, the least squares method is used to

**In linear regression, the least squares method is used to**

- Determine the distance between two pairs of samples.
- Determine whether the target is categorical or numerical.
**Determine the regression line that best fits the samples.**- Determine how to partition the data into training and test sets.

**Get All Week Quiz Answer**: