Hypothesis Testing with Simulations
A group of residents of a county is considering submitting a question on certain matter for a local referendum in the next election cycle. Submitting a question for a referendum requires a fair amount of work, as well as large financial commitment, so before they do all that, they want to find out whether there is sufficient support for the matter in the county.
They select a simple random sample of 16 eligible voters in the county and ask them if they would support the measure.
Out of the 16 voters, 11 responded that they would support the matter, while the remaining 5 would not.
Should the group go ahead with the submission?
In the sex discrimination study, randomness was created by the random assignment of the supervisors into two groups. It was done in order to eliminate confounding.
The question the researchers were asking was whether there is a causal association between the sex variable and the decision variable.
In the referendum study, the randomness was created by selecting a simple random sample of voters, in order to have a representative sample.
The question the group was asking was whether the result they saw in the sample could be generalized to the whole population.
In each of the studies, we had two possible explanations of the study result.
Each study came up with a number that suggested an effect:
The question to ask:
How likely would it be to observe numbers like that, if it was a result of chance?
We repeatedly simulate the process, assuming there was no actual effect, and see how often we get a result like the one we observed.
We made an assumption that there is no effect:
We created a model of that situation.
Since it is a model of no effect, we call it a null model.
The model must be described well enough so we can simulate it.
We repeatedly simulate the study under the condition of the model, and see how often do we get a result like the one observed in the actual study, or even more extreme.
When we repeatedly simulate the study under the condition of the model,
The models we used:
The promotion rate does not depend on the sex of the applicant.
\(p_{\text{males}} - p_{\text{females}} = 0\).
Exactly half of the votes support the measure, or voters don’t care, and vote randomly.
\(p_{\text{support}} = \frac{1}{2}\).
The null model is always represented by an equality.
These equalities are called null hypotheses. We denote them \(H_0\).
In each study, there was always one alternative explanation of the observed result:
The female applicants are discriminated against by the supervisors.
\(p_{\text{males}} - p_{\text{females}} > 0\).
More than half of the votes support the measure.
\(p_{\text{support}} > \frac{1}{2}\).
These are called alternative hypotheses, and are always sharp equalities.
We denote them \(H_A\) or \(H_1\).