Dot product in Machine Learning

The dot product formula
cos(α) = v w/(|v| |w|)
appears in many different context. For example, as correlation between data. See section 2.3.2.3 in a machine learning book: