WOLFRAM NOTEBOOK

WOLFRAM|DEMONSTRATIONS PROJECT

Correlation and Regression Explorer

LS line
L1 line
RLINE
The scatter plot shown is based on an initial data configuration that was called Andrew's example in a lecture by J. W. Tukey that the author attended. Three types of regression lines are available: least squares (LS), least absolute deviation (L1), and a resistant line regression. See the Details section for more information about the regression lines. In Andrew's example, LS, L1, and RLINE all produce very different fits.
As you drag, create, or delete points, the correlation and regression line are updated.
Try moving the points to create a set that looks similar to what might be obtained from a bivariate normal with correlation
ρ=0.8
. Then see if you can drag one point away from the others so it is an outlier without changing the resistant regression line very much. Notice, however, that the correlation does change. Now drag the point so the resistant regression line also changes.
Can you create data in which there is a strong association between
X
and
Y
but
r=0
?
Wolfram Cloud

You are using a browser not supported by the Wolfram Cloud

Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.


I understand and wish to continue anyway »

You are using a browser not supported by the Wolfram Cloud. Supported browsers include recent versions of Chrome, Edge, Firefox and Safari.