I am trying to figure out what FittedModels`ParameterEllipsoid
's parameters mean (I want to construct a filled ellipse)
Here is a minimum working example:
data = {{0, 0}, {1, 1}, {2, 2}, {3, 1}, {4, 0}};
model = a + b x^2;
nlfit = NonlinearModelFit[data, model, {a, b}, x];
nlfit["ParameterConfidenceRegion"]
returns:
FittedModels`ParameterEllipsoid[{1.0069,-0.0344828},{2.60148,0.215202},{{-0.996379,0.0850249},{-0.0850249,-0.996379}}]
Graphically spelunking to find what those parameters mean:
Graphics[
{
nlfit["ParameterConfidenceRegion"],
PointSize[0.01],
Blue,
Text["P1", p1 = {1.0068, -0.0344}],
Orange,
Text["P2", p2 = {2.6014, 0.215202}],
Red,
Text["P3", p3 = {-0.9963, 0.0850}],
Magenta,
Text["P4", p4 = {-0.0850, -0.9963}]
},
Frame -> True, AspectRatio -> 1]
The first point is likely the ellipse center. The third point might be one of the foci.
I tried investigating where the second and fourth points come from. They look like normals because their magnitude is about 1–but nothing obvious pops up, and
Normalize[(p3 - p1)]
doesn't return p4
or p2
.
What do the parameters of FittedModels`ParameterEllipsoid[a, b, {c, d}]
mean?
{{-0.996379, 0.0850249}, {-0.0850249, -0.996379}}
is a rotation matrix. $\endgroup$