Instead of constructing a confidence interval to learn about the parameter, we could assert the value of a parameter and see whether it is consistent with the data using a hypothesis test. Say you are interested in testing whether there is a clear majority opinion of support or opposition to the project.
What are the null and alternative hypotheses?
01:00
Response: support_before (factor)
# A tibble: 1 × 1
stat
<dbl>
1 0.339
Response: support_before (factor)
Null Hypothesis: point
# A tibble: 500 × 2
replicate stat
<int> <dbl>
1 1 0.493
2 2 0.482
3 3 0.499
4 4 0.512
5 5 0.499
6 6 0.515
7 7 0.489
8 8 0.525
9 9 0.505
10 10 0.487
# ℹ 490 more rows
What would a Type I error be in this context?
01:00
What would a Type II error be in this context?
