## Making the logistic formula more versatile, stage two—different step sizes, up/down shifts

Transitions that follow a logistic pattern need not involve only steps from zero to one. To complete our generalization of the logistic formula, we will add parameters that let us adjust the curve to take other step sizes, and to have other baselines.

Both new parameters are straightforward to implement mathematically. To make the amount of vertical change something different than 1, we will multiply the simple formula by a scale factor. We will call this the height parameter since the curve will now have y values ranging from zero to height.

Moving the baseline up or down is even simpler mathematically. We will add a floor parameter to the scaled formula. Positive values for floor will move the curve up; negative values for floor will move the curve down. (Note that we add floor at the very end. It is not multiplied by height.)

So the full logistic model we have constructed has four parameters, and lets the data (via the model-fitting process) determine what their values are:

• rate (cell G3) The controls the slope of the graph at the midpoint, which reflects how fast (and in which direction) the transition occurs. The slope at the midpoint equals rate×height.
• center (cell G4) — The midpoint of a transition is not usually at an input value of zero, even though the midpoint of the graph will be when the exponent expression is equal to zero. The formula can be made to reflect this by subtracting a center parameter from the input variable x.
• height (cell G5) — The amount of change in output will not always be 1.0. Multiplying the basic logistic model by a height scaling parameter will make its values go from zero to height instead of from zero to one.
• floor (cell G6) Not all transitions have zero as the lower limit for the output value. We can allow for this with a floor parameter that is always added to the basic logistic formula.

The resulting full logistic model formula is $y=\frac{height}{1+{{0.018316}^{rate\cdot(x-center)}}}+floor$

Corresponding spreadsheet formula:=$G$5/(1+0.018316^($G$3*(A3-$G$4)))+$G$6

Example 3: Fit a full logistic model to the dataset to the right showing water temperature during the first 10 seconds after a hot-water faucet is opened, then answer these questions about the model:

[a] What real-world quantity corresponds to the floor parameter? What is its value for the best-fit model for this data?

[b] What real-world quantity corresponds to the center parameter? What is its value for the best-fit model for this data?

[c] How can you compute an estimate of the hot-water temperature from the best-fit parameters? What is its value in this case?

[d] How fast was the water warming up when the water temperature was halfway through the transition?

 Water Temperature Seconds Degrees F 1 68.8 2 68.7 3 70.9 4 86.9 5 115.5 6 124.5 7 125.4 8 125.5 9 125.7 10 125.7

[i] Use the General Model template to make a logistic worksheet, using the formula shown above.Solution approach:

[ii] Copy the data to the worksheet and make a graph of data and model.

[iii] Preset to approximate values to speed up Solver’s search: rate=1, floor=70, height=55, center=4

[iv] Use Solver to find the best-fit parameters.