{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _hypotests / TukeyHSDResult / confidence_interval

function

scipy.stats._hypotests:TukeyHSDResult.confidence_interval

source: /scipy/stats/_hypotests.py :1860

Signature

def   confidence_interval ( self confidence_level = 0.95 )

Summary

Compute the confidence interval for the specified confidence level.

Parameters

confidence_level : float, optional

Confidence level for the computed confidence interval of the estimated proportion. Default is .95.

Returns

ci : ``ConfidenceInterval`` object

The object has attributes low and high that hold the lower and upper bounds of the confidence intervals for each comparison. The high and low values are accessible for each comparison at index (i, j) between groups i and j.

Examples

from scipy.stats import tukey_hsd
group0 = [24.5, 23.5, 26.4, 27.1, 29.9]
group1 = [28.4, 34.2, 29.5, 32.2, 30.1]
group2 = [26.1, 28.3, 24.3, 26.2, 27.8]
result = tukey_hsd(group0, group1, group2)
ci = result.confidence_interval()
ci.low
ci.high

Aliases

  • scipy.stats._hypotests.TukeyHSDResult.confidence_interval