I am a new to statistical and trying to figure out following code and relative doc OneSampleTTest::tTest(mu: Double, sample: RDD[Double], alpha:Double) @return p-value and find this may have some strange thing. I am not sure whether it is my care. But I can get if P value is less than the significance level of alpha, then reject the null hypothesis.. may be change it to @return whether or not reject null hypothesis I think yes ?