[1] 0.2221358
IMS1 Ch. 16
Math 215
Hypotheses:
Data:
consult datasetHypotheses:
Data:
payday datasetSampling distribution of \(\hat{p}\)
The sampling distribution of \(\hat{p}\) based on a sample of size \(n\) from a poplation with true proportion \(p\) will be approximately normal with mean \(p\) and standard error \[SE=\sqrt{\frac{p(1-p)}{n}}\]
if the following technical conditions are met:
Consultant study
Payday study
Normal model, \(N(0,1)\). P-value is area of shaded region.
Parametric bootstrap simulation is equivalent to the following physical simulation:
We can do the bootstrapping using the infer package
Approximate null distribution with observed proportion of surgeries with complications (0.048) inticated by dashed vertical line.
Consultant study
Payday study
# A tibble: 1 × 2
ci_lo ci_hi
<dbl> <dbl>
1 0 0.113