You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiangrui Meng (JIRA)" <ji...@apache.org> on 2015/04/29 20:45:06 UTC

[jira] [Updated] (SPARK-7240) Covariance for DataFrames

     [ https://issues.apache.org/jira/browse/SPARK-7240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xiangrui Meng updated SPARK-7240:
---------------------------------
    Description: 
This JIRA is for computing stable covariance between two columns. The method `cov` should live under `df.stat` (similar to `na`).

{code}
df.stat.cov(col1, col2): Double
{code}

Stable algorithm: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance

UDAF support will be added later. Then users can do

{code}
df.groupBy("gender").agg(cov("age", "salary").as("age_salary"))
{code}

  was:
This JIRA is for computing stable covariance between two columns. The method `cov` should live under `df.stat` (similar to `na`).

{code}
df.stat.cov(col1, col2): Double
{code}

Stable algorithm: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance


> Covariance for DataFrames
> -------------------------
>
>                 Key: SPARK-7240
>                 URL: https://issues.apache.org/jira/browse/SPARK-7240
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Xiangrui Meng
>            Assignee: Burak Yavuz
>
> This JIRA is for computing stable covariance between two columns. The method `cov` should live under `df.stat` (similar to `na`).
> {code}
> df.stat.cov(col1, col2): Double
> {code}
> Stable algorithm: http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance#Covariance
> UDAF support will be added later. Then users can do
> {code}
> df.groupBy("gender").agg(cov("age", "salary").as("age_salary"))
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org