Professional Documents
Culture Documents
Experiment:: Graphing and Curve Fitting
Experiment:: Graphing and Curve Fitting
Experiment:: Graphing and Curve Fitting
Curve fitting
If we expect a linear relationship between the x and y coordinates of N points,
but admit that our measurements may not be too accurate, we might try to sketch a
“best fit” straight line passing as close as possible to each point. Let the equation of
the supposed line be y = Ax + B, where A and B are constants, the slope and y-
intercept respectively. For any given point, [xj,yj] , its displacement is the vertical
distance between the point and the “best fit” line: yj – (Axj + B). This may be positive
or negative, as the point is above or below the line. For “best fit”, the sum of the
absolute value or of the square of these displacements should be a minimum.
To find the standard deviation, substitute these A and B values into (3) and take the
square root.
Procedure:
1. Use the computer program CURV-FIT.EXE to generate your personal set of 10
data points, based on your own birthday. Print these of copy them from the
screen display.
2. Graph these points manually on a graphing paper (DO NOT copy the graph
generated by the computer.).
3. Make your own table (refer to the given table in page 4) in the same sheet as
your graph or a separate one and input your [x,y] data values.
4. With a calculator, fill in values for all the remaining table locations, DO NOT
COPY THE GENERATED COMPUTER VALUES. Next find the A and B values.
Use these values to draw the “best fit” straight line. Also find the Standard
Deviation (Std. Dev.) value.
5. Your manual graph, accomplished table (hand-written), a screenshot of the
generated computer values and graph must all be presented in III. Data and
Results of your lab report (all pasted as images). 6. Submit your final laboratory
report as a pdf file.