Click or drag to resize

LogisticRegressionParameterCalcPredictedProbability(DoubleVector, DoubleVector, Boolean) Method

Returns the probability of a positve outcome predicted by the model for the given set of predictor values.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static double PredictedProbability(
	DoubleVector x,
	DoubleVector parameters,
	bool hasIntercept = true
)

Parameters

x  DoubleVector
A set of predictor values.
parameters  DoubleVector
The model parameters.
hasIntercept  Boolean  (Optional)
If true the model contains an intercept parameter (the default). In this case the length of the vector x must be one less than the length of the parameters vector. If false the length of x must be equal to the length of the parameters vector.

Return Value

Double
The probability of a positive outcome predicted by the model.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the length of the given vector is not equal to the number of parameters in the model.
See Also