Basic symbols and terminology
In the following section, we will review the mathematical concepts of vectors, matrices, arithmetic symbols, and linear algebra, as well as some more subtle notations used by data scientists.
Vectors and matrices
A vector is defined as an object with both magnitude and direction. This definition, however, is a bit complicated. For our purpose, a vector is simply a one-dimensional array representing a series of numbers. Put another way, a vector is a list of numbers.
It is generally represented using an arrow or bold font, as shown here:
Vectors are broken into components, which are individual members of the vector. We use index notations to denote the element that we are referring to, as illustrated here:
Note
In math, we generally refer to the first element as index 1, as opposed to computer science, where we generally refer to the first element as index 0. It is important to remember which index system you are using.
In Python...