title: Jaccard Distance
body: <p>I have this problem in calculating Jaccard Distance for Sets (Bit-Vectors):</p>
  
  <p>p1 = 10111; </p>
  
  <p>p2 = 10011.</p>
  
  <p>Size of intersection = 3; (How could we find it out?)</p>
  
  <p>Size of union = 4,  (How could we find it out?)</p>
  
  <p>Jaccard similarity = (intersection/union) = 3/4.</p>
  
  <p>Jaccard Distance = 1 – (Jaccard similarity) = (1-3/4) = 1/4.</p>
  
  <p>But I don't understand how could we find out the <strong>"intersection"</strong> and <strong>"union"</strong> of the two vectors.</p>
  
  <p>Please help me.</p>
  
  <p>Thanks alot.</p>