- qspec. relevant_interval ( dist , *args , show=False , **kwargs )[source]
-
Estimate the interval in which most of the probability of a probability density function (pdf) lies.
- Parameters:
-
- distCallable
The pdf.
- argsscalar
Additional arguments for the pdf.
- showbool
Whether to show the pdf in the determined interval.
- kwargs
Additional keyword arguments for the pdf.
- Returns:
-
- (x_min, x_max)tuple[float, float]
The estimated interval.