Here, \(Y\) is log property damage and \(X\) is reported maximum hailstone diameter.
\(\beta_1\) is the expected change in log damage for a one-inch difference in diameter. It describes association, not causation. See your Linear Models course for the estimation and inferential details.
Interpreting the slope on two scales
Modeled scale: log10 dollars
For reports whose maximum hailstone diameter differs by one inch, we estimate expected log10(property damage) to be 0.748 higher (SE 0.040; 95% CI 0.670–0.827).
Original scale: dollars
Under the regression model, expected property damage is 5.60 times as large (approx. SE 0.52; 95% CI 4.68–6.71).
What the regression model assumes
For \(Y_i=\beta_0+\beta_1X_i+\epsilon_i\), we assume:
\(E(\epsilon_i\mid X_i)=0\): errors have conditional mean zero,
approximately normal residuals for the usual small-sample inference,
a constant error distribution for retransformation to expected dollars.
See your Linear Models course for formal diagnostics and the consequences of each assumption.
Residual vs fit plots
Code
tibble(fitted =fitted(hail_model), residual =resid(hail_model)) |>ggplot(aes(fitted, residual)) +geom_hline(yintercept =0, color ="gray60") +geom_point(alpha =0.2, color = deep_gold) +geom_smooth(method ="loess", se =FALSE, color = blue_gray) +labs(title ="Residual structure tests the adequacy of the line",x ="Fitted value",y ="Residual" )
A useful residual plot looks uneventful
Look for:
curvature, suggesting the mean function is wrong;
a funnel, suggesting nonconstant spread;
clusters, suggesting omitted groups;
isolated points with unusual residuals;
changing patterns across the fitted range.
Ask: Are the linear-model assumptions plausible? An uneventful plot supports plausibility; strong structure is evidence against the model.
Locally weighted smoothing with LOESS
geom_smooth(method = "lm") answers: what linear trend summarizes the data?
geom_smooth(method = "loess") answers: what flexible local pattern appears?
R’s loess() really does use the unusual tricubic distance weight. At each target value \(x_0\), the default fit uses the nearest 75% of observations and weights observation \(i\) by
A two-dimensional kernel density estimate places a smooth surface over the plane. A contour line connects locations with the same estimated density, much as a topographic line connects locations with the same elevation.
With one shared bandwidth \(h\), a simplified estimator is