Interpret a negative dot product
Preserve the order of coordinates and the signs of values. · 180 words
Two nonzero vectors in an ordinary Euclidean space have a negative dot product when the angle between them exceeds ninety degrees. For example, let u = (2, 1) and v = (-3, -1). Their dot product is 2 times -3 + 1 times -1 = -6 - 1 = -7. The sign is negative because each coordinate of v has the opposite sign from the matching coordinate of u. In geometry, dot-product sign tells whether the angle between vectors is acute, right, or obtuse.
Now consider an AI review classifier. Each row of a feature matrix contains two inputs: praise and complaint levels, each from 0 to 1. Let a review be r = (0.2, 0.9), meaning little praise and much complaint. Use weight vector w = (4, -3), because praise raises the score while complaint lowers it. The raw score is r dot w = 0.2 times 4 + 0.9 times -3 = 0.8 - 2.7 = -1.9. The negative complaint contribution outweighs the positive praise contribution. A separate decision threshold would turn this score into a final label.
Check your recall
What is the dot product of (2, 1) and (-3, -1), and why is it negative?
Check your answer
The dot product is 2 times -3 + 1 times -1 = -7. It is negative because both matching coordinate pairs have opposite signs.
Sources and credits
Original KeyTouch lesson. Background reading · Zhang et al. · Linear Algebra.