IB Maths Help logoIB Maths Help

Regression & modelling

Compare regression models using R²

After fitting several models (linear, quadratic, exponential…), you need to decide which fits the data best - R² is the key tool.

In short: R², the coefficient of determination, measures the proportion of the variation in y explained by the fitted model, so a value closer to 1 suggests a better fit. Compare R² across candidate models fitted to the same data, but also check the residuals and that the model makes sense in the context of the question.

When you'd use this

TI-84 Plus CECasio fx-CG50 and fx-CG100TI-Nspire CX

At a glance: TI-84 Plus CE, Casio fx-CG50 and TI-Nspire CX compared

 TI-84 Plus CECasio fx-CG50 and fx-CG100TI-Nspire CX
Key sequenceTurn DiagnosticOn first (2nd → 0, scroll to DiagnosticOn, ENTER) - then R² appears after every regression.R² (displayed as r²) appears in the regression output; run CALC → REG for each model type and compare.R² is shown automatically after each regression calculation in the Statistics menu.

On a TI-84 Plus CE

  1. Fit each candidate model in turn and note the R² value each time.
  2. Turn DiagnosticOn first (2nd → 0, scroll to DiagnosticOn, ENTER) - then R² appears after every regression.
  3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context.
  4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

Tip: R² alone doesn't tell you whether the model is appropriate - always look at the scatter plot too. A high R² on a model that shouldn't apply (e.g. sinusoidal for steadily growing data) is meaningless.

On a Casio fx-CG50 and fx-CG100

  1. Fit each candidate model in turn and note the R² value each time.
  2. R² (displayed as r²) appears in the regression output; run CALC → REG for each model type and compare.
  3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context.
  4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

Tip: R² alone doesn't tell you whether the model is appropriate - always look at the scatter plot too. A high R² on a model that shouldn't apply (e.g. sinusoidal for steadily growing data) is meaningless.

On a TI-Nspire CX

  1. Fit each candidate model in turn and note the R² value each time.
  2. R² is shown automatically after each regression calculation in the Statistics menu.
  3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context.
  4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

Tip: R² alone doesn't tell you whether the model is appropriate - always look at the scatter plot too. A high R² on a model that shouldn't apply (e.g. sinusoidal for steadily growing data) is meaningless.

Related guides

Try it yourself

Here's a real IB-style question that uses exactly this technique.

Hard Calculator Paper 2 [4 marks]

For the data (1,2), (2,5), (3,10), (4,17), (5,26), compare a linear and a quadratic model using R², and state which fits better.

Linear R² = 0.963; quadratic R² = 1 (exact fit, since y = x² + 1)
Mark it
Correct 4 / 4 marks
Worked solution & mark scheme:
M1 Run linear regression and record R²
M1 Run quadratic regression and record R²
A1 Linear R² = 0.963
R1 Quadratic model fits better (R² = 1)

Common questions

When would I need to compare regression models using R² in IB Maths?

After fitting several models (linear, quadratic, exponential…), you need to decide which fits the data best - R² is the key tool. You've fitted more than one type of model (e.g. linear and quadratic) to the same data. Deciding which model to actually use in the rest of the question.

How do I compare regression models using R² on a TI-84 Plus CE?

1. Fit each candidate model in turn and note the R² value each time. 2. Turn DiagnosticOn first (2nd → 0, scroll to DiagnosticOn, ENTER) - then R² appears after every regression. 3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context. 4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

How do I compare regression models using R² on a Casio fx-CG50 and fx-CG100?

1. Fit each candidate model in turn and note the R² value each time. 2. R² (displayed as r²) appears in the regression output; run CALC → REG for each model type and compare. 3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context. 4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

How do I compare regression models using R² on a TI-Nspire CX?

1. Fit each candidate model in turn and note the R² value each time. 2. R² is shown automatically after each regression calculation in the Statistics menu. 3. The model with R² closest to 1 explains the most variation in y - but also consider whether the model makes sense for the context. 4. An exponential model with R² = 0.98 is better than a linear model with R² = 0.91 for the same data.

What should I watch out for when I compare regression models using R²?

R² alone doesn't tell you whether the model is appropriate - always look at the scatter plot too. A high R² on a model that shouldn't apply (e.g. sinusoidal for steadily growing data) is meaningless.

How are marks awarded when I compare regression models using R² in an IB exam?

In the worked example on this page (4 marks, Paper 2), the marks are: M1: Run linear regression and record R²; M1: Run quadratic regression and record R²; A1: Linear R² = 0.963; R1: Quadratic model fits better (R² = 1).

Practise with your calculator

Questions that need this technique link back to this guide. Try one in practice mode, or see every GDC guide.