Question: # 2 ) In scientific and big - data applications, it's common to group a long list of data into a 'vector', such as the

#2) In scientific and big-data applications, it's common to group a long list
of data into a 'vector', such as the following':
user1=(0.1,0.2,0.3,0.25,0.59,0.7,0.99,0.85,0.01,0.2)
user2=(0.03,0.4,0.31,0.22,0.88,0.11,0.5,0.87,0.12,0.4)
Often, we'd like to compare how similar two of these datasets are (for
instance, serving advertisements to two 'similar' users; or searching a
genome for two 'similar' sequences; etc).
We define cosine distance between two vectors a and b as follows:
distance(a,b)=1-a*b||a||||b||, where * is the dot product
Compute the cosine distance between user 1 and user2, above.
This problem probably requires a calculator, and for this problem you may
(probably should) give decimal answers; also, show the intermediate
values of a*b,||a||,||b||, but you don't need to manually show the whole
summation. (Make sure you input things correctly, though.)
 #2) In scientific and big-data applications, it's common to group a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!