File Exchange

image thumbnail

Linear Regression Implementation using HoldOut CV

version (1.14 KB) by earth science learner
Univariate Linear regression


Updated 20 Feb 2018

View License

Linear Regression models a linear relation between independent variables and a target variable by fitting a straight line through the data points. The equation of which is given by Y=M*x+C where M is independent variable, C is intercept and Y is target value. The following code implements the regression problem through Direct equation and Gradient Descent Technique.

Cite As

earth science learner (2020). Linear Regression Implementation using HoldOut CV (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

kirti RAWAL

Hi, i have used your function. And it worked on eeg dataset. I am grateful to you for providing help. I would always appreciate your help. Once again Thank you.

MATLAB Release Compatibility
Created with R2015b
Compatible with any release
Platform Compatibility
Windows macOS Linux