{ } Raw JSON

bundles / scipy 1.17.1 / scipy / stats / _stats_py / TtestResult

class

scipy.stats._stats_py:TtestResult

source: /scipy/stats/_stats_py.py :5949

Signature

class   TtestResult ( statistic pvalue df alternative standard_error estimate statistic_np = None xp = None )

Members

Summary

Result of a t-test.

Extended Summary

See the documentation of the particular t-test function for more information about the definition of the statistic and meaning of the confidence interval.

Attributes

statistic : float or array

The t-statistic of the sample.

pvalue : float or array

The p-value associated with the given alternative.

df : float or array

The number of degrees of freedom used in calculation of the t-statistic; this is one less than the size of the sample (a.shape[axis]-1 if there are no masked elements or omitted NaNs).

Methods

confidence_interval

Computes a confidence interval around the population statistic for the given confidence level. The confidence interval is returned in a namedtuple with fields low and high.

Aliases

  • scipy.stats._stats_py.TtestResult