On the role of entanglement and statistics in learning