Correlation and line of best fit

Change how strongly two variables are linked and see the scatter graph, Pearson's r, r² and the least-squares line of best fit.

Free for schools, teachers and blogs.
Put this tool on your website, blog or class page
Size:
Copied
  • Google Sites: Insert → Embed → Embed code, and paste.
  • WordPress: add a "Custom HTML" block and paste.
  • Blogger: in the post, switch to HTML view and paste.
  • Free to use as long as the link under it stays.

Learn correlation properly

StudyAI writes clear notes on any topic you study, with practice quizzes, past-paper questions explained, and interactive models like this one in the notes.

Get free notes and a quiz on this
Free to start. No card needed.

Questions students ask

What does Pearson's r measure?

The strength and direction of a straight-line relationship, from −1 (perfect negative) to +1 (perfect positive).

Does correlation prove causation?

No. Two variables can move together because a third one drives both.

Free notes on correlation

More mathematics tools

All interactive tools