Question: Plotting a regression line from data points in the "wrong" form.

Hi guys. I have a sets of N data points in the form [x_component(1), y_component(1)], [x_component(2), y_component(2)], ... [x_component(N), y_component(N)] that I want to plot as points and draw the regression line through them. I know how to plot the regression line with the data points in the form [x_component(1), x_component(2), ..., x_component(N)] and [y_component(1), y_component(2), ..., y_component(N)] So my question is how to isolate all the x components and all the y components from my data points? Alternatively how do I draw a regression line through the point in the first form? Thanks so much Tom
Please Wait...