How to check hypotheses with bootstrap and Apache Spark?