ML concepts (Regression, Classification, Clustering)
ML concepts (Regression, Classification, Clustering)
Part1
Regression
Regression is a supervised Learning. It is a statistical technique used in machine learning to predict continuous values. It helps understand relationships between dependent and independent variables.
Example:
Imagine you are a real estate agent and want to predict the price of a house based on its size. You collect data on previous sales, including house sizes (independent variable) and their prices (dependent variable). By applying regression, you can find a mathematical relationship between these two and use it to predict the price of a new house based on its size.
Types of Regression
Linear Regression
This is the simplest form of regression where we fit a straight line to the data. The mathematical equation is:
Y=mX+c
Where:
- → Target variable (dependent variable)
- → Feature variable (independent variable)
- → Slope (Coefficient)
- → Intercept
đ Example: Predicting house prices based on area.
Multiple Linear Regression
When there are multiple independent variables:
đ Example: Predicting house prices based on area, number of bedrooms, and rooms.
Polynomial Regression
If data is not linear, we use polynomial regression:
đ Example: Predicting temperature changes over time.
Ridge Regression
It adds L2 Regularization. It reduces overfitting by penalizing large coefficients.
Lasso Regression
It adds L1 Regularization. It selects only important features, setting others to zero.
Comments
Post a Comment