• 0

Line of best fit in Excel


Question

Right, so I have biology coursework to do and i've decided to do it on the PC rather than by hand for reasons most people know. Now, the graph that we have all drawn by hand looks mostly like the scatter graph that Excel has generated for me, given this set of results for our experiment:

post-176093-1162125887.png

But, for full marks, it needs to be a line of best fit, whereas the graph that Excel has made is a simple line join:

post-176093-1162125877_thumb.jpg

I am using Excel 2007 Beta 2. Any ideas guys?

Thanks a lot,

Alex.

Edited by Alex-Jones
Link to comment
https://www.neowin.net/forum/topic/507500-line-of-best-fit-in-excel/
Share on other sites

16 answers to this question

Recommended Posts

  • 0

I think this may be what your looking for.

1. Be sure you are on the worksheet which contains the chart you wish to work with.

2. Move the mouse cursor to any data point and press the left mouse button. All of the data points should now be highlighted. Now, while the mouse cursor is still on any one of the highlighted data points, press the right mouse button, and click on Add Trendline from the menu that appears.

3. From within the "Trendline" window, click on the box with the type of fit you want (e.g., Linear).

4. Click on Options at the top of the "Trendline" window.

5. Click in the checkbox next to "Display Equation on Chart" and the checkbox next to "Display R-squared Value on Chart". Do not click on the checkbox next to "Set Intercept = 0".

6. Click OK. A line, an equation, and an R-squared value should appear on the graph

  • 0

Well, I guess it depends on hypothesis. With completely unpredictable results (that ones you cannot explain from your theoretical estimates) simple line plot would be acceptable. But if you have some extimations you can use moving average estimator (what Excel does) or can use spline interpolation (you need scientific packages like MATLAB, Maple, Mathematica or MathCAD). Chosing high-order polinomials for trending data can lead to reverse improper results.

  • 0

The regression techniques are doing they are supposed to do...not all the data points will fall on the trend line. If you think the trend line is to low, the only way to "manually" adjust it is to give it altered values for the regression. Remove the anomalous 55 degree one. That will definitely adjust that fourth order polynomial to be closer to the maxima.

  • 0

In this particular case with anomalous point the best way is to simply exclude it from the set as suggested earlier. Or just move the plotted line the way it should go from your personal guess-works (just drag the plotted curve and Excel will automatically change the data point value). Then you can plot the trend again.

With more complex case you need to do best-fit analysis. The simple example can be found here.

If you need to proceed such tasks frequently I recommed to look at Curve Fitting toolbox.

Of course, the higher the polynom order the closer it goes to the points but it doesn't matter that a*x^256+x^12+b fits best than x^3+1293x+c because the first one will go the false way.

  • 0

because it looks like an anomaly (spelling ?) to me..

EDIT - i think 50 - 55 is some wat anonamous.

The top result is not an anomoly as it is the best temperature for protease to digest protein at. However, 55 is. I will exclude it in the graph, thanks guys. :)

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.