IMS, Ch. 4–5
Smith College
Feb 4, 2026
For each of the following pairs of variables, a statistically significant positive relationship has been observed. Identify a potential lurking variable (omitted confounder) that might cause the spurious correlation.
Summarize the shape of the distribution of one variable
Summarize the shape of the distribution of one variable
Summarize the shape of the distribution of one variable
height variable in the starwars data frame.mean()median()sd()var()range()IQR()group_by()# A tibble: 3 × 4
species number_of_penguins mean_mass sd_mass
<fct> <int> <dbl> <dbl>
1 Adelie 152 3701. 459.
2 Chinstrap 68 3733. 384.
3 Gentoo 124 5076. 504.
height variable in the starwars data frame by computing:
Thought Experiment
Consider the following two variables:
height of all professional basketball playersincome of all working adults in the United StatesSuppose that the government issued a tax rebate in the amount of $2000 to each American taxpayer.
income change?