In: Advanced Math
Calculate the indicated similarity or distance measures of the vectors show below (you can do this by hand or by writing code, but please show the computation either way):
x = (1,1,1,1) and y = (3,3,3,3) cosine, correlation, Euclidean
x = (0,1,0,1,0,1) and y = (1,0,1,0,1,0) cosine, correlation, Euclidean, Jaccard
x = (1,1,0,1,0,1) and y = (1,1,1,0,0,1) cosine, correlation, Lmax, Jaccard