Study Guide

Real-world modeling with functions

IB Mathematics: Applications and Interpretation SLΒ· Unit 2: Functions, Topic 2.8 ApplicationsΒ· 15 min read

1. Translating Context to Function Modelsβ˜…β˜…β˜†β˜†β˜†β± 4 min

The first step in any modeling problem is to clearly define your variables. All variables must be stated in context with units to meet exam marking requirements.

πŸ“˜ Definition

Function model

A function that describes the relationship between variables in a real-world scenario, usually fitted to observed data.

Example:

, where = distance (km) and = time (hours)

πŸ“ Worked Example

A cafΓ© sells 120 sandwiches at $4 each, and 80 sandwiches at $6 each. Assume the relationship between price and number sold is linear. Write the model for in terms of .

  1. 1

    We have two points on the line: and . First calculate the gradient:

  2. 2
    m=n2βˆ’n1p2βˆ’p1=80βˆ’1206βˆ’4=βˆ’20m = \frac{n_2 - n_1}{p_2 - p_1} = \frac{80 - 120}{6 - 4} = -20
  3. 3

    Substitute and one point into to find the intercept :

  4. 4
    120=(βˆ’20)(4)+cβ€…β€ŠβŸΉβ€…β€Šc=200120 = (-20)(4) + c \implies c = 200
  5. 5

    State the full model with defined variables:

  6. 6
    n=βˆ’20p+200where n=number sold,p=price (USD)n = -20p + 200 \quad \text{where } n = \text{number sold}, p = \text{price (USD)}

Exam tip:

Always define your variables with units before writing the model β€” this is almost always worth 1 mark.

2. Fitting Models and Checking Validityβ˜…β˜…β˜…β˜†β˜†β± 5 min

Most IB modeling questions require you to use your GDC to fit a function to given data. After fitting, you check how well the model matches data using the coefficient of determination .

πŸ“ Worked Example

Plant height (cm) after weeks: . Use GDC to fit a linear model and comment on fit.

  1. 1

    Enter data into GDC linear regression. The output gives:

  2. 2
    h=2.01t+0.05,R2=0.999h = 2.01t + 0.05, \quad R^2 = 0.999
  3. 3

    Interpret the result: is almost 1, so the linear model is an excellent fit for this observed data.

βœ“ Quick check

Test your understanding of :

  1. Which value shows the best model fit?

    • 0.5

    • 0.92

    • 0.99

    • -0.2

    Reveal answer
    0.99 β€”

    Correct! ranges from 0 to 1, with 1 being a perfect fit to existing data.

3. Interpolation vs Extrapolationβ˜…β˜…β˜…β˜†β˜†β± 4 min

Once you have a model, you can use it to estimate unknown values. The reliability of your prediction depends on whether the estimate falls inside or outside the range of your original data.

πŸ“˜ Definition

Prediction reliability

How confident we can be that a model's prediction matches the real-world value. Interpolation within the data range is almost always more reliable than extrapolation outside the range.

Example:

Predicting a 25-year-old's height from data for 1-18 year olds is extrapolation, and likely unreliable.

πŸ“ Worked Example

Using the plant model , predict height after 10 weeks and comment on reliability. Original data is for to .

  1. 1

    Substitute into the model:

  2. 2
    h=2.01(10)+0.05=20.15 cmh = 2.01(10) + 0.05 = 20.15 \text{ cm}
  3. 3

    Comment on reliability: is outside the original data range, so this is extrapolation. Plant growth slows and stops over time, so the linear trend will not continue. This prediction is unreliable.

Exam tip:

Always explicitly name your prediction as interpolation or extrapolation when asked to comment on reliability.

4. Interpreting Model Parameters in Contextβ˜…β˜…β˜…β˜†β˜†β± 4 min

IB exams very frequently ask you to interpret the gradient, intercept, or growth factor of a model in context. You must always reference the variables and context to earn full marks.

πŸ“ Worked Example

A linear model for car value is , where is value (USD) and is age (years). Interpret the gradient and intercept in context.

  1. 1

    Interpret the intercept (when , the car is new): The intercept is 20000, so the original value of the new car is $20,000.

  2. 2

    Interpret the gradient (rate of change of value with age): The gradient is -2500, so the value of the car decreases by $2,500 per year on average.

5. Common Pitfalls

Wrong move:

Forgetting to define variables with units before writing the model

Why:

Examiners almost always allocate 1 mark for clear variable definition, which you will lose if you skip this step

Correct move:

Always start your answer by stating what each variable represents, including its units

Wrong move:

Claiming extrapolation is always unreliable without justification

Why:

Extrapolation can be reliable if the trend is known to continue beyond the data range; you need to reference the context

Correct move:

Explicitly name the prediction as extrapolation, then explain whether the trend is likely to continue in context

Wrong move:

Interpreting a negative gradient as an error

Why:

A negative gradient simply means the dependent variable decreases as the independent variable increases, which is often correct

Correct move:

Interpret the sign according to context: a negative gradient for car value means the value depreciates (decreases) over time, which makes logical sense

Wrong move:

Assuming a high means extrapolation is reliable

Why:

A high only confirms the model fits the existing data, it does not guarantee the trend continues beyond the data range

Correct move:

Always judge extrapolation reliability based on the context of the problem, not just

6. Quick Reference Cheatsheet

Step

Required Action

Exam Tip

1

Define variables with units

Almost always worth 1 mark

2

Find/fit the function equation

Double-check GDC data input

3

Check fit with

= good fit to data

4

Make prediction

State if interpolation/extrapolation

5

Comment on reliability

Extrapolation needs context justification

6

Interpret parameters

Always reference context and units

7. Frequently Asked

Is extrapolation always unreliable?

No, but it requires justification. Extrapolation assumes the trend you observed continues beyond your data range. Always comment on whether this assumption makes sense for the context.

When this came up on past exams

AI-estimated based on syllabus patterns β€” cross-check with official past papers for accuracy. Use only as revision-focus signals.

  • 2021 Β· 1

    Linear model for temperature change

  • 2022 Β· 2

    Exponential model for population growth

Going deeper

What's Next

Real-world modeling with functions is a core skill that appears in every paper of IB AI SL, and forms the foundation for future topics including statistical regression, sequences and series growth models, and calculus applications to rates of change. This skill is also frequently assessed in internal assessment (IA) projects, where you will be expected to create your own model for a real-world dataset you choose. Mastering the process of translating context to a mathematical model, checking fit, and commenting on prediction reliability will earn you easy marks on almost every exam paper, and set you up for success in your IA.