Quantcast

Least-squares Trend Inference

vCalc Reviewed
`y = "a" + "b" * x `
`(a)"y Intercept"`
`(b)"Slope"`
`(x)"Independent Variable"`
Min
Max
Points

The Least-squares Trend Inference calculator computes the value of the dependent variable (Y) based on the intercept (a), the slope (b) and a value of X.  This is the result of a least-squares trend linear equation, through a set of X and Y values.  This is also known as simple linear regression./attachments/a12ddc00-efb2-11e6-9770-bc764e2038f2/Linear Regression.png

INSTRUCTIONS: Enter the following:

  • (a)  Y axis Intercept
  • (b)  Slope of Line
  • (x)  Independent Variable

Domain  (Y): The calculator returns the value of Y.  

The Math / Science

The formula for the least-squared regression line is in the following form:

  y = a + bx

             where:

                          `b = (  (sum(XY) - (sumX * sumY)"/n")) / (sum(X^2) - (sumX)^2"/n") `
             and
                            ` a = MY - b*MX`           MY is mean of Y.  MX is mean of X.

To compute the least squares trend line for a set of values, CLICK HERE.

Plot Instructions

After you have entered the values in the calculator for a, b and x, the plot function will let you enter a range (min and max) for x and a number of steps.  When you enter the range for x and number of steps, it will generate a graph of the line graphing the values of y using your entered a and b, stepping through values of x between the range specified.


Statistics Calculators

References

  •  Dowdy, Shirley, and Stanley Wearden. Statistics for Research. N.p.: John Wiley & Sons, n.d. Print.(Chapter 9 Distributions of Paired Variables)