Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Correlating data to a given curve 2

Status
Not open for further replies.

peglor

Mechanical
Sep 10, 2002
109
Has Excel a built in function to calculate the level of correlation between a set of data points and a given equation or other set of points?

Since the trendline function for the graphs will already give the correlation coefficient between a given set of data points and a best fit trend line generated by the program for these points.

Is there a way of using a different line to the trendline for the same calculation?
 
Replies continue below

Recommended for you

?You should be able to calculate it yourself, quite easily. Recall the derivation of a least squares fit curve using calculus. Just add up the square of the difference between each data point and what it "should be" (the other line or set of data points that you mentioned?) to get the sum of the square of errors and correlate from there?... it can be done manually once you have the definitions of what you are looking for. I doubt is is built in .. however, defining what you need and programming it into Excel shouldnt be that tough?
Good luck...
 
One thing that should be carefully considered is potentially improper application of least squares regression.

The basic premise is equal weighting of all errors. This may lead to large errors if the data is highly non-linear or if there is a large dynamic range in the data. Linearization prior to fitting may prove to be more useful.

TTFN

 
Thanks melone - that's exactly what I was looking for [spin]

It works in StarOffice anyway, that's all I have access to at the moment.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor