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.510
2 2 0.499
3 3 0.511
4 4 0.492
5 5 0.497
6 6 0.510
7 7 0.522
8 8 0.490
9 9 0.511
10 10 0.507
# ℹ 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?
