Skip to content

SASAI LAB / INTERACTIVE MATHEMATICS

MATHPLAY

Before the formulas,
try a moving picture.

A statistics textbook may suddenly say “take the partial derivatives and set them to zero.” What moves, and what stays fixed? Move a point first and compare the slopes in two directions.

StatPlay is a mathematics lab. Explore the diagram, then return to the formulas in your textbook.

TRY MATH / MOVE THE POINTINTERACTIVE

One point can have two slopes.

This surface has height f(x, y) = x² + xy + y². The slopes obtained by moving x alone and y alone have different colors.

At P (1.00, −1.00), the x-slope is +1.00, and the y-slope is −1.00.

Move one coordinate and the other slope may change too. The lab's cross-sections show why.

EXPLORE / MATH LAB 01

From partial derivatives to a regression line.

The current lab follows a moving surface and connects each diagram to the symbols in a textbook.

LAB 01Partial derivatives, gradient, and least squares What are we looking for when we set partial derivatives to zero? Start with one tangent, then compare two directional slopes. Finally, see where both partial derivatives vanish at the minimum of the sum of squared residuals. PARTIAL DERIVATIVES × LEAST SQUARES

// RELATED IDEAS IN STATPLAY

Simple regression lets you move a fitted line through data.Multiple regression shows how a coefficient changes when other variables are held fixed.