Math 141 · Lesson 10
Function Family Explorer
Lay a linear, exponential, power, sine or sigmoid model over a dataset on the standard, semi-log and log-log plots at once. Move a parameter and the curve changes on all three plots.
About this tool
The tool draws the data on three plots: the standard plot , the semi-log plot and the log-log plot . The model’s curve is drawn on all three plots, each in that plot’s own axes.
The model families are linear, exponential, power, sine and sigmoid, in these forms:
- Linear,
- Exponential,
- Power,
- Sine,
- Sigmoid,
A linear, exponential or power model starts as a rising line through the middle of the data on the plot where that model is linear. The exponential model starts with at the smallest input. The sine model starts with one period across the data. The sigmoid model starts as an S that rises through the middle half of the data’s height.
The datasets are WorldPopulation, Mortgage30YrAnnual, EngineRPM, TemperaturesDanville, TwitterUsers3, NaturalGasConsumption, Hawaii and BodyMassMetabolicRate. is undefined for an output of 0 or below (Hawaii) and for an input of 0 or below (TemperaturesDanville, Hawaii). A log plot with such values is replaced by a note.
On Year data, in is the output at Year 0. Changing pivots the line about Year 0, far from the data. A change in can move the line out of view on all three plots. For a power model on Year data, changing pivots the curve about Year 1 in the same way.
Show R gives code that draws the same three plots in RStudio with the same values: plotPoints() for the data and plotFun(..., add = TRUE) for the curve.
Under More:
- Kept curve. Keep this curve draws a dashed copy of the current curve on all three plots.
- Log forms. The exponential model is written as and the power model as , with the current , and . The value of is left unevaluated.
- More datasets. SunsetGreenwich (Lesson 8) and NetherlandsPopulation (Lesson 9) are added to the dataset list while More is open.
Keys: press an arrow key on a slider to move it about 1% of its width. Hold Shift with an arrow key to move it by the finest step.