A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Weighted Least Squares (WLS)

College Depth 115 in the knowledge graph ☐ I know this ☆ Set as goal
13topics build on this
588prerequisites beneath it
See this on the map →
Generalized Least Squares (GLS) for Non-Spherical ErrorsHeteroskedasticity→→Least Squares Regression: Fundamentals and Derivation
wls heteroskedasticity weights

Core Idea

WLS applies inverse-variance weights to observations to correct for heteroskedasticity. High-variance observations receive lower weight, improving efficiency when the variance structure is known or can be estimated.

How It's Best Learned

Estimate the variance function from residuals, then use predicted variances as weights in a second-stage regression. Compare WLS standard errors to OLS standard errors to verify the efficiency gain.

Explainer

You already know that heteroskedasticity — non-constant error variance — doesn't bias OLS coefficient estimates, but it does make them inefficient and invalidates standard errors. Robust standard errors are one fix: they correct the standard errors without changing the point estimates. Weighted Least Squares (WLS) takes a more structural approach: it re-weights the data so that the effective error variance *becomes* constant, then runs OLS on the re-weighted problem.

The intuition is straightforward. Think of fitting a line through data where some observations are measured precisely (small variance) and others are measured noisily (large variance). OLS treats every data point equally, so a single noisy observation can pull the line substantially. That's wasteful — a data point with high variance contains less information about the true relationship and shouldn't count as much. WLS assigns each observation a weight equal to the inverse of its variance: w_i = 1/σ²_i. Observations with small variance (high precision) get large weights; observations with large variance get small weights. The result is BLUE — Best Linear Unbiased Estimator — under the correct variance specification, just as OLS is BLUE under homoskedasticity.

From your study of Generalized Least Squares (GLS), you know that WLS is a special case. GLS handles a general covariance structure Ω, transforming the model by Ω^{-1/2} to produce a homoskedastic, uncorrelated error. WLS is GLS restricted to the diagonal case where errors are uncorrelated but have different variances. The transformation is simply dividing each observation by its standard deviation σ_i — equivalently, multiplying by the square root of the weight. After this transformation, the rescaled errors have equal variance, and ordinary OLS applied to the transformed data is efficient.

The practical challenge is that the true σ²_i values are never observed. In feasible WLS, you estimate them from the data. One common approach: run OLS first, take the squared residuals as noisy proxies for σ²_i, then regress log(ê²_i) on functions of the regressors to get a smooth variance function. The fitted values from this auxiliary regression provide estimated weights for the second-stage WLS. The two-stage procedure introduces uncertainty into the weights themselves, which can affect standard errors in finite samples. This is why comparing WLS and OLS standard errors — and checking whether the residuals from the WLS regression look more homoskedastic — is important before trusting the efficiency gain.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence of Events → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Multiple Regression → Interpreting Regression Coefficients → Hypothesis Testing in Regression → F-Test and Joint Significance → White Test and Detection of Heteroskedasticity → Generalized Least Squares (GLS) for Non-Spherical Errors → Weighted Least Squares (WLS)

Longest path: 116 steps · 588 total prerequisite topics

Prerequisites (2)

Leads To (1)