Statistics for Engineering bacterial magnetic nanoparticles