MATHS FOR ML



Scalar

Scalar is a physical quantity that is completely described by its magnitude.

Examples: Volume, speed, density etc.


Vector

A vector is an object that has both a magnitude and a direction. Geometrically, we can picture a vector as a directed line segment, whose length is the magnitude of the vector and with an arrow indicating the direction.

A vector

Example: N-tuple x = [x1, x2,....xN]

In Machine learning we call ordered list of feature value attributes as vector.


Set

A set in mathematics is a unordered collection of well defined and distinct objects.

Operations on set


Some generl Notations


Vector Operations

For vectors A=[a1,a2,....an],B=[b1,b2,....bn] and scalar c.



Matrix Multiplication, Inverse and Transpose


Functions

A function f form a set X to Y is a mapping, such that each elemnt of X is mapped to a single element of Y.

Function

For a function y=f(x)


Derivative

The derivative of y with respect to x is defined as the change in y over the change in x. In mathematical terms:

Function derivative

Differentiation is a method of finding the derivative of a function.


Gradient

For a funcion f:Rn→Rn, it's gradient ∇f:Rn→Rn is defined at the point p = (x1,x2,....xn) in n-dimensional space as the vector-

Gradient

Example: Let f(x,y) = x2y. Then ∇f = (2xy,x2). So ∇f(3,2) = (12,9) or 12i + 9j.



Random Variable

A random variable is described informally as a variable whose values depend on outcomes of a random phenomenon. There are two types of random variables, discrete and continuous.