

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
How to use microsoft excel's linest function to determine the slope and intercept of a trendline, along with their uncertainties, which is particularly useful in physics. Step-by-step instructions on how to use the function and interprets the results.
Typology: Lecture notes
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Microsoft Excel ™^ is particularly convenient for organizing data, manipulating data and ultimately for displaying graphs of ordered pairs of data. The trendline feature in Excel makes identifying the “best- fit line” nearly completely effortless. The equation of the trendline can be displayed on the chart by clicking on the “options” menu at the appropriate stage while developing the graph and then clicking on the box labeled “display equation on sheet”. Alternatively, you can right-click [control-click on Macintosh] on the best fit line on an existing graph and select “Add Trendline” or “Trendline Options” to access this feature. Information on the slope and intercept of the trendline are reported on the finished product. But for many circumstances in physics, this is not enough! We often need to also know the uncertainties in these quantities.
It turns out that Excel has a particularly convenient utility for carrying out such calculations: A function called LINEST (which stands for LINE STatistics). To access the uncertainties in the slope and intercept do the following:
=LINEST(ydata,xdata,true,true)
NOTE: “ydata” indicates the cell numbers corresponding to the range of y data ( e.g. – it might read B2:B10 if you have y data in cells B2, B3,…,B10). The words “true” ought to literally appear as true comma true.
The figure to the right shows someone entering the appropriate line (except for the final parenthesis).
Showing the result of “right-clicking” on the data in a plot in Excel to access the Trendline feature.
As shown in the figure to the right, a 2 5 matrix of numbers should appear in the highlighted cells. The upper left column is the slope, while the upper right number is the intercept. The second row holds the uncertainties in those numbers. In particular, the uncertainty in the slope is the second number down from the top in the left-most column. For the example from the figure, a zoomed in version of the figure labels all the values below.
You are at this stage prepared to report the slope as well as the uncertainty in this slope. It is as simple as that!
The results of LINEST(ydata,xdata,true,true)identified.