correlation-pearson | Pearson product-moment correlation coefficient
kandi X-RAY | correlation-pearson Summary
kandi X-RAY | correlation-pearson Summary
Pearson product-moment correlation coefficient
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Compute the difference between two arrays
- Return the average of x
correlation-pearson Key Features
correlation-pearson Examples and Code Snippets
Community Discussions
Trending Discussions on correlation-pearson
QUESTION
Related to this question, I am wondering what the robust
option in seaborn's regplot() actually does.
The description reads as follows:
If
True
, usestatsmodels
to estimate a robust regression. This will de-weight outliers. Note that this is substantially more computationally intensive than standard linear regression, so you may wish to decrease the number of bootstrap resamples (n_boot
) or setci
toNone
.
Does that mean that it is more similar to how Kendall or Spearman correlations work, as they are known to be robust against outliers? Or doesn't it have anything to do with each other? In other words, when calculating Kendall for some data, and drawing a scatterplot with regplot()
, does it make sense to use robust=True
?
ANSWER
Answered 2018-May-16 at 12:27Kendall and Spearman correlations are measures of how well correlated two variables are, i.e. how closely related two variables are. The result is a correlation coefficient, which is a statistic that tells you how correlated things are (1
is a perfect relationship, 0
is a perfect absence of a relationship), and in a crude sense, the directionality of that correlation (-1
represents a negative slope). It is also important to note that both Spearman and Kendall correlation coefficients are sensitive to outliers, with the Spearman method being more sensitive.
Robust Linear Regression, on the other hand, is a special case of linear regression, which is a means of finding the relationship between 2 or more variables. You can think of it as a method of finding the "line of best fit". The result of linear regression is the regression coefficients, which is a measure of how (direction and slope) your response changes with your variables.
"Classical" vs. Robust linear regressionOften, linear regression uses Ordinary Least Squares, or OLS to find the regression coefficients, with the goal to minimize the sum of squares of your residuals (the square root of the difference between your estimated line and your actual data). This is quite sensitive to outliers:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install correlation-pearson
You can use correlation-pearson like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page