LinReg function

Mathematical Calculations category - Statistics family Home 
What the name means"Linear Regression"
SyntaxLinReg ( LRSwitch, YValues, XValues )
DescriptionSolves the slope and intercept of a Linear Regression problem.
Auto Array FunctionThis function can be used as an array function as well as a normal function, by pluralising the first variable (in this case LRSwitch) to give an answer array. See Array Functions.
VariableType or ValueDescription
Inputs: (3)
1 LRSwitch Integer Linear Regression output switch
2 YValues Range of Floats (numbers) Range of Y Values
3 XValues Range of Floats (numbers) Range of X Values
Output:
Return Value Result Float The result of the function, expressed as a number.
Defaults and Values

The variable(s) of this function have certain defaults and/or switch values associated with them. Click here to see more.

Range Handling and Constraints

This function has range inputs that are subject to range handling procedures to help reduce input errors and increase flexibility and speed. Click here to see more.

Key Points
X-axis values= Values1
Y-axis values=Values2
Examples
  • Preview of the LinReg example.
  • The above spreadsheet can be accessed from the Quick Reference (on the Business Functions menu), on the Examples menu, or in the Business Functions\Component Examples directory