Skip to main content

How to do linear, exponential, power, polynomial, sine and logistic regression on the Casio fx-CG50

Least-squares lines and curves: linear, exponential, power, quadratic, cubic, sinusoidal and logistic models. Exact keystrokes for the fx-CG50 first, then the other calculators, a worked example you can check your answers against, the mistakes that cost marks, and the same thing in Desmos.

Calculators: Casio fx-CG50 (OS 3.80) · TI-84 Plus CE (OS 5.8.x) · TI-Nspire CX II (OS 6.x) · Casio fx-991EX ClassWiz (the fixed ROM) · Casio fx-991CW ClassWiz (the fixed ROM). Checked September 2026.

When you need it

A Level uses the regression line (y on x) in the large data set questions and in IAL S1, and logarithms to turn y = axⁿ and y = abˣ into straight lines. The calculator's power and exponential regressions check that work.

Practise it: Statistical sampling and data · Exponentials and logarithms · IAL S1.

Keystrokes on your calculator

Pick your calculator: the page remembers it next time.

Regression on the Casio fx-CG50

Written for OS 3.80 (menus unchanged from OS 3.60 onwards as far as we can tell). Casio fx-CG50: graphic (GDC).

  1. MENU 2 (STATISTICS). Type the x values into List 1 and the y values into List 2, pressing EXE after each. (Clear an old list first: highlight the list, F6 (▷) F4 (DELETE-ALL) F1 (Yes).)
  2. F2 (CALC) F6 (SET): 2Var XList = List1, 2Var YList = List2, 2Var Freq = 1. EXIT.
  3. F3 (REG) F1 (X) F1 (ax+b). The screen shows a, b, r, r² and MSe.
  4. Other models from the REG menu: F3 (X²) quadratic, F4 (X³) cubic; F6 (▷) then F1 (Log), F2 (Exp: F1 ae^bx or F2 ab^x), F3 (Pwr) axᵇ, F4 (Sin), F5 (Lgst) logistic.
  5. F5 (COPY) pastes the equation into the GRAPH Y= list; F6 (DRAW) plots it over the scatter diagram.
LinearReg(ax+b)a =1.97714285b =1.08r =0.99919073r²=0.99838212COPYDRAW
Schematic fx-CG50 screen (not a photo); the bottom row is what F1–F6 do here.
  • Sin regression: set SHIFT MENU (SET UP) → Angle = Rad first. The model is y = a·sin(bx + c) + d.
  • Logistic: y = c ÷ (1 + a·e^(−bx)). IB writes it L ÷ (1 + Ce^(−kx)), so L = c, C = a, k = b.
  • Quadratic, cubic and the curve models show R² (the coefficient of determination), not r.
  • Predict from the stored model: in RUN-MATRIX use OPTN F5 (STAT) → ŷ (7.5 F2 ŷ in linear mode).

Worked example

(a) x = 1, 2, 3, 4, 5, 6; y = 3.1, 4.9, 7.2, 8.8, 11.1, 12.9. Find the regression line of y on x, r, and predict y when x = 7.5. (b) Same x, y = 2.0, 3.1, 4.4, 6.6, 9.8, 14.5. Fit y = a·bˣ and predict y at x = 8.

Answers (checked with Python)

(a) y = 1.97714x + 1.08, r = 0.999191; at x = 7.5, y ≈ 15.9. (b) y = 1.37065 × 1.48177ˣ (equivalently y = 1.37065e0.393240x); at x = 8, y ≈ 31.9 (an extrapolation, so less reliable).

Common calculator mistakes

Do it in Desmos

Not in the exam. Desmos is not allowed in A Level exams. Use it to learn, to check a calculator answer, and to see what a function or data set looks like.

  1. Add a table (+ → table) with the data in x₁ and y₁.
  2. Type y₁ ~ m x₁ + b. Desmos shows m, b, r and R² and draws the line.
  3. For an exponential model type y₁ ~ a b^{x₁}. Desmos fits the curve directly; your GDC fits a straight line to ln y. Turn on "log mode" in the regression's options to get the GDC's answer.
  4. Sinusoidal and logistic work the same way: y₁ ~ a sin(b x₁ + c) + d, y₁ ~ L/(1 + C e^{−k x₁}).

The interactive graph loads here when you scroll to it.

Or open desmos.com/calculator and type:

  • a table of the data
  • y_{1}~ mx_{1}+b

More calculator skills

Sources

Menu names are taken from each manufacturer's manual for the OS versions shown. Menus can move slightly between OS updates: if a screen looks different on yours, the manual for your version is the reference, and please tell us so we can update this page. Worked-example answers were recomputed independently in Python.