# Quantum and Survey Reporter t-Test of a Proportion

Where ${\displaystyle g}$ is the observed proportion and ${\displaystyle e}$ is the expected proportion and ${\displaystyle n}$ is the effective sample size, the test statistic is:
${\displaystyle t={\frac {g-e}{\sqrt {g(1-g)/(nd_{eff})}}}}$
where ${\displaystyle p\approx 2\Pr(t_{n-1}\geq |t|)}$ if ${\displaystyle g\neq e}$ and NaN otherwise, and ${\displaystyle d_{eff}}$ is Extra deff.