How to find the weights for weighted least squares regression?
When we are doing weighted least squares how do we find the weights? Where ever I see tutorials are just using $w_i = \frac{1}{(sigma)i^2}$ and doing it with basic data. But I want to know how to find the weights for real data. Is it always the inverse of the square of variance?
Topic linear-regression regression machine-learning
Category Data Science