Question

The goal of this problem is to determine the semi-axes a and b of the elliptical orbit, and its eccentricity e=\sqrt{1-\frac{b^{2}}{a^{2}}} \text { The equation of an ellipse is: } \frac{x^{2}}{a^{2}}+\frac{y^{2}}{b^{2}}=1 \text {. } The problem can be formulated as finding the least squares solution for a system la = b. What are A and b (give symbolic forms)? b,Solve the least squares problem using Python or MATLAB. Give the values for a,and e. On the same plot, plot the original data as points alongside a curve representing the least squares model of the ellipse.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5

Fig: 6

Fig: 7