Github user srowen commented on the pull request:

    https://github.com/apache/spark/pull/13403
  
    Yeah I find this surprising too. As far as I know, databases tend to treat 
stddev as the sample stddev -- except Hive for some reason, AFAIK. I've never 
quite understood the theoretical motivation for that. Maybe the idea is that 
the aggregate is typically over some projection, or subset, of all data. But to 
me, the default should logically be population stdev, since there's no inherent 
reason to believe the result set is not the entire population of interest.
    
    For RDDs, it seems even clearer that the behavior should be population 
stddev.
    For Datasets, maybe it's less surprising to do what databases usually do.
    
    It does bear documentation for sure, but maybe not changing the behavior.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to