Hitung varian elemen RDDS ini
# variance()
m = sc.parallelize([1, 2, 3]).variance()
# 0.666...
Ethercourt.ml
# variance()
m = sc.parallelize([1, 2, 3]).variance()
# 0.666...
sc.parallelize([1, 2, 3]).mean()
# 2.0