Before you readTwo patients are vectors of features. How could one number say how similar they are?
Watch: Dot products and duality · 3Blue1Brown · Essence of Linear Algebra, ch. 9
The dot product multiplies matching entries and adds:
Here is the -th entry of and is the angle between the vectors. The last form is the geometry: the dot product is positive when the angle is acute, zero when it is a right angle (the vectors are orthogonal), and negative when it is obtuse.
The norm (length) is and for non-zero vectors the angle comes from The zero vector has no direction, so its angle with anything is undefined.
For a non-zero the projection of onto is the point on the line through closest to
The leftover is orthogonal to Least squares is this idea in many dimensions: the best fit is the projection of the data onto what the model can reach.
u·v = 7‖u‖ = 4.12‖v‖ = 3.16angle = 57.53°projection = (1.65, 0.41)
Recall
Give the geometric formula for Recall
What does mean?Recall
What is the projection of onto Exercise
Find the angle between and in degrees to one decimal place.Exercise
Project onto Give the three entries.