Student TDistribution.Get Confidence Interval Method
Returns a confidence interval at the specified level.
Definition
Namespace: Numerics.NET.Statistics.Distributions
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
An Interval.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
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
IntervalAn Interval.
Exceptions
Argument | varianceOfMean is less than or equal to zero. -or- confidenceLevel is less than zero or greater than 1. |