BivariateSampleLinearLogisticRegression Method

Computes the best-fit linear logistic regression from the data.

Definition

Namespace: Meta.Numerics.Statistics
Assembly: Meta.Numerics (in Meta.Numerics.dll) Version: 4.2.0+6d77d64445f7d5d91b12e331399c4362ecb25333
C#
public LinearLogisticRegressionResult LinearLogisticRegression()

Return Value

LinearLogisticRegressionResult
The fit result.

Remarks

Linear logistic regression is a way to fit binary outcome data to a linear model.

The method assumes that binary outcomes are encoded as 0 and 1. If any y-values other than 0 and 1 are encountered, it throws an InvalidOperationException.

The fit result is two-dimensional. The first parameter is a, the second b.

Exceptions

InsufficientDataExceptionThere are fewer than three data points.
InvalidOperationExceptionThere is a y-value other than 0 or 1.

See Also