Skip to content

Mathematical Foundations Studio

A function maps every x to one y. a stretches vertically, d shifts up, b compresses horizontally and c shifts left (f(x + c) moves the graph left, not right). The dashed curve is the untransformed f.

g(x₀): 1.000; a, b, c, d: 1, 1, 0, 0

Function plot

g(x) = a · f(b·x + c) + d with f = x², a = 1, b = 1, c = 0, d = 0. g(x₀): 1.000; a, b, c, d: 1, 1, 0, 0

Formula

g(x) = a · f(b·x + c) + d

Standardisation z = (x − x̄)/s is exactly this kind of transformation: a shift, then a stretch.

Method: Derivatives are central differences with h = 1e-5 (src/lib/engine/calculus.ts), shown next to the analytic derivative; integrals by Simpson's rule with 400 panels next to the exact value from the antiderivative; the kink of |x| and the domain of ln are flagged instead of computed. The SSE bowl uses the VRA base data (ds.news-knowledge, n = 15); its contours are the exact ellipses SSE_min + ΔᵀXᵀXΔ, and the minimum is checked against the closed-form OLS line.

Validation: Numeric derivatives agree with the analytic ones within 1e-6 for every preset on a grid of points and transformations, and with R's D(); antiderivatives and Simpson integrals agree with R's integrate(); the bowl minimum equals R lm() and a 61 × 61 grid search; the likelihood maximum equals R optimize() (tests/unit/math-studio.test.ts). · numerically validated