3.11.18.1.15. statsmodels.stats.proportion.std_prop

statsmodels.stats.proportion.std_prop(prop, nobs)[source]

standard error for the estimate of a proportion

This is just np.sqrt(p * (1. - p) / nobs)

Parameters:

prop : array_like

proportion

nobs : int, array_like

number of observations

Returns:

std : array_like

standard error for a proportion of nobs independent observations