This directory contains the implementation of linear regression using the closed-form solution.
This script performs the following tasks:
- Loads the California housing dataset.
- Extracts the first feature and the target variable.
- Plots the data points.
- Computes the linear regression coefficients using the closed-form solution.
- Plots the regression line.
- numpy
- matplotlib
- scikit-learn
You can install the required packages using the following command: