Hey, for my project, I need to make a line of best fit, and to do that I am going to need to take the 5 sets of coordinates and find the middle number. For example,
X | Y
1 10
2 8
3 4
4 6
5 1
What i mean by middle number would be: for X it would be 3 and for Y it would be 6. (EDITED TO MAKE IT MORE CLEAR) IS there a mathematics formula I could use? Or a piece of coding that would determine this for me? Thanks.
P.S - Yes I know that "Middle Number" isnt correct terminology, I just cant think of the correct term right now
Thanks for the help guys, Ive finished my final product that im handing in! It works, though it is not an exact line of best fit, it represents one, which is what the lab required! Have a look!