Constructing the Regression Line for a Bivariate Dataset

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The plot shows a population of 1000 bivariate data points with the population regression line shown in blue. The sample of red points produces the regression line shown in red. For this sample of points, the slope of the sample line overestimates the slope of the population line .

Contributed by: Todd Will (January 2024)
Open content licensed under CC BY-NC-SA



One commonly used formula for the standard error is


Vary the values of , and to see that smaller values of and larger values of and reduce the standard error .

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.