Use your hands to visually explore the concept of a regression coefficient (β) + precision in real-time. A demo of an 'intuition-first' approach to learn statistics. Built with AI (gemini 2.5).
- Live Hand Tracking: Uses your hands to control the slope of a regression line.
- Real-time Coefficient Calculation: See the
β
value change instantly as you move your hands. - Interactive Data: Visualize a scatter plot of data points that adjusts to the line.
- Variable Scaling: Change the scale of the X and Y axes (
0-10
,0-100
, etc.) to see how it impacts the coefficient. - Precision Control: Adjust a slider to see how the tightness (precision) of the data affects your model.
- Open the link to the application.
- Allow camera access when prompted by your browser.
- Clap and show both hands to the camera to begin.
- Move your hands to change the slope and use the on-screen controls to explore!
This application was created with the help of Google's Gemini Pro. The core functionality is built with standard HTML, JavaScript, and CSS, using the MediaPipe Hands library for hand tracking. Inspired by [this] (https://x.com/googleaidevs/status/1936193938639012065) X thread 21st June 2025.
-
Eyeball the Regression Line
A Shiny app by Sophie Hill where users try to draw the best-fit regression line through scatterplots.
Repo: github.com/sophieehill/eyeball-regression -
Guess the Correlation
A simple browser game by @omarwagih that challenges users to estimate the correlation coefficient by eye.
Feedback, questions, and suggestions are welcome. Please contact david.bann@ucl.ac.uk.
This project is open source and available under the MIT License.