Quarry School

Choosing a model for data

Subject: MathematicsLeans on: Ratios of consecutive valuesLeans on: Logarithms of powers of 2
Level 1 · FoundationsAbout 7 min read5 new terms
How this was estimated

Programmatic estimate. Rung levels, worked steps, prerequisites, terms and sentence length contribute to this level. It describes the lesson, not your ability.

Reading counts the whole lesson, including folded explanations, at 180 words a minute. Practice allows two minutes per item. These are planning assumptions; take the time you need.

AI estimate unavailable.

Path to here

Open the unit’s lesson list to follow the lesson order.

    Quick review (2 minutes)

    In plain words

    Before fitting a formula to data, read its shape.

    Rule

    Equal x-steps with constant differences: linear. Equal x-steps with positive y and a constant ratio other than 1: exponential. Positive x multiplied by a fixed factor other than 1, with equal nonzero additions in y: logarithmic. Slow, then fast, then leveling off at a ceiling: an S-shape, for which a logistic model is a candidate; a logistic formula that matches the data fits those observations.

    Step

    1. For the linear and exponential tests, use x-values in equal steps.

    2. Compute differences of consecutive y-values; constant differences fit a linear model.

    3. If every y is positive, compute ratios of consecutive y-values; a constant ratio other than 1 fits an exponential model.

    4. For the logarithmic test, use positive x-values that multiply by a fixed factor other than 1 and look for equal nonzero additions in y; otherwise look for an S-shape that bends toward a ceiling (logistic).

    Question

    For x = 0, 1, 2, 3 the data are y = 5, 7.5, 11.25, 16.875. Choose a model and write it. In plain words: test differences, then ratios.

    Answer

    exponential: y = 5 · 1.5x

    Trap

    Calling every curve that bends exponential. Data of the form y = a · bx have a constant ratio at equal x-steps (a shifted model such as 20 + 70e−kt has constant ratios in y − 20 instead); logarithmic and logistic data bend too, and linear, exponential and logarithmic data can fall as well as rise (a negative slope, exponential decay, a negative coefficient on log x); only the logistic growth model of this unit always rises.

    Term

    logistic model

    Definition

    P(t) = c1+ae−bt with c, a, b > 0: growth that levels off at c; when it starts far below c (a much larger than 1) it begins nearly exponential.

    1 In plain words

    Before fitting a formula to data, read its shape. Equal steps in x that add the same amount to y point to a linear model. Equal steps in x that multiply a positive y by the same factor other than 1 point to an exponential model. A y that rises quickly and then more and more slowly, adding the same amount each time x is multiplied by the same factor, points to a logarithmic model. A y that rises slowly, then quickly, then levels off at a ceiling points to a logistic model. It is like telling birds apart by their song before you look for their names: the pattern comes first.

    2 Picture it

    equal x-steps, constant differences: linear

    equal x-steps, positive y, a constant ratio other than 1: exponential

    positive x multiplied by a fixed factor other than 1, equal nonzero additions: logarithmic

    an S-shape toward a ceiling: try a logistic model

    Reminder

    Reminder: Ratios of consecutive values, Logarithms of powers of 2
    • Ratios of consecutive values. Divide each y-value by the one before it: 9 ÷ 6 = 1.5.
    • Logarithms of powers of 2. log2 1 = 0, log2 2 = 1, log2 4 = 2, log2 8 = 3.

    3 Why

    Each model has a signature. a + mx adds m for each unit step in x. a · bx multiplies by b for each unit step. a + c log x adds c log k whenever x is multiplied by k. A logistic model's growth is fastest at half its ceiling, or at the start if it starts at or above half, and fades toward 0 near the ceiling. Testing differences, ratios and the behavior near the top checks those signatures.

    4 The rule

    Equal x-steps with constant differences: linear.

    Equal x-steps with positive y and a constant ratio other than 1: exponential. Positive x multiplied by a fixed factor other than 1, with equal nonzero additions in y: logarithmic. Slow, then fast, then leveling off at a ceiling: an S-shape, for which a logistic model is a candidate; a logistic formula that matches the data fits those observations.

    The same idea, other ways

    With differences and ratios

    For x = 0, 1, 2, 3: y = 4, 7, 10, 13 has differences 3, 3, 3: linear. y = 4, 6, 9, 13.5 has ratios 1.5, 1.5, 1.5: exponential.

    input xoutput y041629313.5
    Constant ratios: each y is 1.5 times the one before.
    With doubling x

    For x = 1, 2, 4, 8: y = 2, 5, 8, 11 adds 3 each time x doubles. That is y = 2 + 3 log2 x, a logarithmic model.

    With a ceiling

    y ≈ 10, 23.2, 45.1, 69.1, 85.8, 94.3 for x = 0 to 5 grows slowly, then fast, then slows. Neither differences nor ratios are steady, and the values bend toward a ceiling: they are values of 1001+9e−x, a logistic model with ceiling 100.

    5 How

    1. For the linear and exponential tests, use x-values in equal steps.
    2. Compute differences of consecutive y-values; constant differences fit a linear model.
    3. If every y is positive, compute ratios of consecutive y-values; a constant ratio other than 1 fits an exponential model.
    4. For the logarithmic test, use positive x-values that multiply by a fixed factor other than 1 and look for equal nonzero additions in y; otherwise look for an S-shape that bends toward a ceiling (logistic).

    6 Worked example

    Worked example

    Ratios point to a formula

    For x = 0, 1, 2, 3 the data are y = 5, 7.5, 11.25, 16.875. Choose a model and write it. In plain words: test differences, then ratios.

    Show the steps and the answer
    1. Differences: 2.5, 3.75, 5.625, not constant.So the model is not linear.
    2. Ratios: 7.55=1.5,11.257.5=1.5,16.87511.25=1.5, constant.Equal x-steps, positive y and a constant ratio other than 1 fit an exponential model.
    3. y=5·1.5x.The value at x = 0 is a = 5 and the ratio is b = 1.5.
    Answer
    • exponential: y = 5
    • 1.5x
    Double-check 5 · 1.5x at x = 0, 1, 2, 3 gives 5, 7.5, 11.25, 16.875, the data.

    Ladder: from easy to exam-hard

    Try each rung before you open its steps.

    Rung 1 of 4

    Linear

    x = 0, 1, 2, 3 and y = 3, 7, 11, 15. Which model fits?

    Show the steps and the answer
    1. Differences: 4, 4, 4.Subtract consecutive y-values.
    2. Constant differences mean linear: y=3+4x.Start 3, slope 4.
    Answer
    linear, y = 3 + 4x
    Double-check 3 + 4x at x = 0, 1, 2, 3 gives 3, 7, 11, 15, the data.

    Rung 2 of 4

    Logarithmic

    x = 1, 2, 4, 8 and y = 2, 5, 8, 11. Which model fits?

    Show the steps and the answer
    1. Each time x doubles, y goes up by 3.Consecutive x-values have the ratio 2 (1, 2, 4, 8), and consecutive y-values have the difference 3 (2, 5, 8, 11).
    2. y=2+3 log2 x.At x = 1, log2 1 = 0, so the constant is 2; each doubling adds 3.
    Answer
    logarithmic, y = 2 + 3 log2 x
    Double-check At x = 1, 2, 4, 8, log2 x is 0, 1, 2, 3, so y is 2, 5, 8, 11, the data.

    Rung 3 of 4

    Logistic

    x = 0 to 5 and y ≈ 10, 23.2, 45.1, 69.1, 85.8, 94.3. Which kind of model fits?

    Show the steps and the answer
    1. Differences: 13.2, 21.9, 24.0, 16.7, 8.5: they rise and then fall.At equal steps of x a linear model has equal differences. These are unequal, so a line does not fit.
    2. Ratios: about 2.32, 1.94, 1.53, 1.24, 1.10: falling toward 1.At equal steps of x an unshifted exponential model a · bx has equal ratios. These are unequal, so it does not fit.
    3. Slow, then fast, then slowing toward a ceiling.An S-shape makes a logistic model a candidate; the check shows a logistic formula fits the table.
    Answer
    logistic
    Double-check 1001+9e−x at x = 0, 1, 2, 3, 4, 5 gives 10.0, 23.2, 45.1, 69.1, 85.8, 94.3 to one decimal, the data; for example, at x = 3, 9e−3 ≈ 0.44808 and 1001.44808 ≈ 69.1.

    Rung 4 of 4

    Exponential decay

    x = 0, 1, 2, 3 and y = 64, 48, 36, 27. Choose a model and write it.

    Show the steps and the answer
    1. Ratios: 4864=0.75,3648=0.75,2736=0.75.Constant ratios.
    2. y=64·0.75x, a decay because 0.75 < 1.a = 64 and b = 0.75.
    Answer
    • y = 64
    • 0.75x
    Double-check 64 · 0.75x at x = 0, 1, 2, 3 gives 64, 48, 36, 27, the data.

    Counterexamples

    What it is not, and the tempting wrong moves.

    ✗ Not this: y = 2, 5, 8, 11 at x = 1, 2, 4, 8 is linear because it goes up by 3.
    The x-steps are not equal: x doubles each time.
    ✓ Instead: Equal additions when x doubles: logarithmic.
    ✗ Not this: y ≈ 10, 23.2, 45.1, 69.1, 85.8, 94.3 at x = 0 to 5 is exponential because it grows fast.
    Its ratios fall from about 2.32 toward 1 and it bends toward a ceiling.
    ✓ Instead: Logistic: 1001+9e−x.

    Tips and tricks

    • Equal x-steps, constant differences: a linear fit.
    • Equal x-steps, a constant positive ratio other than 1: an exponential fit.
    • Doubling a positive x adds the same nonzero amount: try a logarithmic model.

    7 The trap

    Calling every curve that bends exponential. Data of the form y = a · bx have a constant ratio at equal x-steps (a shifted model such as 20 + 70e−kt has constant ratios in y − 20 instead); logarithmic and logistic data bend too, and linear, exponential and logarithmic data can fall as well as rise (a negative slope, exponential decay, a negative coefficient on log x); only the logistic growth model of this unit always rises.

    Flash cards

    Say the answer out loud, then flip.

    y = 2, 6, 18, 54 at x = 0, 1, 2, 3. Which model?
    • Exponential: the ratio is 3, so y = 2
    • 3x.
    y = 1, 3, 5, 7 at x = 1, 10, 100, 1,000. Which model?
    Logarithmic: y = 1 + 2 log x.
    What shape suggests a logistic model?
    • An S-shape: slow growth, then fast, then a leveling off at a ceiling. A logistic formula that matches the data fits those observations
    • other S-shaped models exist.