How to create 95 and 99 percent confidence ellipses around my data
109 views (last 30 days)
Here is my code to plot a scatter plot of the data and to plot the eign variable:
X = 3 + 2*randn(500,1)
Y = 2*X + 4*randn(500,1)
How would I create ta function to plot he 95 and 99% confidence ellipses in the same figure as the scatter plot?