pyspark.RDD.sampleVariance# RDD.sampleVariance()[source]# Compute the sample variance of this RDD’s elements (which corrects for bias in estimating the variance by dividing by N-1 instead of N). New in version 0.9.1. Returns floatthe sample variance of all elements See also RDD.stats() RDD.variance() RDD.stdev() RDD.sampleStdev() Examples >>> sc.parallelize([1, 2, 3]).sampleVariance() 1.0