StudentTDistribution.GetConfidenceInterval Method

Returns a confidence interval at the specified level.

Definition

Namespace: Extreme.Statistics.Distributions
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Interval GetConfidenceInterval(
	double mean,
	double varianceOfMean,
	double confidenceLevel,
	double degreesOfFreedom
)

Parameters

mean  Double
The mean value of the parameter.
varianceOfMean  Double
The variance of the mean value of the parameter.
confidenceLevel  Double
A number between 0 and 1 indicating the confidence level. A value of 0.95 corresponds to a confidence level of 95%.
degreesOfFreedom  Double
The degrees of freedom of the distribution.

Return Value

Interval
An Interval.

Exceptions

ArgumentOutOfRangeExceptionvarianceOfMean is less than or equal to zero.

-or-

confidenceLevel is less than zero or greater than 1.

See Also