Professional Documents
Culture Documents
Unit-1 Notes
Unit-1 Notes
Unit-1 Notes
Data Science is about finding patterns in data, through analysis, and make
future predictions.
Linear Algebra
inear Algebra is the branch of mathematics that concerns linear equations (and
linear maps) and their representations in vector spaces and through matrices.
The purpose of this chapter is to highlight the parts of linear algebra that is
used in data science projects like machine learning and deep learning.
Scalar Vector(s)
1 1 1 2 3
Matrix Tensor
1 2 3 1 2 3 4 5 6
4 5 6 4 5 6 1 2 3
With ML, most things are done with vectors and matrices.
Scalars
In linear algebra, a scalar is a single number.
const myScalar = 1;
let x = 1;
var y = 1;
Vectors
In linear algebra, a vector is an array of numbers.
const myArray = [50,60,70,80,90,100,110,120,130,140,150];
myArray.length; // the length of myArray is 11
Try it Yourself »
Tensor Ranks
The number of directions a tensor can have in a N-dimensional space, is called
the Rank of the tensor.
It has 0 Axes
It has a Rank of 0
It is a 0-dimensional Tensor
It has 1 Axis
It has a Rank of 1
It is a 1-dimensional Tensor
It has 2 Axis
It has a Rank of 2
It is a 2-dimensional Tenso
LINEAR EQUATION/FUNCTION
A linear equation is an equation in which the highest power of the variable is always 1
Linear means straight
A linear function is a straight line
A linear graph represents a linear function
Linear Functions
A Function is special relationship where each input has an output.
y = x**2
y = Math.sqrt(x)
y = Math.sin(x)