scipy.stats._result_classes.BinomTestResult

class scipy.stats._result_classes.BinomTestResult(k, n, alternative, pvalue, proportion_estimate)[source]

Result of scipy.stats.binomtest.

Attributes
kint

The number of successes (copied from binomtest input).

nint

The number of trials (copied from binomtest input).

alternativestr

Indicates the alternative hypothesis specified in the input to binomtest. It will be one of 'two-sided', 'greater', or 'less'.

pvaluefloat

The p-value of the hypothesis test.

proportion_estimatefloat

The estimate of the proportion of successes.

Methods

proportion_ci :

Compute the confidence interval for the estimate of the proportion.