Lecture 23
Dr. Elijah Meyer + Konnie Huang
Duke University
STA 199 - Fall 2022
November 16th, 2022
– Clone exam2-review
- This is the part of ae-21 that we didn’t finish with end review questions
– Exam 2 on Thursday
Released at noon
No slack or TA office hours
Don’t cheat
Due Monday at 2
– All keys are posted (or will be posted before noon tomorrow)
– EC for Exam 1 is not in
– Lowest HW is dropped
– Lowest Lab is dropped
– Identify variables
Categorical vs Quantitative
Explanatory vs Response
– Simple Linear Regression: 1 Quantitative Response; 1 Categorical or Quantitative Explanatory Variable
– Mulitple Linear Regression: 1 Quantitative Response; 2 or more Categorical or Quantitative Explanatory Variables
– Logistic Regression: 1 Categorical Response (Binary); 1 or more Categorical or Quantitative Explanatory Variables
Reference Examples at bottom of help page, AEs, HWs, and Labs.
– Short response questions
– Application questions
– Extension questions
– Review
Simpson’s Paradox
P-value interpretation
– Compare two means, and do a bootstrap interval
– Prediction and bootstrap interval for the slope
Describe the relationships observed in the scatter plot. Comment on: Form; Strength; Direction.
What about now?
… a trend appears in groups of data but disappears or reverses when the groups are combined.
– What is it?
– How do we interpret it?
– Probability
– of observing what we did or something more extreme
– given \(H_O\) = T
Airbnb Example
– Response variable: price per guest
– Assume Ho: \(\mu\) = 60
– p-value ~ 0.14
The probability of observing a mean price per guest of 76.6 dollars, or something larger, assuming that the true mean price per guest of Ashville, NC Airbnbs in June 2020 was 60 dollars is equal to ~ 0.14.