Supervised Learning
- Regression: when the variable to predict is numerical
- using age to predict income
- Classification: when the variable to predict is categorical
- using age to predicate a category
- Algorithms:
- Linear Regression
- Logistic Regression
- Decision Trees
- Random Forest
- Gradient Boosting
- Artificial neural networks
Unsupervised Learning
- Used to identify structure/pattern in data
- Algorithms:
Basic Steps for Machine Learning
- Collect and prepare data
- Choose a training model or algorithm
- Evaluate a model
- Hyperparameter tune
- Make predictions
Linear Regression
Goal: Find the best Fit Line equation that can predict the values based on the independent variables
- Simple Linear Regression (one independent feature)
- One independent variable and dependent variable
- $y = β_0 +β_1X$
- y = dependent variable
- X = independent variable
- β_0 = intercept
- β_1 = slope
- Multiple Linear Regression (more than one feature)
- 1+ independent variable and 1 dependent variable
- $y = β_0 +β_1X +β_2X+...+β_nX$
- y = dependent variable
- X…X_p = independent variable
- β_0 = intercept
- β_1… β_n = slope
- Univariate Linear Regression (one dependent variable)