Statistical analysis in robust design of superconducting magnets