Correlation Quote by Anonymous
““For example, if we believed there was a linear relationship between the height values and the weight values of D, we might ask R to try to fit this model like so, using the lm() linear model function: model = lm(weight ~ height)””
About This Quote
Source Book: R for Data Science by Hadley Wickham and Garrett Grolemund, 2016
The quote illustrates fitting a simple linear regression to model weight as a function of height using R's lm() function.
In simple terms: Fit a line to predict weight from height.
Use linear regression for basic predictive modeling.
Themes
Mood
Type
When to use this quote
- research
- health studies
- education
- business analytics
Key Concepts
Questions to Reflect On
- When does a linear model fail?
- What alternatives exist for non‑linear patterns?
Linear models assume a straight‑line relationship, which may oversimplify complex data.