Feature vector: representation of data into numerical format that can be processed by ML algorithms
Notation used below:

The feature vector x has nₓ components: x ∈ ℝⁿˣ.
Logistic regression


Broadcasting
Broadcasting is a technique that allows NumPy to perform element-wise operations on arrays of different shapes by automatically expanding their dimensions to match.
np.dot(a, b) performs a matrix multiplication on a and 𝑏, whereas 𝑎∗𝑏 performs an element-wise multiplication.

Matrix multiplication

Element-wise multiplication
