Plot a confidence ellipse of a two-dimensional dataset
This example shows how to plot a confidence ellipse of a two-dimensional dataset, using its pearson correlation coefficient.
The approach that is used to obtain the correct geometry is explained and proved here:
https://carstenschelp.github.io/2018/09/14/Plot_Confidence_Ellipse_001.html
The method avoids the use of an iterative eigen decomposition algorithm and makes use of the fact that a normalized covariance matrix (composed of pearson correlation coefficients and ones) is particularly easy to handle.
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patches


