markraz
Full Member
- Joined
- Feb 19, 2014
- Messages
- 338
Hi, I have a bunch of points in form of x,y (0, 1), (2, 5), (1, 6), and (7, 6)
and I'm trying to understand circle regression using least squares. I can't find any examples anywhere. But I did find this picture of a matrix that might do the trick.
So I think I first need to understand these summation terms within the matrix
row1 column1 it is Sum( xi^2) = does this mean I add all the x values up and square them? or do I square all the x values and then add them?
row1 column2 it is Sum( xi yi) = does this mean I multiply all the points first and then sum them? {(x1 * y1) + (x2 * y2) + (x3 * y3)+ (xn * yn).......} ??
so ..... sum{(0 * 1) + (2 * 5) + (1 * 6)+ (7 * 6)}
row 1 column3 it is Sum( xi) = does this mean I add all the x values? 0 + 2 + 1 +7
row 3 column 3 it is n = do I just put the number of points here? (4 in my case)
the rest are similar to above
thanks in advance
and I'm trying to understand circle regression using least squares. I can't find any examples anywhere. But I did find this picture of a matrix that might do the trick.
So I think I first need to understand these summation terms within the matrix
row1 column1 it is Sum( xi^2) = does this mean I add all the x values up and square them? or do I square all the x values and then add them?
row1 column2 it is Sum( xi yi) = does this mean I multiply all the points first and then sum them? {(x1 * y1) + (x2 * y2) + (x3 * y3)+ (xn * yn).......} ??
so ..... sum{(0 * 1) + (2 * 5) + (1 * 6)+ (7 * 6)}
row 1 column3 it is Sum( xi) = does this mean I add all the x values? 0 + 2 + 1 +7
row 3 column 3 it is n = do I just put the number of points here? (4 in my case)
the rest are similar to above
thanks in advance
Last edited: