CS 450 - Lecture 1

Well-posed problems

We want to approximate $y = f(x)$ given $x \in \mathbb{R}^n$.

We are interested in well-posed problems. Problems that:

$$ \lim_{\hat{x}\to x} f(\hat{x}) = f(x) $$

Otherwise, the problem is ill-posed.

Examples of well-posed (or ill-posed) problems (from quiz 1):

Error Analysis

In general error is $y - \hat{y}$, where $y$ is true quantity we’re interested in and $\hat{y}$ is the computed quantity.

Sometimes we want to keep track of the sign, but ultimately we’re interested in the magnitude of the error. That is, either $\lVert y - \hat{y} \rVert$ (absolute error), or $\dfrac{\lVert y - \hat{y} \rVert}{\lVert y \rVert}$ (relative error).

Forward error is the difference between the true and the computed outputs: $f(x) - \hat{f}(x)$. Example: as an approximation to $\sqrt{2}$, $1.4$ has a relative forward error of about $\frac{\lvert1.4βˆ’1.41421356\rvert}{\lvert\sqrt{2}\rvert} \approx 0.01$.

Backward error equals $x - \hat{x}$ when $\hat{f}(x) = f(\hat{x})$. That is, it quantifies how far we must move the input to make our computed result exact. Example: as an approximation to $\sqrt{2}$, $1.4$ has a backward error of $\frac{\lvert2 βˆ’ 1.4^2\rvert}{\lvert2\rvert} = 0.02$.

Sources of Error

Condition Number

The absolute condition number is a property of the problem, which measures its sensitivity small perturbations in the input data.

$$ \kappa_{abs}(f) = \lim_{\Delta x \to 0} \left\lvert \frac{f(x + \Delta x) - f(x)}{\Delta x} \right\rvert = \left\lvert \frac{df}{dx} (x) \right\rvert $$

When considering a space of inputs $\mathcal{X}$, then $\kappa_{abs}(f) = \max_{x \in \mathcal{X}} \left\lvert \frac{df}{dx} (x) \right\rvert$. That is, what’s the worst case scenario?

The relative condition number considers the relative perturbations in the input and output:

$$ \kappa_{rel}(f) = \max_{x \in \mathcal{X}} \lim_{\Delta x \to 0} \left\lvert \frac{(f(x + \Delta x) - f(x)) / f(x)}{\Delta x / x} \right\rvert = \frac{\kappa_{abs}(f) |x|}{|f(x)|} $$

It quantifies how much relative error in input can amplify relative error in output.