MACHINE LEARNING

Machine learning is a field of artificial intelligence focused on developing algorithms that allow systems to learn from data and improve performance over time without explicit programming

Introduction

Regression

Regression vs correlation

Correlation and regression both describe a relationship between two variables, but they answer different questions and behave very differently.

Simple linear regression

Simple linear regression fits a line to two continuous variables using least squares, quantifies the relationship with R², and tests whether the slope is significantly different from zero.

R-squared and adjusted R-squared

R-squared measures the share of variance a regression model explains. Adjusted R-squared corrects that number for how many predictors it took to get there.

Multiple linear regression

Multiple linear regression models a response variable as a linear combination of several predictors, estimated by OLS. Learn about adjusted R², multicollinearity, VIF and the F-test.

Polynomial regression

Polynomial regression fits a curved relationship by adding powers of x as extra predictors. It stays a linear model, but a high degree overfits and extrapolates badly.

Linear regression diagnostics

Regression diagnostics check whether the LINE assumptions hold, identify outliers and influential observations, and detect multicollinearity before trusting model results.

Nonlinear regression

Nonlinear regression fits models where parameters appear nonlinearly, requiring iterative algorithms. Learn the key models, fitting methods, and how to choose initial values.

Logistic regression

Logistic regression models the probability of a binary outcome using the sigmoid function, estimated by maximum likelihood. Learn odds ratios, model evaluation and multiclass extensions.

Splines

Splines fit smooth nonlinear curves by joining piecewise polynomials at knots. Learn regression splines, natural cubic splines, smoothing splines and how to select the smoothing parameter.

Generalized additive model (GAM)

GAMs replace linear predictors with smooth functions, combining the flexibility of nonparametric regression with the interpretability of additive models.

Analysis of covariance (ANCOVA)

ANCOVA adjusts group mean comparisons for a continuous covariate, increasing statistical power and removing confounding. Learn the key assumption of homogeneous slopes and how to compute adjusted means.

Multicollinearity and VIF

Multicollinearity happens when predictors in a regression are highly correlated with each other. The VIF quantifies how much it inflates each coefficient's standard error.

Quantile regression

Quantile regression models how a percentile of the outcome, not just its mean, changes with a predictor, revealing patterns ordinary least squares hides.

Regularization

Classification

Tree-based methods

Clustering

Dimensionality reduction

Model evaluation