Exercise

Testing a claim

In the last exercise, you got a sense of what a single simulated p-hat might be if in fact the true proportion of believers was 0.75. That p-hat was likely different from the p-hat in gss2016, but was that a fluke or is there a systematic inconsistency between that claim and the data in the GSS?

In this exercise, you'll settle this question.

Instructions 1/3

undefined XP
    1
    2
    3

Extend your code for the last exercise to calculate() sample proportions of believers in 500 generated datasets. Save this collection of p-hats to null.