Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

ErrorEllipses

Input: onesigmauncertaintyinthexdirection:x

onesigmauncertaintyintheydirection:y

correlationcoefficientxy

centeroftheellipse:(x,y)

aspectratiooftheplot:(y/verticalplotlength)/(x/horizontalplotlength)

1)Calculatethecovariancebetweenxandy:

2)Constructthecovariancematrix:

3)Calculatethelengthsoftheellipseaxes,whicharethesquarerootoftheeigenvaluesofthe
covariancematrix:

4)Calculatethecounterclockwiserotation()oftheellipse:
1
Tan
2

5)Tocreatea95%confidenceellipsefromthe1errorellipse,wemustenlargeitbyafactorof
2.4477.
6)Plottheellipse:
7a)Plotanellipsewithsemimajorandsemimonoraxesparalleltothexandyaxesofthe
graph,centeredat(x,y).Theseaxislengthsarethesquarerootsoftheeigenvalues.Thelarger
eigenvaluebelongstotheaxiswiththelargeruncertainty:
Ifx>y

semimajoraxislengthparalleltox=sqrt(maximum(eigenvalues))*scalefactor

semiminoraxislengthparalleltoy=sqrt(minimum(eigenvalues))*scalefactor

Ify>x

semiminoraxislengthparalleltox=sqrt(minimum(eigenvalues))*scalefactor

semimajoraxislengthparalleltoy=sqrt(maximum(eigenvalues))*scalefactor

7b)Rotatetheellipseradianscounterclockwisefromitsoriginalorientation.

You might also like