Skip to main content
Tweeted twitter.com/StackStats/status/1124192062000324609
added 17 characters in body
Source Link
Nick Cox
  • 59.5k
  • 8
  • 136
  • 212

When performing weighted least squares $L = \frac{1}{2} \sum_i w_i r_i^2$, Aitken showed that one ought to weight each sample by the inverse of its variance $w_i=1/\sigma_i^2$. This leads to gradients of the form

$$\nabla_\beta L = \sum_i \frac{r_i}{\sigma_i^2}\nabla_\beta r_i $$

In GLMs, the log-likelihood is $\ell(\beta) = \sum_i \frac{\theta_i y_i - b(\theta_i)}{\phi_i} + c(y_i, \phi_i)\qquad$ (cf. TurnersTurner's notes)

for which the gradients are $\frac{\partial \ell}{\partial \beta} =\sum_i \frac{y_{i}-\mu_{i}}{\operatorname{V}[\mu_i]} \cdot \frac{x_{i}}{g^{\prime}\left(\mu_{i}\right)} $. 

This looks suspiciously similar to the WLS gradient. What isare the precise connections between the two? Superficially it seems like all a GLM is really doing is   

(1) transforming the prediction into a useful domain via the link function   

(2) weighingweighting the gradient updates 'optimally' under the assumption that $\sigma_i^2=V[\mu_i$]$\sigma_i^2=V[\mu_i]$.

When performing weighted least squares $L = \frac{1}{2} \sum_i w_i r_i^2$, Aitken showed that one ought to weight each sample by the inverse of its variance $w_i=1/\sigma_i^2$. This leads to gradients of the form

$$\nabla_\beta L = \sum_i \frac{r_i}{\sigma_i^2}\nabla_\beta r_i $$

In GLMs, the log-likelihood is $\ell(\beta) = \sum_i \frac{\theta_i y_i - b(\theta_i)}{\phi_i} + c(y_i, \phi_i)\qquad$ (cf. Turners notes)

for which the gradients are $\frac{\partial \ell}{\partial \beta} =\sum_i \frac{y_{i}-\mu_{i}}{\operatorname{V}[\mu_i]} \cdot \frac{x_{i}}{g^{\prime}\left(\mu_{i}\right)} $. This looks suspiciously similar to the WLS gradient. What is the precise connections between the two? Superficially it seems like all a GLM is really doing is  (1) transforming the prediction into a useful domain via the link function  (2) weighing the gradient updates 'optimally' under the assumption that $\sigma_i^2=V[\mu_i$]

When performing weighted least squares $L = \frac{1}{2} \sum_i w_i r_i^2$, Aitken showed that one ought to weight each sample by the inverse of its variance $w_i=1/\sigma_i^2$. This leads to gradients of the form

$$\nabla_\beta L = \sum_i \frac{r_i}{\sigma_i^2}\nabla_\beta r_i $$

In GLMs, the log-likelihood is $\ell(\beta) = \sum_i \frac{\theta_i y_i - b(\theta_i)}{\phi_i} + c(y_i, \phi_i)\qquad$ (cf. Turner's notes)

for which the gradients are $\frac{\partial \ell}{\partial \beta} =\sum_i \frac{y_{i}-\mu_{i}}{\operatorname{V}[\mu_i]} \cdot \frac{x_{i}}{g^{\prime}\left(\mu_{i}\right)} $. 

This looks suspiciously similar to the WLS gradient. What are the precise connections between the two? Superficially it seems like all a GLM is really doing is 

(1) transforming the prediction into a useful domain via the link function 

(2) weighting the gradient updates 'optimally' under the assumption that $\sigma_i^2=V[\mu_i]$.

edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
edited tags
Link
kjetil b halvorsen
  • 82.8k
  • 32
  • 201
  • 663
Source Link
Hyperplane
  • 348
  • 1
  • 10
Loading