Two-sample: Correlation
Upload a CSV file and choose two numeric columns to see their scatter plot, least-squares line, regression tests, correlation and summary statistics. Your file is read in your own browser and is never uploaded anywhere.
Notes
The dashed line is the least-squares line \hat y = b_0 + b_1 x. The Band buttons add a 95% band around it:
- Confidence (gray) is for the average value of Y at each x. It is narrowest near \bar x and shrinks as the sample grows.
- Prediction (gold) is for one new observation at x. It is much wider, and it doesn’t shrink to zero no matter how much data you have.
The line under the plot counts how many data points fall inside the band.
With the volleyball data, compare Hitting.Pct. and ServeScore as predictors of Win.Pct. Both slopes are “significant,” but how do the values of r and R^2 compare? What does that say about how much of the variation in winning each one explains?
Switch between the confidence and prediction bands. About what fraction of the points would you expect inside each one? Why do so few points fall inside the confidence band, even though it is a “95%” band?