Solution (source code)

= Solution

Let $Y_i$ be the indicator that man $i$ develops heart disease and let $\pi_i=\mathbb P(Y_i=1)$. The fitted <logistic regression> assumes independent <Bernoulli distribution>[Bernoulli responses] with
$$
\boxed{Y_i\sim\operatorname{Bernoulli}(\pi_i),
\qquad
\operatorname{logit}(\pi_i)
=-4.50161+0.02521\,\mathrm{height}_i
+0.02313\,\mathrm{cigs}_i.}
$$