Visualization of Linear Models
C OR R E L ATION AN D R E G R E SSION IN R
Ben Baumer
Assistant Professor at Smith College
Vis u ali z ation of Linear Models C OR R E L ATION AN D R E G R - - PowerPoint PPT Presentation
Vis u ali z ation of Linear Models C OR R E L ATION AN D R E G R E SSION IN R Ben Ba u mer Assistant Professor at Smith College Poss u ms ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() CORRELATION AND REGRESSION IN R Thro
C OR R E L ATION AN D R E G R E SSION IN R
Ben Baumer
Assistant Professor at Smith College
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point()
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() + geom_abline(intercept = 0, slope = 2.5)
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() + geom_abline(intercept = 0, slope = 1.7)
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() + geom_abline(intercept = 40, slope = 1.3)
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() + geom_smooth(method = "lm")
CORRELATION AND REGRESSION IN R
ggplot(data = possum, aes(y = totalL, x = tailL)) + geom_point() + geom_smooth(method = "lm", se = FALSE)
C OR R E L ATION AN D R E G R E SSION IN R
C OR R E L ATION AN D R E G R E SSION IN R
Ben Baumer
Assistant Professor at Smith College
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
Easy, deterministic, unique solution Residuals sum to zero Line must pass through ( , ) Other criteria exist—just not in this course
x ¯ y ¯
CORRELATION AND REGRESSION IN R
Y-hat is expected value given corresponding X Beta-hats are estimates of true, unknown betas Residuals (e's) are estimates of true, unknown epsilons "Error" may be misleading term—beer: noise
C OR R E L ATION AN D R E G R E SSION IN R
C OR R E L ATION AN D R E G R E SSION IN R
Ben Baumer
Assistant Professor at Smith College
CORRELATION AND REGRESSION IN R
Galton's "regression to the mean" Thought experiment: consider the heights of the children of NBA players
CORRELATION AND REGRESSION IN R
CORRELATION AND REGRESSION IN R
"Regression": techniques for modeling a quantitative response Types of regression models: Least squares Weighted Generalized Nonparametric Ridge Bayesian . . .
C OR R E L ATION AN D R E G R E SSION IN R