Linear regression using Gradient Descent

This a basic implementation of linear regression using gradient descent algorithm.
410 Downloads
Updated 11 Dec 2015

View License

The code uses a dataset from a community college and has a lot of noise in it. Because of noise in the data set, the code is a good example that some times linear regression isn't quite useful but is a baseline classification model. I made sure that it doesn't overfit nor underfit data for the dataset I used. According to the dataset being used the theta parameters need to be increased or decreased and also the polynomial nature of the parameters will have to adjusted. The idea of this program is that it demonstrates Gradient Descent pretty well and does a fair on classification.

Cite As

Charan Puladas (2026). Linear regression using Gradient Descent (https://www.mathworks.com/matlabcentral/fileexchange/53641-linear-regression-using-gradient-descent), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

Updates are in the description.