STATISTICAL METHODS · BEGINNER GUIDE
Weighted vs Ordinary Least Squares Regression
Understand when weighted least squares can help when observations have different known measurement precision.
Quick answer: Ordinary least squares gives each observation equal weight in minimizing squared residuals. Weighted least squares gives observations different weights, often inversely related to their error variance when that structure is known or well justified.
What this method answers
If group means are based on different numbers of measurements, their precision may differ. A higher weight can give a more precise observation more influence, but incorrect weights can make estimates worse.
Use WLS when the variance structure is justified by design or reliable measurement information. Do not choose weights just to make a residual plot look better without explaining their source.
Before running a calculation, write down the population and the exact quantity you want to estimate. A method name alone does not define the question, the comparison or the assumptions.
Steps to follow
- Identify whether variances differ and why.
- Derive weights from known precision or a defensible variance model.
- Fit WLS and state the weight convention.
- Compare with OLS and check uncertainty accounting for estimated weights.
Keep a record of exclusions, recoding decisions and software settings. That makes the analysis easier to check and repeat.
Worked example
A calibration curve has three measured averages: one based on 4 replicates and two based on 40 replicates.
| Point | Replicates | Illustrative precision weight |
|---|---|---|
| A | 4 | 4 |
| B | 40 | 40 |
| C | 40 | 40 |
If independent replicates have equal variance, the mean based on 40 replicates has about one tenth the variance of a mean based on 4. Weights proportional to replicate count may be considered under that setup.
Interpret the result carefully
WLS changes the fitting objective and potentially the slope. State how weights were obtained and compare predictions and residual behavior.
Limit to keep in mind: Estimated weights add uncertainty; treating them as known can understate it. Replication, model form and dependence still matter.
When reporting an analysis, include the sample size, estimate, units and uncertainty. Explain why the method fits the sampling and measurement design. Separate planned tests from exploratory checks, and avoid saying that association proves a cause.
Frequently asked questions
Are weights always inverse variance?
That is a common theoretical choice; software conventions and scale factors should be checked.
Does WLS fix outliers?
No. A valid outlier remains influential unless its weight is justified by variance.
Is WLS the same as robust standard errors?
No. WLS changes coefficient estimation; robust errors adjust uncertainty around an estimator.
Can weights be wrong?
Yes, and misspecified weights can harm estimates or uncertainty.