Lecture 5 (Bivariate ND & Error Ellipses)
Lecture 5 (Bivariate ND & Error Ellipses)
Lecture 5 (Bivariate ND & Error Ellipses)
where:
µx and σx = mean and standard deviation of X
µy and σy = mean and standard deviation of Y
ρ = correlation coefficient of X and Y σ xy
ρ=
σ xσ y
• Density functions for X and Y • When a plane parallel to the x,y coordinate plane cuts
• Components of the bivariate normal distribution at the the bivariate density surface at a height K, an ellipse is
X and Y axes formed
• The same as the usual density functions for individual • The equation of this ellipse is: (obtained by making
normally distributed random variables f(x,y) = K)
1 x − µ 2 2 2
f ( x) =
1
exp − x x − µx x − µx y − µy y − µy
− 2ρ + = (1 − ρ )c
2 2
σ x 2π 2 σ x σ x σx σ y σy
1 y − µ 2
1 where:
f ( y) = exp −
y
−1
c 2 = ln 4π 2 K 2σ x2σ y2 (1 − ρ 2 ) = a constant
σ y 2π 2 σ y
1
Example Solution
−1
The parameters of a bivariate normal distribution c 2 = ln 4π 2 (0.1) 2 (1) 2 (0.5) 2 (1 − (0.5) 2 ) = 2.60
are µx = 4, µy = 5, σx = 1, σy = 0.5, and ρxy = 0.5. (1 − ρ 2 )c 2 = (1 − 0.25)(2.60) = 1.95
A plane intersects the density function at K = 0.1
above the x,y coordinate plane. Evaluate the The equation of the ellipse is:
ellipse of intersection. 2 2
x−4 x − 4 y −5 y −5
− 2(0.5) + = 1.95
1 1 0.5 0.5
Simplifying,
( x − 4) 2 − 2( x − 4)( y − 5) + 4( y − 5) 2 = 1.95
• Produced when the bivariate probability • The corresponding equation for the cutting
distribution is centered at the origin (µx = µy = 0) ellipse in this case would be:
2 2
2
x y y
2
x x y y
1 −1 x
− 2ρ + = (1 − ρ )c
2 2
f ( x, y) = exp − 2ρ +
2(1− ρ ) σ x σ x σ y σ y σ σx σ y σ y
2
2πσ xσ y 1− ρ 2 x
This equation is used if we want to represent the This equation represents a family of error
random errors only ellipses centered on the origin
σ
x σx σ y σy
2
Sample variants of the standard error
ellipse (by varying the parameters)
Standard Error Ellipse
• A positional error is expressed in the • The two vectors can be related by the equation:
x,y coordinate system by the random X ′ cos θ sin θ X
vector X Y ′ = − sin θ cos θ Y
Y
• The same positional error is expressed • θ is the angle of rotation
in the x’,y’ coordinate system by the • Transformations from one coordinate system to
the other can be made using the above equation
random vector X ′
Y′ correlated errors may be transformed to
uncorrelated errors using the equation
3
Orientation of Error Ellipse Semimajor and Semiminor Axes
2 1/ 2
σ x2 + σ y2 (σ x2 − σ y2 ) 2
σ x2′ = + + σ xy2
The third equation (Eq. 3) therefore becomes: 2 4
1/ 2
1 2 σ x2 + σ y2 (σ x2 − σ y2 ) 2
(σ y − σ x2 ) sin 2θ + σ xy cos 2θ = 0
2 σ y2′ = − + σ xy2
2 4
Which can be further simplified as:
2σ xy
tan 2θ = σx’ = semimajor axis
σ x2 − σ y2
σy’ = semiminor axis
Example: Solution:
The random error in the position of a survey σ xy = ρσ xσ y = ( 0.8 )( 0.22 )( 0.14 ) = 0.0246 m 2
σ x2 + σ y2 ( 0.22 ) + ( 0.14 )
2 2
station is expressed by a bivariate normal = = 0.0340 m 2
2 2
distribution with parameters µx = µy = 0, σx
( )
1/ 2
(σ 2 − σ 2 ) 2
1/ 2
0.22 2 − 0.14 2 2
( ) ( )
= 0.22 m, σy = 0.14 m, and ρ = 0.80. x y
+ σ xy2 =
2
+ ( 0.0246 ) = 0.0285 m 2
4 4
Evaluate the semimajor axis, semiminor axis,
and the orientation of the standard error (σ 2 − σ 2 ) 2
σ x2 + σ y2
1/ 2
+ + σ xy2
x y
ellipse associated with this position error. σ x'2 = = 0.0340 + 0.0285
2 4
σ x' = 0.0625 m
2 2
σx σy
positive. Therefore, 2θ = tan-1(1.711) = 59.7° and the
orientation of the error ellipse is θ = 29.8°
4
Probability of Error Ellipse Probability of Error Ellipse
1
(Recall from the past lecture that Y has a chi-square f (u ) = 2 / 2 y (2 / 2) −1e − u / 2
distribution: 2 2 Γ(2 / 2)
Y = Z12 + Z 22 + ⋯ + Z n2
Solution:
P U ≤ c 2 = 0.90
2
The semimajor and semiminor
1 − e−c /2
= 0.90 axes are:
ln [ 0.10 ] = ln e − c cσ x' = 2.146 ( 0.25 ) = 0.54 m
2
/2
cσ y' = 2.146 ( 0.074 ) = 0.16 m
−c 2
−2.3026 =
2
4.6052 = c 2
c = 2.146