Day 13
Dr. Elijah Meyer
Duke University
STA 199 - Summer 2023
June 14th
– Proposal feedback has been given. See issues.
– Exam 2 released at 5 (post in Slack if you have any questions)
— Start early. This is slightly longer than Exam 1
– Group Feedback Survey in Sakai Due by 5
– Lab Due by 5
– Keep up with Slack!
– \(\pi\)
– \(\bar{x}\)
– \(\mu\)
– \(\hat{p}\)
When would a p-value of 0 be reported? Let’s draw it.
In R
, you will get this error…
Please be cautious in reporting a p-value of 0. This result is an approximation based on the number of reps
chosen in the generate()
Here’s why
– \(\alpha\) > p-value (Reject Ho, Conclude Ha)
– \(\alpha\) < p-value (Fail to reject Ho, Weak evidence for Ha)
– Demo after airbnb example
– Set up your null and alternative
– Collect data
– Conduct a hypothesis test using simulation methods
– Talk about the results
– When the sample we take is representative
We have a random sample
Sample size is not very small
Here we consider an experiment with patients who underwent CPR for a heart attack and were subsequently admitted to a hospital. Each patient was randomly assigned to either receive a blood thinner (treatment group) or not receive a blood thinner (control group). The outcome variable of interest was whether the patient survived for at least 24 hours. We are interested in if the proportion of patients who died were different between those who were given blood thinners or not. Note: We will considered “died” as a “success”
– Null
– Alternative
Let’s demonstrate!
– Confidence Intervals are a statistical method uses to estimate population parameters
– Both are curious about population parameters
– Both use the idea of variability
– CIs do not assume a hypothesis
– The distribution used is not centered at the null value (more on this in a second)
– Before making confidence intervals, let’s define what it is and how it is different than probability.
Confidence - the percentage of all possible confidence intervals, created under the same conditions, expected to include the true population parameter
– https://www.rossmanchance.com/applets/2021/confsim/ConfSim.html
– For your confidence interval, the parameter is not random
Now, let’s make one and talk through it!