Skip to main content

How to find Pearson's r and Spearman's rank correlation on a Casio ClassWiz or fx-CG50

On the fx-991EX: MENU → 6 → 2 (y = a + bx).On the fx-991CW: HOME → Statistics → 2-Variable.

Pearson's product-moment correlation coefficient and Spearman's rank coefficient (by ranking, then r). Exact keystrokes for the Casio ClassWiz first (the fx-991EX and fx-991CW have different menus, so each has its own tab), then the graphic calculators, a worked example you can check your answers against, the mistakes that cost marks, and the same thing in Desmos.

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

When you need it

The product-moment correlation coefficient (PMCC) and its hypothesis test in A Level statistics; Spearman's rank in some Further Statistics options and IAL S3. Both come from the same regression screen.

Practise it: Hypothesis testing · Statistical sampling and data.

Keystrokes on your calculator

Pick your calculator: the page remembers it next time.

Correlation r and Spearman's rank on the Casio fx-991EX ClassWiz

Written for the fixed ROM (these models take no OS updates). Casio fx-991EX ClassWiz: scientific (no graphs).

Casio fx-991EX ClassWiz key sequence for correlation r and spearman's rank: MENU → 6 → 2 (y = a + bx)
Key sequence, from the steps below.
Watch the key presses on the fx-991EX5 presses, one at a time

The walkthrough needs JavaScript. The same key presses are in the numbered steps below.

Watch every key press on YouTube: the fx-991EX playlist

  1. MENU 6 2 (y = a + bx). Enter the x and y data.
  2. OPTN → Regression Calc: read r.
  3. Spearman: replace the data with the ranks (or start a new table of ranks) and read r again.

For teachers: Show on the board Print a keystroke card Teaching GDC skills

Worked example

x: 12, 15, 17, 20, 23, 25, 28, 30. y: 40, 44, 43, 52, 55, 51, 60, 63. Find r and Spearman's rs.

Answers (checked with Python)

r = 0.955492. Ranks of x: 1–8; ranks of y: 1, 3, 2, 5, 6, 4, 7, 8. r of the ranks gives rs = 0.905.

Try it: correlation and regression calculator (free, shows the working)

Now try it on an exam-style question

Use the keystrokes above on A Level-style correlation hypothesis testing questions. Free to try, no sign-up.

Try a correlation hypothesis testing question

Want your scores kept? Join free (no card) · Sign in

Common calculator mistakes

If you get an error

fx-991EX: Math ERROR, Syntax ERROR

Math ERROR A result, or a value you typed, is outside the range the calculator can handle, or you asked for something mathematically impossible, such as dividing by zero. Check: Look for a zero denominator, sin⁻¹ or cos⁻¹ of a number bigger than 1 (often a wrong side or angle in the sine or cosine rule), the log of 0 or of a negative number, and a value stored in a variable earlier that you forgot about. Fix: Casio's advice: check the values you typed, use fewer digits and try again. If a variable is the input to a function, make sure its value is one the function accepts.

Syntax ERROR There is a problem with the format of the calculation. In Matrix and Vector calculations it also appears when the sizes do not suit the operation. Check: A missing or extra bracket, or two operation signs in a row. With matrices or vectors: adding a 2 × 2 to a 3 × 3, or a product whose sizes do not match. Fix: Casio's advice: make the corrections. For matrices and vectors, check the size you set for each one.

fx-991CW: Math ERROR, Syntax ERROR

Math ERROR A result, or a value you typed, is outside the range the calculator can handle, or you asked for something mathematically impossible, such as dividing by zero. Check: Look for a zero denominator, sin⁻¹ or cos⁻¹ of a number bigger than 1 (often a wrong side or angle in the sine or cosine rule), the log of 0 or of a negative number, and a value stored in a variable earlier that you forgot about. Fix: Casio's advice: check the values you typed, use fewer digits and try again. If a variable is the input to a function, make sure its value is one the function accepts.

Syntax ERROR There is a problem with the format of the calculation: it is typed in a form the calculator cannot read. Check: A missing or extra bracket, two operation signs in a row, or a function with nothing after it. Fix: Casio's advice: make the corrections and try again.

fx-CG50: Ma ERROR

Ma ERROR Casio's Math ERROR: the result is outside the allowable calculation range, or you are trying to do an illegal mathematical operation, such as dividing by zero. Check: Look for a zero denominator, sin⁻¹ or cos⁻¹ of a number bigger than 1 (often a wrong side or angle in the sine or cosine rule), the log of 0 or of a negative number, and a value stored in a variable earlier that you forgot about. Fix: Casio's advice: check your input values and change them so the result is within the allowable range.

TI-84 Plus CE: ERR:DOMAIN, ERR:DIM MISMATCH, ERR:INVALID DIM, ERR:SYNTAX, ERR:STAT

ERR:DOMAIN A value given to a function or instruction is outside the values it accepts. In a regression, TI says it means the data do not suit the model you chose. Check: Is every input allowed? σ must be positive, p between 0 and 1, and sin⁻¹ or cos⁻¹ needs a number from −1 to 1. Exponential and power models need positive data. Fix: Change the value that is out of range, or choose a model that suits the data.

ERR:DIM MISMATCH Lists or matrices in the same operation have different sizes (TI's example: multiplying two lists with different numbers of elements). Check: L1 and L2 with different numbers of values (one value missed or typed twice), a frequency list of the wrong length, or matrices whose sizes cannot be multiplied. Fix: Make the lists the same length, or check the size of each matrix.

ERR:INVALID DIM TI's knowledge base: one or more stat plots are turned on, but the lists they use are empty. Check: A stat plot left on from a statistics question, so the error appears when you graph a function. Fix: Turn off the stat plots you are not using, or put the data back in the lists.

ERR:SYNTAX The command contains a syntax error: a misplaced function, argument, bracket or comma. Check: TI points out that subtract − and negative (−) are different keys, and using the wrong one causes this error. Then check the brackets and commas. Fix: Find the misplaced function, argument, bracket or comma and correct it.

ERR:STAT A statistics calculation was tried on lists that are not suitable. A statistical analysis needs at least two data points. Check: An empty or one-value list, or the wrong list named in the command. Fix: Check the lists named in the command and the data in them.

TI-Nspire CX II: Domain error, Dimension mismatch, Syntax error

Domain error An argument must be in a specified domain, and this one is not (TI's example: rand(0)). Check: Is every input allowed? σ must be positive, p between 0 and 1, and sin⁻¹ or cos⁻¹ needs a number from −1 to 1. Fix: Change the value that is out of range.

Dimension mismatch Two or more arguments must have the same dimension and do not (TI's example: [1,2]+[1,2,3]). Check: Lists of different lengths in a statistics command, or vectors or matrices of different sizes. Fix: Make the lists, vectors or matrices the sizes the operation needs.

Syntax error The syntax checker found a problem. Check: A missing bracket or comma. Fix: Correct the expression and try again.

Every error message explained, calculator by calculator →

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. Make lists X = [12, 15, …] and Y = [40, 44, …].
  2. corr(X, Y) gives Pearson's r; spearman(X, Y) gives Spearman's rs directly (Desmos ranks and handles ties for you).
  3. Plot (X, Y) to see the scatter diagram.

Open desmos.com/calculator (free, in any browser) and type:

  • X=[12,15,17,20,23,25,28,30]
  • Y=[40,44,43,52,55,51,60,63]
  • (X,Y)
  • corr(X,Y)
  • spearman(X,Y)

Questions

Can I use a calculator for correlation r and Spearman's rank in the exam?

Yes. Every UK A Level Maths paper (Edexcel 9MA0, AQA 7357, OCR H240) and every Edexcel IAL unit, P1 included, allows a calculator that has no CAS and no wireless link. The fx-CG50 qualifies.

What are the fx-991EX keystrokes for correlation r and Spearman's rank?

MENU 6 2 (y = a + bx). Enter the x and y data. Then OPTN → Regression Calc: read r. Then Spearman: replace the data with the ranks (or start a new table of ranks) and read r again. The full steps and the other calculators are in the keystrokes section above.

Does this work on other calculators?

Yes. This page has keystrokes for the Casio fx-991EX ClassWiz, Casio fx-991CW ClassWiz, Casio fx-CG50, TI-84 Plus CE and TI-Nspire CX II. The worked example has the same answers on every model, so use it to check.

What should I write as working?

Write the maths, not the key presses: say what you are finding in normal notation (the equation, the probability statement or the integral), then the calculator's answer to the accuracy the question asks for (often 3 significant figures). Keep full accuracy in later parts.

More calculator skills

Sources

Menu names are taken from each manufacturer's manual for the models 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. A calculator with no tab here has no checked steps for this skill yet. Worked-example answers were recomputed independently in Python.