Tutorial: multi-linear regression

The straight line is the linear regression of a function that takes scalars (x-values) as input and returns scalars (y-values) as output. (figure from GANFYD)

You’ve probably seen classical equations for linear regression, which is a procedure that finds the straight line that best fits a set of discrete points $\{(x_1,y_1), (x_2,y_2),...,(x_N,y_N)\}$. You might also be aware that similar formulas exist to find a straight line that is a best (least squares) fit to a continuous function $y(x)$.

The pink parallelogram is the multi-linear regression of a function that takes vectors (gray dots) as input and returns vectors (blue dots) as output

The bottom of this post provides a link to a tutorial on how to generalize the concept of linear regression to fit a function $\vec{y}(\vec{x})$ that takes a vector $\vec{x}$ as input and produces a vector $\vec{y}$ as output. In mechanics, the most common example of this type of function is a mapping function that describes material deformation: the input vector is the initial location of a point on a body, and the output vector is the deformed location of the same point. The image shows a collection of input vectors (initial positions, as grey dots) and a collection of output vectors (deformed locations as blue dots). The affine fit to these descrete data is the pink parallelogram. Continue reading

Tutorial: Slideshow introduction to mappings in continuum mechanics

Each time you generate output from input, you are using a mapping. The mappings in continuum mechanics have similarities with simple functions y=f(x) that you already know. This slideshow (which apparently renders properly only when viewed from PowerPoint on a PC rather than Mac) provides a step-by-step introduction to mappings of the type used in Continuum Mechanics.