Statistics for Phase-resolved optical and X-ray spectroscopy of low-mass X-ray binary X1822–371