# LinearRegression..::..Regress Method (array<Double>[]()[][], array<Double>[]()[][], array<Double>[]()[][], Int32)

Performs a linear regression on the data in Y (independent), X (dependent) and W (weights).

**Namespace:**
Highpoint.Sage.Mathematics

**Assembly:**
Sage4 (in Sage4.dll)

## Syntax

#### Parameters

- y
- Type: array<Double>[]()[][]

The dependent values in the data series.

- x
- Type: array<Double>[]()[][]

The independent values in the data series.

- w
- Type: array<Double>[]()[][]

The weights assigned to the corresponding X,Y pairs.

- order
- Type: Int32

The order of solution desired (1=average, 2=line, 3=parabola, etc.)