Machine learning can be connected to hardware sometime, it describes ability of machine to gather data and make patterns that are basicly knowledge. ML is associated to ability generally speaking. For now it is software problem but solving hardware evolution vector.
Statistics is study of patterns and not associated with any kind of pattern nature, it can be social nature, psycological, technical, mechanical, etc. SM are algorithms for finding and marking those patterns without goal for developing knowledge. It can be used for knowledge gathering, too.