Weighted regression using number of observations

Yes, that’s right. This collects the sufficient statistics (number of observations) and is more efficient than just iterating over all the observations. There’s a section on this in the efficiency chapter of the manual.

That’s when they’re part of the model and not part of the generative story. Here, they’re just part of an efficiency improvement for the implementation.

1 Like