Click or drag to resize
Accord.NET (logo)

GeneralizedLinearRegressionGetPredictionInterval Method

Gets the prediction interval for an input point.

Namespace:  Accord.Statistics.Models.Regression
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
public DoubleRange GetPredictionInterval(
	double[] input,
	int numberOfSamples,
	double[][] informationMatrix,
	double percent = 0.95
)
Request Example View Source

Parameters

input
Type: SystemDouble
The input vector.
numberOfSamples
Type: SystemInt32
The number of training samples used to fit the model.
informationMatrix
Type: SystemDouble
The information matrix obtained when training the model (see GetInformationMatrix).
percent (Optional)
Type: SystemDouble
The prediction interval confidence (default is 95%).

Return Value

Type: DoubleRange
See Also