Standard error of a proportion
The standard error of a sample proportion is the square root of p-hat times one minus p-hat, all divided by n.
This is the standard deviation of the sampling distribution of (p-hat, the sample proportion), so it tells you how far a sample proportion typically lands from the true proportion. For a confidence interval the formula is ; a significance test puts the null value where p-hat sits, because the test assumes the null hypothesis is true. For example, with p-hat = 0.40 and n = 400, the standard error is . The standard error is largest when the proportion is near 0.5 and shrinks as it moves toward 0 or 1.
More confidence intervals terms, or browse the full statistics glossary.