MATH3322 1 Introduction
MATH3322 1 Introduction
Topics covered:
• Computational problems:
Ax=b
Ax= x
Av= o u AE Rm VER U E Rm
A To
u= v OER and 0 0
• Computational Methods:
Network/Graph
f
ngjs
Adjancency matrix:
G gij
1
if j i
0 otherwise
Gf iǒǐ
The answer of the questions is related to solve a system of linear equations or
Example 2: Regression:
Regression is one of the most important topics in statistics, which is about tting a function to
the sampled data in order to explore the relationship between two quantities. For example, we
want to use a cubic polynomial to t a few pairs of
IXi Y il i 1 2 8
Yi Cot C.Xi 2x i t s xi i 1 2 8
li 影 壛
Which is indeed a least-square problem.
Suppose we are given some data points, modeled by n mx1 vectors {x } with x is an mx1
di erent lines, and then we compute the sum of the projection errors iii
(in terms of squared Euclidean distance) of all data points.
Clearly, the direction of the line that minimizes the projection error is the most important
xminnfcxi
To solve this problem, let x be the current estimate, we do Taylor’s expansion of f(x) around
k
x to get
R
ㄒ
f x Df x x X x_x 对X x Xkl
fx
where is the gradient and is the Hessian. Then, in Newton’s method,
对1加 72ftXk
instead of minimizing f(x) directly, we minimize the right hand side of the Taylor’s expansion.
flxkl 72ftXk x X 0
Actually, solving linear equations plays a fundamental role in 2nd order optimization algorithms.
decompositions.
problems
b) Runtime
Example 2: Which algorithm uses less runtime for the same accuracy?
1
Relative
error
iǒi Ag
Alg2
Runtime
Example 3: Runtime vs Problem size
101
ti
iiòilià
Run 3
Time
c) Memory
Matrix size N
……
• Won’t emphasize too much on the exact analysis of stability and accuracy, but just give rule