Regression slope from covariance calculator
Estimate the ordinary least-squares slope as the sample covariance of x and y divided by the sample variance of x.
Related calculators
Use these tools when your question extends to a neighboring part of the same calculation.
How to use this calculator
Estimate the ordinary least-squares slope as the sample covariance of x and y divided by the sample variance of x.
- Enter Sample covariance of x and y, Sample variance of x. Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Regression slope from covariance calculator
Estimate the ordinary least-squares slope as the sample covariance of x and y divided by the sample variance of x.
What it measures
Estimate the ordinary least-squares slope as the sample covariance of x and y divided by the sample variance of x.
Inputs and units
- Sample covariance of x and y: Use the same variance convention and squared measurement units for all paired summary statistics.
- Sample variance of x: Use the same variance convention and squared measurement units for all paired summary statistics.
Formula and method
Cov(x,y)/Var(x)
Worked example
Sample covariance 6 and x variance 9 give slope 6/9=0.6667 y-units per x-unit.
Interpreting the result
The sign shows whether y tends to rise or fall with x. Covariance and variance must use the same sample divisor; changing both consistently leaves their ratio unchanged.
Assumptions and limits
Variance of x must be positive. The statistic summarizes a linear association and does not establish causation; outliers can strongly affect it.
Sources and method
- Explains uncertainty for fitted mean predictions and the role of the t coverage factor. NIST: Regression confidence limits
Frequently asked questions
Why divide by variance of x?
The least-squares slope is Cov(x,y)/Var(x), which scales co-movement by x spread.
What are the slope units?
Units of y divided by units of x.
How do I use the Regression slope from covariance calculator?
Enter Sample covariance of x and y, Sample variance of x. Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of Regression slope from covariance?
Sample covariance 6 and x variance 9 give slope 6/9=0.6667 y-units per x-unit.
What does the Regression slope from covariance calculator calculate?
Estimate the ordinary least-squares slope as the sample covariance of x and y divided by the sample variance of x.
See the calculation methodology.