Skip to content

Example functions for modeling data

The elementary functions in the Tuva function editor, each fit to a small example dataset.

Last reviewed: November 2020

The function editor fits linear and non-linear functions to a scatter plot. This page shows seven of them, each with the constants fit to a small example dataset.

To try one, drag two numeric attributes onto the axes, open the Model Data menu in the toolbar and choose f(x). In the Modeling Card, use the arrow next to the formula (Select Predefined Functions) to pick a function, then change its constants. For the steps, see Create a non-linear model.

The example data are made up for this page, except the planet orbits, which are real values. The menu also holds variants of these functions, such as a shifted parabola, y = a·(x − h)^2 + k.

y = m·x + b

A line fit to temperature against time, rising about 6.5 degrees Celsius per minute from 20 degrees at the start

y = k/x

An inverse curve fit to gas volume against pressure, falling steeply at low pressure and flattening as pressure rises

y = a·x^2

A parabola fit to kinetic energy against time, starting flat at zero and climbing faster as time passes

y = a·x^p

A power-law curve fit to planet year length against distance from the Sun, with p close to 1.5

y = a·√x

A square-root curve fit to bundle circumference against number of straws, rising quickly and then leveling off

y = a·b^x

An exponential curve fit to bacteria count against time, nearly flat at first and then climbing steeply

y = a·sin(x)

A sine wave fit to the height of a Ferris wheel seat against the angle turned, peaking near 8 meters and dipping to about -8 meters

Was this page helpful?