Calculates on this device. File exports run online.
Experimental Data Plotter
Paste your measurements as x and y, with the uncertainty of each y if you have it, and see them on a chart with the fit you choose: a straight line, a line through zero, a quadratic or cubic, or an exponential, power or logarithmic curve, with each parameter’s standard error, R² and the residuals. For repeated measurements you get the mean, standard deviation and 95% confidence interval at each x. The box below makes a figure file with error bars and fits peaks, dose-response curves and other models.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose the button below them.
Your result
How it was worked out
How to use it
- Paste the data, one point on each line: x, y and, if you have it, the uncertainty of y. A first line of words names the axes.
- Choose the fit. Tick Use the uncertainties as weights when each point has its own uncertainty.
- Press Plot and fit and read the parameters with their standard errors, R² and the residuals in the table.
- For a figure for a report, use the box below: PNG, SVG or PDF, with error bars.
How the fit is worked out
- Least squares: the parameters that make the sum of the squared residuals (y − fitted y) smallest, solved with a QR factorization. With weights, each squared residual counts 1 ÷ (its uncertainty)², and the standard errors take the uncertainties as absolute; the reduced χ² near 1 says the uncertainties fit the scatter.
- Exponential and power curves are fitted here as straight lines of ln y; that gives small values of y more weight. The box below fits them in the units of y by nonlinear least squares.
- R² = 1 − (sum of squared residuals ÷ total sum of squares about the mean). For a line through zero the sum of squares is taken about zero.
Limits
- A good R² does not prove that the model is right: look at the residuals for a pattern.
- The fit is only as good as the model you choose; it does not pick a model for you.
- The 95% confidence intervals of repeated measurements assume independent, roughly normal measurements.