Avoiding herding behavior in stock investing