# next: calculate your p value get_p_value(null_dist, obs_stat = test_stat, direction ="two-sided")
# A tibble: 1 × 1
p_value
<dbl>
1 0.814
# finally: visualize where you sample is with respect to your null distributionvisualize(null_dist) +shade_p_value(obs_stat = test_stat, direction ="two-sided")
d: Interpret your results
With a threshold value of p = .05, do you reject or fail to reject your null hypothesis? What can you conclude about your research question?
I fail to reject the null hypothesis. My p value is above the 0.05 threshold. I can conclude that there is not evidence to support the claim that age is related to hours worked. People work about the same number of hours per week as they get older. Notably, this could be because of the limited age range of the sample. We know, for instance, that children, teenagers, and retired people do not work the same number of hours as non-retired adults. It is likely that these groups were underrepresented in the sample, and so our results are only generalizable to a narrower age band. We would have to look at the distribution of age in these data to know for sure.