PracticeVideosBlogFlashcards

5.2 Principles of Least Squares, Most Probable Value, and Weighted Observations

Key Takeaways

  • The Principle of Least Squares states that the most probable value of unknown parameters minimizes the sum of weighted squared residuals (sum w_i * v_i^2 = minimum).

  • The weight of an observation is inversely proportional to its variance (w_i = sigma_0^2 / sigma_i^2); an observation with half the standard deviation carries 4 times the weight.

  • In differential leveling, observation variance is proportional to route length D, making observation weight inversely proportional to route length (w_i = 1 / D_i).

  • The standard error of unit weight evaluates overall least-squares model agreement and is calculated as sigma_0 = sqrt( (sum w_i * v_i^2) / (n - u) ), where n - u is degrees of freedom.

  • Normal equations convert an overdetermined system of observation equations (v = AX - L) into a square, symmetric system (A^T P A X = A^T P L) that yields unique least-squares parameter estimates.

Last updated: July 2026

Principles of Least Squares, Most Probable Value, and Weighted Observations

When surveying measurements contain redundant observations (more measurements than the minimum necessary to determine unknown geometric parameters), small inconsistencies known as misclosures occur due to random errors. The Principle of Least Squares provides the mathematically rigorous framework for resolving these discrepancies to obtain the Most Probable Value (MPV) of unknown quantities and establish unbiased estimates of measurement precision.


1. Fundamental Principle of Least Squares

1.1 The Least-Squares Postulate

The mathematical principle of least squares, independently developed by Carl Friedrich Gauss and Adrien-Marie Legendre, states that for a system of redundant independent observations of equal precision, the most probable values of the unknown parameters are those that minimize the sum of the squares of the observation residuals:

∑i=1nvi2=v12+v22+⋯+vn2=minimum\sum_{i=1}^n v_i^2 = v_1^2 + v_2^2 + \dots + v_n^2 = \text{minimum}

where vi=Adjusted Value−Observed Value=f(X^)−liv_i = \text{Adjusted Value} - \text{Observed Value} = f(\hat{X}) - l_i.

1.2 Mathematical Proof: Arithmetic Mean as MPV

Consider nn independent observations l1,l2,…,lnl_1, l_2, \dots, l_n of a single unknown quantity xx with equal weight. The residuals are vi=x−liv_i = x - l_i. The sum of squared residuals function S(x)S(x) is: S(x)=∑i=1nvi2=∑i=1n(x−li)2S(x) = \sum_{i=1}^n v_i^2 = \sum_{i=1}^n (x - l_i)^2

To find the value of xx that minimizes S(x)S(x), take the first derivative with respect to xx and equate to zero: dSdx=ddx[∑i=1n(x−li)2]=2∑i=1n(x−li)=0\frac{dS}{dx} = \frac{d}{dx} \left[ \sum_{i=1}^n (x - l_i)^2 \right] = 2 \sum_{i=1}^n (x - l_i) = 0 ∑i=1nx−∑i=1nli=0  ⟹  nx=∑i=1nli  ⟹  x=∑i=1nlin=xˉ\sum_{i=1}^n x - \sum_{i=1}^n l_i = 0 \implies n x = \sum_{i=1}^n l_i \implies x = \frac{\sum_{i=1}^n l_i}{n} = \bar{x}

Thus, the arithmetic mean is mathematically proven to be the least-squares most probable value for direct observations of equal weight.


2. Weights of Observations

In real-world geodetic operations, observations rarely possess identical precision. Measurements performed with different instruments, over varying line lengths, under diverse weather conditions, or by observers of unequal skill must be weighted according to their relative reliability.

2.1 Definition and Variance Relationship

The weight (wiw_i or pip_i) of an observation is a relative dimensionless number inversely proportional to its variance (σi2\sigma_i^2):

wi∝1σi2  ⟹  wi=σ02σi2w_i \propto \frac{1}{\sigma_i^2} \implies w_i = \frac{\sigma_0^2}{\sigma_i^2}

where σ02\sigma_0^2 is the reference variance (or variance of an observation of unit weight, w=1w=1).

From this definition, the fundamental weight-variance relation is established: w1σ12=w2σ22=⋯=wnσn2=σ02w_1 \sigma_1^2 = w_2 \sigma_2^2 = \dots = w_n \sigma_n^2 = \sigma_0^2

Key implications:

  • High variance   ⟹  \implies low precision   ⟹  \implies low weight.
  • An observation with twice the standard deviation has one-fourth the weight (w∝1/s2w \propto 1/s^2).

2.2 Weight Determination Rules in Surveying Practice

Surveying Measurement TypePhysical Governing RuleWeight Formula
Differential Leveling (Distance)Variance accumulates linearly with route distance DiD_iwi=1Diw_i = \frac{1}{D_i}
Differential Leveling (Setups)Variance accumulates linearly with setup count kik_iwi=1kiw_i = \frac{1}{k_i}
Repeated MeasurementsVariance of mean decreases linearly with repetition count nin_iwi=niw_i = n_i
EDM Distance MeasurementStandard error specified as σi=a+b⋅Si\sigma_i = a + b \cdot S_iwi=1(a+b⋅Si)2w_i = \frac{1}{(a + b \cdot S_i)^2}

3. Weighted Mean and Precision Metrics

For nn observations of unequal weight l1,l2,…,lnl_1, l_2, \dots, l_n with assigned weights w1,w2,…,wnw_1, w_2, \dots, w_n, the least-squares objective function becomes:

∑i=1nwivi2=w1v12+w2v22+⋯+wnvn2=minimum\sum_{i=1}^n w_i v_i^2 = w_1 v_1^2 + w_2 v_2^2 + \dots + w_n v_n^2 = \text{minimum}

3.1 Weighted Mean (xˉw\bar{x}_w) Formula

Differentiating ∑wi(x−li)2=0\sum w_i (x - l_i)^2 = 0 yields the weighted mean: xˉw=∑i=1nwili∑i=1nwi=w1l1+w2l2+⋯+wnlnw1+w2+⋯+wn\bar{x}_w = \frac{\sum_{i=1}^n w_i l_i}{\sum_{i=1}^n w_i} = \frac{w_1 l_1 + w_2 l_2 + \dots + w_n l_n}{w_1 + w_2 + \dots + w_n}

3.2 Standard Error of Unit Weight (σ0\sigma_0)

The standard error of unit weight evaluates overall model consistency and residual dispersion: σ0=∑i=1nwivi2n−u=∑i=1nwivi2r\sigma_0 = \sqrt{\frac{\sum_{i=1}^n w_i v_i^2}{n - u}} = \sqrt{\frac{\sum_{i=1}^n w_i v_i^2}{r}} where nn is the number of observations, uu is the number of unknown parameters, and r=n−ur = n - u is the degrees of freedom (redundancy).

3.3 Standard Error of an Individual Observation of Weight wiw_i

sxi=σ0wis_{x_i} = \frac{\sigma_0}{\sqrt{w_i}}

3.4 Standard Error of the Weighted Mean (sxˉws_{\bar{x}_w})

sxˉw=σ0∑i=1nwi=∑wivi2(n−1)∑wis_{\bar{x}_w} = \frac{\sigma_0}{\sqrt{\sum_{i=1}^n w_i}} = \sqrt{\frac{\sum w_i v_i^2}{(n - 1) \sum w_i}}


Worked Numerical Example 1: Weighted Adjustment of Differential Level Lines

Three differential level lines are run from established benchmark BM-A (Elevation = 125.400 m125.400\text{ m}) to determine the elevation of point B. The observed elevation differences, route distances, and calculated weights are summarized below:

  • Line 1: Δh1=+14.250 m\Delta h_1 = +14.250\text{ m}, Distance D1=1.0 km  ⟹  Observed Elevation E1=139.650 mD_1 = 1.0\text{ km} \implies \text{Observed Elevation } E_1 = 139.650\text{ m}
  • Line 2: Δh2=+14.280 m\Delta h_2 = +14.280\text{ m}, Distance D2=2.0 km  ⟹  Observed Elevation E2=139.680 mD_2 = 2.0\text{ km} \implies \text{Observed Elevation } E_2 = 139.680\text{ m}
  • Line 3: Δh3=+14.230 m\Delta h_3 = +14.230\text{ m}, Distance D3=4.0 km  ⟹  Observed Elevation E3=139.630 mD_3 = 4.0\text{ km} \implies \text{Observed Elevation } E_3 = 139.630\text{ m}

Step 1: Assign Relative Weights Using wi=1Diw_i = \frac{1}{D_i}:

  • w1=11.0=1.000w_1 = \frac{1}{1.0} = 1.000
  • w2=12.0=0.500w_2 = \frac{1}{2.0} = 0.500
  • w3=14.0=0.250w_3 = \frac{1}{4.0} = 0.250 ∑wi=1.000+0.500+0.250=1.750\sum w_i = 1.000 + 0.500 + 0.250 = 1.750

Step 2: Compute Weighted Mean Elevation (EˉB\bar{E}_B) ∑wiEi=(1.000⋅139.650)+(0.500⋅139.680)+(0.250⋅139.630)=139.650+69.840+34.9075=244.3975\sum w_i E_i = (1.000 \cdot 139.650) + (0.500 \cdot 139.680) + (0.250 \cdot 139.630) = 139.650 + 69.840 + 34.9075 = 244.3975 EˉB=∑wiEi∑wi=244.39751.750=139.6557 m\bar{E}_B = \frac{\sum w_i E_i}{\sum w_i} = \frac{244.3975}{1.750} = 139.6557\text{ m}

Step 3: Calculate Residuals (vi=EˉB−Eiv_i = \bar{E}_B - E_i) and Weighted Squares (wivi2w_i v_i^2)

  • v1=139.6557−139.6500=+0.0057 m  ⟹  w1v12=1.000⋅(0.0057)2=0.00003249v_1 = 139.6557 - 139.6500 = +0.0057\text{ m} \implies w_1 v_1^2 = 1.000 \cdot (0.0057)^2 = 0.00003249
  • v2=139.6557−139.6800=−0.0243 m  ⟹  w2v22=0.500⋅(−0.0243)2=0.000295245v_2 = 139.6557 - 139.6800 = -0.0243\text{ m} \implies w_2 v_2^2 = 0.500 \cdot (-0.0243)^2 = 0.000295245
  • v3=139.6557−139.6300=+0.0257 m  ⟹  w3v32=0.250⋅(+0.0257)2=0.000165123v_3 = 139.6557 - 139.6300 = +0.0257\text{ m} \implies w_3 v_3^2 = 0.250 \cdot (+0.0257)^2 = 0.000165123 ∑wivi2=0.00003249+0.000295245+0.000165123=0.000492858 m2\sum w_i v_i^2 = 0.00003249 + 0.000295245 + 0.000165123 = 0.000492858\text{ m}^2

Step 4: Compute Standard Error of Unit Weight (σ0\sigma_0) Here n=3n=3 observations, u=1u=1 unknown (EˉB\bar{E}_B), redundancy r=3−1=2r = 3 - 1 = 2: σ0=0.0004928582=0.000246429=±0.01570 m=±15.7 mm\sigma_0 = \sqrt{\frac{0.000492858}{2}} = \sqrt{0.000246429} = \pm 0.01570\text{ m} = \pm 15.7\text{ mm}

Step 5: Compute Standard Error of Adjusted Elevation (σEˉB\sigma_{\bar{E}_B}) σEˉB=σ0∑wi=0.015701.750=0.015701.322876=±0.01187 m≈±11.9 mm\sigma_{\bar{E}_B} = \frac{\sigma_0}{\sqrt{\sum w_i}} = \frac{0.01570}{\sqrt{1.750}} = \frac{0.01570}{1.322876} = \pm 0.01187\text{ m} \approx \pm 11.9\text{ mm}

The adjusted elevation of point B is 139.6557 m±0.0119 m139.6557\text{ m} \pm 0.0119\text{ m}.


4. Normal Equations for Multiple Unknown Parameters

When observations are indirect functions of multiple unknown parameters X=[x,y,z,… ]TX = [x, y, z, \dots]^T, observation equations are formed:

vi=aix+biy+ciz+⋯−liv_i = a_i x + b_i y + c_i z + \dots - l_i

where ai,bi,cia_i, b_i, c_i are coefficient partial derivatives and li=lobserved,i−lcomputed,i0l_i = l_{observed, i} - l_{computed, i}^0.

4.1 Algebraic Normal Equations Structure

To minimize ∑wivi2\sum w_i v_i^2, partial derivatives of ∑wi(aix+biy+ciz−li)2\sum w_i (a_i x + b_i y + c_i z - l_i)^2 with respect to each unknown x,y,zx, y, z are set to zero, yielding the system of Normal Equations:

([aaw])x+([abw])y+([acw])z=[alw]([abw])x+([bbw])y+([bcw])z=[blw]([acw])x+([bcw])y+([ccw])z=[clw]\begin{aligned} ([a a w]) x + ([a b w]) y + ([a c w]) z &= [a l w] \\ ([a b w]) x + ([b b w]) y + ([b c w]) z &= [b l w] \\ ([a c w]) x + ([b c w]) y + ([c c w]) z &= [c l w] \end{aligned}

where Gaussian summation bracket notation defines matrix coefficients: [aaw]=∑i=1nai2wi,[abw]=∑i=1naibiwi,[alw]=∑i=1nailiwi[a a w] = \sum_{i=1}^n a_i^2 w_i, \quad [a b w] = \sum_{i=1}^n a_i b_i w_i, \quad [a l w] = \sum_{i=1}^n a_i l_i w_i.


Worked Numerical Example 2: Normal Equations Solution for Two Unknown Station Heights

Determine the elevations of two benchmark stations hAh_A and hBh_B relative to control BM-0 (Elev=0.000 mElev = 0.000\text{ m}) given four observed elevation differences of equal weight (wi=1.0w_i = 1.0):

  1. l1=+10.05 ml_1 = +10.05\text{ m} (from BM-0 to A)   ⟹  hA=10.05\implies h_A = 10.05
  2. l2=+15.10 ml_2 = +15.10\text{ m} (from BM-0 to B)   ⟹  hB=15.10\implies h_B = 15.10
  3. l3=+5.00 ml_3 = +5.00\text{ m} (from A to B)   ⟹  hB−hA=5.00\implies h_B - h_A = 5.00
  4. l4=+15.02 ml_4 = +15.02\text{ m} (from BM-0 to B)   ⟹  hB=15.02\implies h_B = 15.02

Step 1: Set Up Observation Equations (vi=aihA+bihB−liv_i = a_i h_A + b_i h_B - l_i)

  • Line 1: v1=(1)hA+(0)hB−10.05v_1 = (1) h_A + (0) h_B - 10.05
  • Line 2: v2=(0)hA+(1)hB−15.10v_2 = (0) h_A + (1) h_B - 15.10
  • Line 3: v3=(−1)hA+(1)hB−5.00v_3 = (-1) h_A + (1) h_B - 5.00
  • Line 4: v4=(0)hA+(1)hB−15.02v_4 = (0) h_A + (1) h_B - 15.02

Step 2: Calculate Summation Terms

  • [aa]=(1)2+(0)2+(−1)2+(0)2=1+0+1+0=2[a a] = (1)^2 + (0)^2 + (-1)^2 + (0)^2 = 1 + 0 + 1 + 0 = 2
  • [bb]=(0)2+(1)2+(1)2+(1)2=0+1+1+1=3[b b] = (0)^2 + (1)^2 + (1)^2 + (1)^2 = 0 + 1 + 1 + 1 = 3
  • [ab]=(1)(0)+(0)(1)+(−1)(1)+(0)(1)=0+0−1+0=−1[a b] = (1)(0) + (0)(1) + (-1)(1) + (0)(1) = 0 + 0 - 1 + 0 = -1
  • [al]=(1)(10.05)+(0)(15.10)+(−1)(5.00)+(0)(15.02)=10.05−5.00=5.05[a l] = (1)(10.05) + (0)(15.10) + (-1)(5.00) + (0)(15.02) = 10.05 - 5.00 = 5.05
  • [bl]=(0)(10.05)+(1)(15.10)+(1)(5.00)+(1)(15.02)=15.10+5.00+15.02=35.12[b l] = (0)(10.05) + (1)(15.10) + (1)(5.00) + (1)(15.02) = 15.10 + 5.00 + 15.02 = 35.12

Step 3: Construct System of Normal Equations

{2hA−1hB=5.05−1hA+3hB=35.12\begin{cases} 2 h_A - 1 h_B = 5.05 \\ -1 h_A + 3 h_B = 35.12 \end{cases}

Step 4: Solve System of Equations From Equation 1: 2hA=5.05+hB  ⟹  hA=2.525+0.5hB2 h_A = 5.05 + h_B \implies h_A = 2.525 + 0.5 h_B. Substitute into Equation 2: −(2.525+0.5hB)+3hB=35.12- (2.525 + 0.5 h_B) + 3 h_B = 35.12 −2.525+2.5hB=35.12  ⟹  2.5hB=37.645  ⟹  hB=15.058 m-2.525 + 2.5 h_B = 35.12 \implies 2.5 h_B = 37.645 \implies h_B = 15.058\text{ m} Substituting back for hAh_A: hA=2.525+0.5(15.058)=2.525+7.529=10.054 mh_A = 2.525 + 0.5(15.058) = 2.525 + 7.529 = 10.054\text{ m}

Final Most Probable Values: hA=10.054 m,hB=15.058 mh_A = 10.054\text{ m}, \quad h_B = 15.058\text{ m}

Test Your Knowledge

If Measurement A has a standard deviation of ±2.0 mm and Measurement B has a standard deviation of ±6.0 mm, what is the ratio of the weight of Measurement A to the weight of Measurement B (w_A / w_B)?

A

9 : 1

B

3 : 1

C

1 : 3

D

1 : 9

Test Your Knowledge

Three differential level lines are run between BM-1 and BM-2 with line lengths of 1 km, 2 km, and 4 km. What are the relative weights assigned to these three level lines?

A

1 : 2 : 4

B

4 : 2 : 1

C

4 : 2 : 1 (or normalized as 1.0 : 0.5 : 0.25)

D

16 : 4 : 1

Test Your Knowledge

Two independent distance measurements of a line yield 100.20 m (weight = 3) and 100.40 m (weight = 1). What is the weighted mean distance?

A

100.25 m

B

100.30 m

C

100.35 m

D

100.38 m

Test Your Knowledge

In a least-squares adjustment involving 10 independent observations and 3 unknown parameters, what is the number of degrees of freedom (redundancy r)?

A

3

B

5

C

10

D

7

Sections you finish are checked off in the contents.