Index Ai Academy
Glossary · Phase 3 · Machine learning

R²

Also written: R-squared, R squared

How much better a model predicts than always guessing the average: 1 is perfect, 0 is no better, and below 0 is worse.

Try it now

Drag the sliders to fit the line by eye, then press Best fit to see what least squares finds.

Learn it properly

Linear regression · Fit a line, and predict numbers from features. About 30 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write