Similar Items: Statistical theory and methods