Interactive Demo

The Geometry of Least Squares

The Geometry of Least Squares is a free, interactive learning demo from the AP Statistics course on Lykke. It helps you build intuition for Scatterplots (Direction, Form, Strength), Correlation Coefficient (r), Least-Squares Regression Line (LSRL), Residuals and Residual Plots. Play with it directly in your browser — it features 4 toggles, 3 buttons, direct drag interaction and a live visual canvas. This demo lives in the “Unit 2: Exploring Two-Variable Data” section of the course.

Preview of the The Geometry of Least Squares interactive demo
Preview of The Geometry of Least Squares — play the live version below.
Loading interactive demo…

How to use this demo

  1. Click and drag directly on the canvas to manipulate the scene.
  2. Use the “Add Outlier”, “Reset Linear”, “Clear All” buttons to trigger actions or reset the demo.
  3. Toggle the checkboxes to show or hide layers and compare cases.
  4. Experiment freely — there's nothing to break, and every change is reversible.

What you'll explore

Frequently asked questions

What does the The Geometry of Least Squares demo do?

The Geometry of Least Squares Drag points to see how r and the squares react. The Geometry of Least Squares lets you explore this hands-on instead of only reading about it.

What AP Statistics concept does The Geometry of Least Squares teach?

Investigate the relationships between two quantitative variables through scatterplots, correlation, and linear regression models. It focuses on Scatterplots (Direction, Form, Strength), Correlation Coefficient (r), Least-Squares Regression Line (LSRL), Residuals and Residual Plots, Coefficient of Determination (r-squared), Influential Points and Outliers from the “Unit 2: Exploring Two-Variable Data” section.

What can I control in The Geometry of Least Squares?

You can drag elements directly on the canvas; toggles show or hide layers so you can compare cases; the “Add Outlier”, “Reset Linear”, “Clear All” buttons run actions or reset the demo. Every change updates the visualization in real time, so you can see exactly how each variable affects the outcome.

How does The Geometry of Least Squares fit into the AP Statistics course?

AP Statistics introduces students to the major concepts and tools for collecting, analyzing, and drawing conclusions from data. The course is equivalent to a one-semester introductory college statistics course and focus… This demo is the interactive piece for the “Unit 2: Exploring Two-Variable Data” section. Open the full AP Statistics course wiki at https://www.getlykke.com/explore/public/ap-statistics-70553ac9-70f9-422d-b8b6-c328240d85c1 for notes, flashcards, quizzes and the other demos.

What will I understand better after using The Geometry of Least Squares?

You'll build intuition for Scatterplots (Direction, Form, Strength), Correlation Coefficient (r), Least-Squares Regression Line (LSRL), Residuals and Residual Plots, Coefficient of Determination (r-squared), Influential Points and Outliers — and, crucially, see how they behave when you change the inputs, which is hard to get from a textbook or lecture on AP Statistics alone.

From the AP Statistics course

This interactive demo is part of the Unit 2: Exploring Two-Variable Data section. Explore the full AP Statistics course wiki on Lykke — with notes, flashcards, quizzes and more interactive demos.

Open the AP Statistics course →