Why vectors? Same reasons we care about arrays and structs in programming. Many objects we care about consist of multiple pieces of information. With vectors, we are packaging together multiple pieces of numeric information.
Example1: Midn X has an 88% hw ave, a 72.5% quiz ave and an 81% exam ave. So we might represent this as the vector $[88\ 72.5\ 81]$. Note how the different components mean different things. If Midn Y has grade vector $[92.5\ 87.25\ 78.75]$, what is their exam ave? It's 78.75 since that's the 3rd component. For these examples: dimension = 3, ring = reals (or rationals).
Example2: Bytes can be represented by vectors. E.g. 0011 0101 would be $[0\ 0\ 1\ 1\ 0\ 1\ 0\ 1]$. For this examples: dimension = 8, ring = $\mathbb{Z}_2$.
Example3: Points in the Cartesian Plane: $[x\ y]$.
In this example dimension = 2, ring = reals ($\mathbb{R}$).
Important: any vector can be viewed as representing a point. For example,
the grade vector from Example 1 can be viewed as a point in 3-space.
Just like $\mathbb{Z}$ is the set of all integers, or $\mathbb{R}$ is the set of all real numbers, it is useful to define the set of all vectors over a given ring of a given dimension. So we make the following definition:
Note that the requirement that all non-zero elements in the ring $R$ have multiplicative inverses is standard in mathematics. It doesn't mean that collections of vectors over rings that don't have this property, like the integers, don't make sense. We just don't call them vector spaces. Looking back at Example 2 from the above, is the set of all vectors of dimension $n$ over $\mathbb{Z}_2$ a vector space?
Question: Does subtraction exist for vectors? No! Yes! Sort of?!?!? $\boldsymbol{u} - \boldsymbol{y}$ is syntactic sugar for $\boldsymbol{u} + -1\cdot \boldsymbol{v}$
Question: Do the elements of a vector space form a ring with vector addition as "ring addition", scalar product with -1 as "ring additive inverse", and dot product as "ring multiplication"? No! Why? Because the dot product of two vectors is not a vector! In a ring, the product of two ring elements needs to produce a ring element. So vector spaces really are something new, and they are something we need to investigate!
grade total $t = \boldsymbol{w}\cdot \boldsymbol{g}$.
If I wanted to use percentages to express the weight vector $\boldsymbol{w}$, we would have $\boldsymbol{w}= [25\ 15\ 60]$ and the grade total would be expressed asgrade total $t = .01 \cdot \boldsymbol{w}\cdot \boldsymbol{g}$.
Some professors like to curve (not me, though!). So maybe they want to curve the homework average by adding $c_1$, the quiz average by $c_2$, and the exam average by $c_3$. We would pack these into vector $\boldsymbol{c}$ and arrive at:grade total $t = .01 \cdot \boldsymbol{w}\cdot (\boldsymbol{g} + \boldsymbol{c})$ .
So we see ourselves starting to do something arithmeticiesque with these vector operations!!