Tests around Bernoulli Population¶
Tests around Bernoulli Population¶
Suppose we have a set of \(n\) samples and we want to test how many of them satisfy a property (or equivalently, success). Let \(p\) be the fraction of population satisfying he property and we want to check if this equals \(p_{0}\)
i.e., we reject this batch if the size of sample not satisfying the property (defective) is more than some predefined quantity/significance \(p_{0}\).
We reject when the defectives in the sample (\(X\)) are more than a threshold \(k\)
which is an increasing function in \(p\). Hence, when \(H_{0}\) is true,
and we reject when \(X \geq k^{\*}\) depending on the significance level \(\alpha\)
because there can be multiple \(k\) which satisfy the above equation, and we want to reject \(H_{0}\) as soon as the number of defectives in sample \(X\) is more than the minimum \(k\).
The test can also be done using p-value
where \(x\) is the count of defects in the sample. We reject \(H_{0}\) at any \(\alpha >\) p-value since in that situation the number of defects required will be much less than \(x\).
For large \(n\), \(X\) will behave like a normal distribution and when \(H_{0}\) is true,
and criteria discussed in section hold.