Classification accuracy: what it means and how to read it

In the report: Accuracy — The share of rows classified correctly when a predicted probability of 0.5 or more is read as 1.

How to read it

Easy to explain: 0.75 means the model gets 3 cases of 4 right. Compare it with the share of the more common outcome: if 70% of the rows are 1, always guessing 1 already gives 0.70.

It is the Overall Percentage of the SPSS Classification Table at the cut-off 0.5; the table itself (right and wrong answers for 0 and for 1) is not reported.

In plain words

A teacher guessed who would pass among 40 students, and the add-on got 30 of them right. She counted the accuracy and it came out 0.75: right in 75 guesses out of 100, three out of four. That is easy to say, but is it good? Of the 40 students, 28 passed, so simply guessing pass for everyone would already be right 70 times out of 100. Now she can say her guesses are only 2 students better than that. The add-on counts a student as pass when the guessed chance of passing is one half or more, the same way SPSS does in its table.

How it is computed

(rows where ŷ = y) / n, ŷ = 1 when p ≥ 0.5

Example

The cell with Accuracy is selected in each report; point at a label to see its note.

  • — the sample data (50 rows) the examples use
  • — two steps; pass is coded 0 and 1 =STATS_LOGISTIC(Data!A1:T51, "pass", "x1,x2|x", 0, 50, 1e-8)

Where you see it

Get it in your sheet

One formula in a cell gives the whole report, Classification accuracy included. ALS Stats is a free add-on for Google Sheets™.

Install ALS Stats from Google Workspace Marketplace (opens in a new tab)