https://spark-school.ru/blogs/hypothesis-testing/
Проверка статистических гипотез с Spark MLlib