Exercises
ex-ch30-01
EasyThree base stations are located at , , and (metres). The TOA-derived range measurements are m, m, m.
(a) Set up the three range equations.
(b) Use the linearisation technique (subtract equation 1 from equations 2 and 3) to estimate the UE position .
Expand each and subtract the first from the remaining equations to eliminate .
You will obtain a linear system in and .
Range equations
$
Linearisation
Eq 2 Eq 1: , so m.
Eq 3 Eq 1: , so , giving m.
Verification
m, m, m. Residuals of 5--12 m are consistent with typical ranging noise.
ex-ch30-02
EasyA 5G gNB operating at 28 GHz with 100 MHz bandwidth measures the round-trip time to a UE as . The gNB and UE processing times are s and s, respectively.
(a) Compute the one-way propagation delay and the UE-gNB distance.
(b) Using the CRB approximation , compute the ranging standard deviation for SNR dB.
, so solve for .
Convert SNR from dB to linear before substituting.
One-way delay and distance
$
Ranging standard deviation
Linear SNR: .
With 100 MHz bandwidth at 15 dB SNR, the ranging standard deviation is approximately 6 cm --- well within the 5G NR sub-metre target.
ex-ch30-03
EasyTwo BSs are located at and . A TDOA measurement gives m.
(a) Write the equation of the hyperbola defined by this measurement.
(b) At what point(s) does this hyperbola intersect the -axis?
(c) Explain why a single TDOA measurement is insufficient for 2D positioning.
The hyperbola equation is .
On the -axis, . Substitute and solve.
Hyperbola equation
\mathbf{p}_1\mathbf{p}_2$. The negative sign indicates the UE is closer to BS 2 than to BS 1.
$y$-axis intersection
Setting :
For this to have a solution, . Squaring: , so , which gives .
This is negative, so the hyperbola does not intersect the -axis. The UE being closer to BS 2 (at ) means the UE is in the right half of the plane.
Insufficiency of single TDOA
A single TDOA measurement constrains the UE to lie on a 1D curve (the hyperbola), leaving one degree of freedom undetermined. In 2D, we need at least 2 independent measurements (2 hyperbolas from 3 BSs) to determine the position as the intersection point.
ex-ch30-04
EasyA UE receives signals from a BS at distance m. The received power is dBm. The transmit power is dBm, the reference path loss at m is dB, and the path loss exponent is .
(a) Estimate the distance from the RSS measurement alone.
(b) If the shadow fading standard deviation is dB, compute the 68% confidence interval for the distance estimate (i.e., the range of distances corresponding to ).
Invert the path loss model: .
For , substitute into the distance formula.
RSS-based distance estimate
Path loss: dB.
Wait --- this gives 82 m, not 200 m. This discrepancy arises because the actual path loss of 105 dB at 200 m implies a shadow fading realisation or a different effective PLE. Let us verify: expected PL at 200 m dB. So should be dBm. The measured dBm is 13.5 dB higher (favourable shadow fading), leading to a distance underestimate.
With the given measurements: m.
68% confidence interval
For dBm: m.
For dBm: m.
The 68% confidence interval is approximately m --- a factor of nearly 3. This illustrates why RSSI-based positioning is inherently coarse compared to TOA-based methods.
ex-ch30-05
MediumDerive the Fisher information matrix for 2D TOA-based positioning with BSs, each providing an independent range measurement with .
(a) Write the log-likelihood function.
(b) Compute the FIM .
(c) Show that the FIM can be written as where is the unit direction vector from BS to the UE.
The log-likelihood is .
Compute and similarly for .
The FIM entry is .
Log-likelihood
$
Gradient of the distance
Let . Then:
Define the unit vector .
Then .
FIM computation
The score vector is:
The FIM is . Since :
Each BS contributes a rank-1 matrix that provides information only along the radial direction . For the FIM to be full-rank (invertible), we need at least 2 BSs with linearly independent direction vectors, i.e., not all BSs can be collinear with the UE.
ex-ch30-06
MediumConsider a hybrid positioning scenario with 2 BSs providing TOA measurements and 1 BS providing an AOA measurement.
BS 1 (TOA): , m, m. BS 2 (TOA): , m, m. BS 3 (AOA): , , .
(a) Write the FIM contributions from the TOA and AOA measurements.
(b) Compute the combined FIM and the PEB.
(c) Compare with the PEB using only the two TOA measurements. What does the AOA measurement add?
Assume the UE is approximately at for computing direction vectors.
The AOA FIM contribution is .
Convert to radians.
Direction vectors
Using :
m
FIM contributions
TOA contributions ( m):
,
AOA contribution ( rad):
PEB comparison
The combined FIM is . Computing the PEB from the trace of numerically gives m.
With only TOA: , giving m.
The AOA measurement reduces the PEB by 38%. It is particularly valuable because it provides information along a direction complementary to the TOA radial directions, improving the conditioning of the FIM.
ex-ch30-07
MediumImplement one iteration of the Gauss-Newton algorithm for TOA-based positioning. Four BSs are at positions , , , . The range measurements are m, and all have m. The initial estimate is .
Compute .
First compute predicted ranges .
Form the Jacobian with rows .
Apply the update formula (unweighted since all equal).
Predicted ranges and residuals
\mathbf{r} = [310 - 320.2,; 380 - 403.1,; 210 - 403.1,; 250 - 320.2]^T = [-10.2,; -23.1,; -193.1,; -70.2]^T$
Jacobian
d_3^{(0)} = \sqrt{(250-600)^2 + (200-400)^2} = \sqrt{122500 + 40000} = 403.1$ m.
Gauss-Newton update
$
ex-ch30-08
MediumIn a DL-TDOA scenario, 5 synchronised gNBs are deployed. The UE measures 4 RSTDs (relative to gNB 1). One of the gNB links is NLOS with an excess delay of 40 m equivalent.
(a) If the naive LS estimator is used (ignoring NLOS), by approximately how much will the position estimate be biased? Give a qualitative argument using the geometry of the problem.
(b) Describe a residual-based NLOS detection algorithm. After the initial LS estimate, how would you identify which measurement is NLOS?
(c) After excluding the NLOS measurement, how many independent measurements remain? Is the system still solvable in 2D?
The NLOS bias pulls the estimated position towards the NLOS BS (since the measured range is too long).
After LS, compute residuals . The NLOS measurement will have a large positive residual.
With 5 BSs and 1 excluded, you have 3 independent TDOA measurements for 2 unknowns.
NLOS bias effect
The NLOS measurement has a positive bias of 40 m. In the LS solution, this excess delay makes the UE appear farther from the NLOS gNB than it actually is. The bias on the position estimate depends on the geometry but is typically a fraction of the NLOS bias --- roughly 10--25 m for a 40 m bias with 5 BSs, with the estimate pulled towards the opposite side of the NLOS gNB.
Residual-based detection
- Compute the initial LS estimate .
- For each measurement , compute the residual .
- The NLOS measurement will have (large positive residual) because the measured range is systematically larger than the geometric distance.
- Flag measurements with (a threshold, e.g., ) as NLOS candidates.
- Exclude flagged measurements and re-estimate the position.
Solvability after exclusion
With 5 gNBs, there are 4 independent TDOA measurements. Excluding 1 NLOS measurement leaves 3 independent TDOAs for 2 unknowns --- the system is still overdetermined (1 degree of redundancy) and solvable. With only 4 gNBs, excluding 1 NLOS link would leave only 2 TDOAs for 2 unknowns --- just determined, with no redundancy for error checking.
ex-ch30-09
MediumA 5G NR system uses PRS with comb size and OFDM symbols with subcarrier spacing (SCS) of 30 kHz. The PRS bandwidth is 50 resource blocks (RBs).
(a) How many subcarriers does the PRS occupy per symbol?
(b) After combining all 6 symbols with staggered offsets, what fraction of subcarriers are covered?
(c) Compute the effective bandwidth for ranging and the corresponding theoretical ranging resolution ().
Each RB has 12 subcarriers. With comb-6, 1 out of 6 subcarriers carries PRS per symbol.
With 6 staggered symbols and comb-6, all offsets are covered.
Effective bandwidth = total number of subcarriers SCS.
Subcarriers per symbol
Total subcarriers: . PRS per symbol (comb-6): subcarriers per symbol.
Combined coverage
With and symbols using offsets , every subcarrier is covered exactly once across the 6 symbols.
Coverage = 100% (all 600 subcarriers).
Effective bandwidth and ranging resolution
Effective bandwidth: .
Ranging resolution (delay resolution): m.
For sub-metre accuracy, much wider bandwidths (100+ MHz) are needed. With 272 RBs at 30 kHz SCS ( MHz), m, and the actual ranging accuracy (CRB) is much better at high SNR since .
ex-ch30-10
MediumAn RSS fingerprinting system operates in an indoor office of dimensions m with 4 WiFi access points. The training database contains fingerprints measured on a grid with 2 m spacing. The shadow fading standard deviation is dB.
(a) How many fingerprint locations are in the database?
(b) Using the -nearest-neighbour (-NN) algorithm with and equal weights, what is the expected positioning error if the RSS measurements are noise-free (i.e., the online measurement exactly matches one grid point)?
(c) Discuss qualitatively how the error changes when increases to 10 dB.
Grid points: .
If the measurement exactly matches one grid point, the 3 nearest neighbours include that point and its two closest grid neighbours.
Database size
Grid points along : . Grid points along : . Total: fingerprint locations.
Noise-free error
If the online RSS vector perfectly matches grid point , the 3 nearest neighbours in RSS space are itself and its two closest spatial neighbours (at distance 2 m). With equal weights:
The error is the distance from to this centroid, which is approximately m.
In practice, even with perfect RSS match, the -NN average introduces a bias towards the centroid of the neighbours, limiting accuracy to the order of the grid spacing.
Effect of larger shadow fading
With dB, the RSS vectors become less location-specific: nearby grid points have more similar fingerprints (less spatial gradient per unit distance), and distant grid points can have similar RSS due to large random fluctuations. The -NN algorithm is more likely to select spatially distant neighbours, increasing the positioning error to 3--5 m or more. The fundamental issue is that the "information radius" of each fingerprint grows with , making fine-grained discrimination impossible.
ex-ch30-11
HardDerive the Cramer-Rao bound for 2D positioning using AOA-only measurements from BSs.
(a) Show that the FIM contribution from BS is , where is the unit vector perpendicular to the radial direction.
(b) For 2 BSs with equal at equal distances from the UE, separated by angle as seen from the UE, show that (up to a constant factor).
(c) Discuss the geometric dilution of precision: what happens as the BSs become collinear ( or )?
Start from and compute and .
Use and .
For part (b), use and compute and .
FIM for AOA
The AOA measurement model is with .
The gradient of with respect to is:
The FIM contribution is:
PEB for 2 BSs
With equal and , and BSs at angles and from the UE:
Using :
The eigenvalues of are: .
For : (optimal).
Geometric dilution
As or (collinear BSs), and . The bearing lines become nearly parallel, and their intersection becomes ill-defined --- a small angular error translates to a large position error along the direction perpendicular to the bearing lines. This is the angular analogue of GDOP in GNSS.
ex-ch30-12
HardConsider the NLOS bias model where and (exponential with rate , mean ) for NLOS links, for LOS links.
(a) Derive the ML estimator for the UE position when the LOS/NLOS status of each link is known.
(b) When the LOS/NLOS status is unknown, formulate the problem as a mixed-integer optimisation. How many hypothesis tests are needed for BSs?
(c) Propose a computationally efficient relaxation of (b) and discuss its trade-offs.
For known NLOS, the bias can be treated as a nuisance parameter. The joint distribution of under NLOS is the convolution of Gaussian and exponential, which is an exponentially modified Gaussian (EMG).
With BSs and unknown status, there are possible LOS/NLOS configurations.
A relaxation: treat as continuous variables and solve a constrained optimisation.
ML with known status
LOS links (): Standard Gaussian likelihood, .
NLOS links: The effective noise follows an exponentially modified Gaussian (EMG) distribution:
where is the standard normal CDF.
The ML estimate maximises the joint likelihood:
Unknown status: combinatorial problem
With unknown LOS/NLOS status for each of links, define binary variables (0 = LOS, 1 = NLOS). The ML problem becomes:
This requires evaluating hypotheses. For , this is 64 evaluations (feasible); for , it is (barely feasible); for large , it is intractable.
Computationally efficient relaxation
Approach 1 (constrained WLS): Treat biases as continuous:
The -like penalty (from the exponential prior) encourages sparsity in the bias vector. This is a second-order cone program (SOCP) solvable in polynomial time.
Approach 2 (iterative NLOS detection):
- Compute LS estimate using all measurements.
- Compute residuals; flag as NLOS.
- Re-estimate excluding flagged measurements.
- Repeat until convergence.
Trade-off: Approach 1 is more principled but computationally heavier; Approach 2 is simple but may incorrectly flag/miss NLOS links, especially when multiple links are NLOS simultaneously.
ex-ch30-13
HardProve that for BSs uniformly distributed on a circle of radius around the UE, all with equal , the FIM for TOA-based positioning satisfies:
and hence .
The direction vector from BS at angle is .
Use and for .
FIM computation
With BS at angle :
Using the identities for uniformly spaced angles:
(These follow from and the fact that for uniformly spaced angles.)
Therefore:
PEB
NR\sigma_r\square$
ex-ch30-14
HardIn a Multi-RTT positioning scenario, the UE exchanges signals with gNBs. The RTT measurement model is:
where and are known processing delays and .
(a) Show that after removing known processing times, Multi-RTT reduces to a TOA problem (not TDOA), and that no clock synchronisation is required.
(b) Derive the FIM for Multi-RTT and compare with the DL-TDOA FIM (using the same BSs). Which method is more information-efficient and why?
(c) Discuss the practical trade-off: Multi-RTT requires uplink transmission while DL-TDOA does not.
After subtracting known processing times, gives independent range measurements.
TDOA differencing introduces noise correlation (the reference measurement appears in all TDOAs) and loses one independent measurement.
Multi-RTT as TOA
Defining the corrected delay: ,
we get , hence:
The effective range error has variance . Since the RTT inherently measures the two-way delay, the UE clock bias cancels: any UE clock offset appears identically in the transmitted and received timestamps and drops out when computing .
Multi-RTT thus gives independent range measurements --- equivalent to synchronised TOA. No UE-gNB or inter-gNB synchronisation is needed.
FIM comparison
Multi-RTT FIM: (full terms).
DL-TDOA FIM: TDOA differences the range measurements: , . The noise covariance of the TDOA vector is (the reference noise appears in all terms).
The TDOA FIM is:
After algebraic simplification, one can show that (in the Loewner order), with equality only in degenerate cases. Multi-RTT provides strictly more Fisher information because it uses independent measurements versus correlated ones.
Practical trade-offs
Multi-RTT advantages: More information-efficient, no inter-gNB synchronisation needed, robust to gNB clock drift.
Multi-RTT disadvantages: Requires UE uplink transmission (SRS for positioning), higher UE power consumption, increased latency (UE must transmit and wait for responses from each gNB), potential uplink interference.
DL-TDOA advantages: Purely passive at UE (no uplink needed), lower UE power, UE can measure all gNBs simultaneously.
In practice, Multi-RTT is preferred when the UE can afford uplink transmission and when gNB synchronisation is unreliable; DL-TDOA is preferred for low-power IoT devices and scenarios with tight inter-gNB synchronisation.
ex-ch30-15
HardIn a Channel-SLAM scenario, a single BS with a massive MIMO array transmits a wideband signal. The UE moves along a straight path and observes specular multipath components (in addition to the LOS path) at each time step.
(a) At a single time step, how many unknowns (UE position + VA positions) and how many measurements (delays + angles) are there? Is the system determined?
(b) After time steps with known UE displacement between steps, how many unknowns and measurements are there? Find the minimum for the system to be determined.
(c) Discuss the role of data association: what happens if the ordering of MPCs changes between time steps (e.g., MPC 2 at time corresponds to MPC 3 at time )?
At each time step: 4 delays (LOS + 3 MPCs) and 4 angles = 8 measurements. Unknowns: 2 (UE position) + 32 (VA positions) = 8.
With known displacement, the UE trajectory has 2 unknowns (initial position) for all steps. VA positions remain 6 unknowns.
Incorrect data association means the system solves the wrong set of equations, leading to convergence to a wrong map.
Single time step
Measurements: 4 delays + 4 azimuth angles = 8 scalar measurements per time step.
Unknowns: 2 (UE position ) + (VA positions) = 8 unknowns.
The system is just determined (8 equations, 8 unknowns) at a single time step. However, the equations are nonlinear (range-angle relationships), and the single-step solution is extremely sensitive to noise --- there may be multiple local minima. In practice, single-step Channel-SLAM is unreliable.
Multiple time steps
With known displacement, the UE trajectory is parameterised by the initial position (2 unknowns). VA positions add 6 unknowns. Total unknowns = 8 (independent of ).
At each time step, 8 new measurements are obtained. After steps: measurements for 8 unknowns.
For : just determined (). For : overdetermined ().
Minimum is algebraically sufficient, but provides overdetermination for robustness. If only delays (no angles) are available: 4 measurements per step, 8 unknowns, minimum .
Data association challenge
Data association maps each detected MPC at time to the correct VA. Incorrect association means the delay from VA is paired with the position of VA , producing an inconsistent system that converges to an incorrect map.
In practice, data association is handled probabilistically:
- Nearest-neighbour association in the delay-angle space
- Multiple hypothesis tracking (MHT) maintaining parallel association hypotheses
- Joint probabilistic data association (JPDA) weighting all possible associations
- Factor-graph-based association where association is a variable node in the SLAM graph
Data association is the computational bottleneck of Channel-SLAM, with complexity growing combinatorially in the number of MPCs and time steps.
ex-ch30-16
HardDesign a hybrid 5G positioning system for an indoor factory scenario (100 m 80 m). The requirements are:
- Horizontal accuracy: m (90th percentile)
- Latency: ms
- 20% of links expected to be NLOS
Available resources:
- 5G NR FR1 at 3.5 GHz, 100 MHz bandwidth, SCS = 30 kHz
- gNBs with 64-element UPA (88)
- Budget for up to 8 gNBs
(a) Compute the theoretical ranging accuracy and angular accuracy at SNR = 15 dB.
(b) Determine the minimum number of gNBs needed and propose a deployment layout.
(c) Select the positioning method(s) and justify your choice.
(d) Propose an NLOS mitigation strategy.
Use and where .
For 90th percentile accuracy, the PEB should be about m (assuming Rayleigh-distributed error).
Hybrid methods combining range and angle typically outperform single-method approaches.
Theoretical accuracies
Ranging accuracy:
Angular accuracy (per dimension): For an 8-element ULA (one dimension of the UPA):
Number of gNBs and layout
Target PEB m. With m:
For TOA with isotropic BSs: . gives PEB = 0.12 m --- but this assumes ideal geometry and no NLOS.
With 20% NLOS and need for robustness, deploy 6 gNBs in a roughly hexagonal pattern (2 rows of 3, spaced ~50 m apart, ~40 m between rows). This provides:
- At least 4--5 LOS links from most indoor positions
- Sufficient redundancy for NLOS exclusion (can lose 1--2 links)
- Angular diversity for both TOA and AOA methods
Positioning method selection
Recommended: Hybrid Multi-RTT + UL-AoA.
- Multi-RTT provides range measurements without inter-gNB sync (factory gNBs may not have GPS-disciplined clocks).
- UL-AoA exploits the 64-element arrays for angle measurements, providing complementary information.
- The hybrid FIM is , combining radial (TOA) and tangential (AOA) information for near-isotropic positioning accuracy.
- Latency: a single RTT exchange takes ~1 ms; 6 gNBs sequentially = 6 ms 100 ms budget.
NLOS mitigation
Strategy: Residual-based detection + constrained optimisation.
- Compute initial Multi-RTT estimate using all 6 gNBs.
- Compute residuals; flag links with m.
- Re-estimate using only unflagged (LOS) links.
- If fewer than 3 unflagged links remain, use the constrained WLS formulation with bias variables.
Additionally, the UL-AoA measurements are less affected by NLOS (angular bias from reflections is often smaller than range bias), providing a complementary source of information for NLOS scenarios.
Expected performance: With 6 gNBs and 20% NLOS, typically 5 links are LOS, giving PEB m (well within target). Even with 2 NLOS links excluded, 4 remaining LOS links give PEB m.