Machine Learning A-Z: Part 3 – Classification (Logistic Regression)

Linear Regression

– Simple:
y = b0 + b1 * x1

– Multiple:
y = b0 + b1 * x1 + … + bn * xn

Logistic Regression

Sigmoid Function:
p = 1 / (1 + e-y)

ln * (p / (1 – p)) = b0 + b1 * x

y: Actual DV [dependent variable]
p^: Probability [p_hat]
y^: Predicted DV

Implementation

Python

R

Templates

Python

R

ページトップへ