Skip to content

Films · Statistics · Linear regression

Prof. Dr. Dirk Schieborn

Higher Mathematics 2 · Reutlingen University

Lecture film · Higher Mathematics 2 · Statistics

Trendline, Tablecloth, Chewing Gum: The Best Line Through a Point Cloud

Lecture film · Higher Mathematics 2 · Statistics

Trendline, Tablecloth, Chewing Gum: The Best Line Through a Point Cloud

Prof. Dr. Dirk Schieborn

Higher Mathematics 2 · Reutlingen University

The best line minimises the sum of squared distances. Set the partial derivatives by aa and bb to zero: it passes through the centroid, its slope is b=sxy/sx2b = s_{x y}/s_x^2, its intercept a=yˉ−b xˉa = \bar y - b\,\bar x. Whether it is any good, R2R^2 tells you.

heyprof.app/f/statistik-regression-en

More films: Signature · Prof. Dr. Dirk Schieborn

0:03
−5:50
Chapter 1 · The perfect line

Try the app yourself

We store questions without any link to you; selected ones appear anonymously as frequent questions.

Trendline, Tablecloth, Chewing Gum: The Best Line Through a Point Cloud

Prof. Dr. Dirk SchiebornHigher Mathematics 2 · Reutlingen University

NewNov 30, 2026 · 6 chapters

An explainer film in six chapters, made from a real lecture: what is the perfect line through a point cloud? Why absolute values have a kink and Gauss takes squares, how every line becomes a point on a bowl, why the best line passes through the centroid, how covariance and variance give the slope, and what the coefficient of determination R² says about the overall situation. Pause, ask, try it yourself.

How a film works on heyprof

Every film here listens. Pause it, ask it questions and let it continue with your own examples.

  1. PauseTap pause or press the space bar. The film waits right at that moment.
  2. AskTap “Ask” and type what you want to know. The answer comes inside the film, with picture and voice.
  3. Steer itTell it what to show, for example “Do this with z = 2 − 3i”. The film sets up the app and works it out.
  4. Try it yourselfWhile it is paused, drag points and sliders yourself. “Continue” takes you back into the film.

Without an account: five questions per visit. With an account you can also ask by voice.

Comments