CalcWorldHub
Free online calculator · no signup

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.

Worked example
Relevant result
∑
Clear result · useful details
Default calculator result0.6667

Related calculators

Use these tools when your question extends to a neighboring part of the same calculation.

Browse statistics tools →

Regression slope from covariance calculator — Sample covariance of x and y, Sample variance of x and calculation method
Regression slope from covariance calculator: inputs and calculation method.

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.

  1. 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.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

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

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.