• Ei tuloksia

Computational Methods in Inverse Problems, Mat Krylov subspaces The kth Krylov subspace associated with the matrix A and the vector b is Kk(A, b

N/A
N/A
Info
Lataa
Protected

Academic year: 2022

Jaa "Computational Methods in Inverse Problems, Mat Krylov subspaces The kth Krylov subspace associated with the matrix A and the vector b is Kk(A, b"

Copied!
21
0
0

Kokoteksti

(1)

Conjugate Gradient algorithm

Need: A symmetric positive definite;

Cost: 1 matrix-vector product per step;

Storage: fixed, independent of number of steps.

The CG method minimizes the A norm of the error, xk = arg min

x∈Kk(A,b)kx xk2A. x = true solution, kzk2A = zTAz.

Computational Methods in Inverse Problems, Mat–1.3626 0-0

(2)

Krylov subspaces

The kth Krylov subspace associated with the matrix A and the vector b is

Kk(A, b) = span{b, Ab, . . . , Ak−1b}.

Iterative methods which seek the solution in a Krylov subspace are called Krylov subspace iterative methods.

Computational Methods in Inverse Problems, Mat–1.3626 0-1

(3)

At each step, minimize

α 7→ kxk−1 + αpk−1 xk2A Solution:

αk = krk−1k2 pTk−1Apk−1 New update

xk = xk−1 + αk−1pk−1. Search directions:

p0 = r0 = b Ax0,

Computational Methods in Inverse Problems, Mat–1.3626 0-2

(4)

Iteratively, A-conjugate to the previous ones:

pTk Apj = 0, 0 j k 1.

Found by writing

pk = rk + βkpk−1, rk = b Axk, βk = krkk2

krk−1k2 ,

Computational Methods in Inverse Problems, Mat–1.3626 0-3

(5)

Algorithm (CG) Initialize: x0 = 0; r0 = b Ax0; p0 = r0;

for k = 1,2, . . . until stopping criterion is satisfied αk = krk−1k2

pTk−1Apk−1 ; xk = xk−1 + αkpk−1; rk = rk−1 αkApk−1; βk = krkk2

krk−1k2 ; pk = rk + βkpk−1; end

Computational Methods in Inverse Problems, Mat–1.3626 0-4

(6)

CGLS Method

Conjugate Gradient method for Least Squares (CGLS)

Need: A can be rectangular (non-square);

Cost: 2 matrix-vector products (one with A, one with AT) per step;

Storage: fixed, independent of number of steps.

Mathematically equivalent to applying CG to normal equations ATAx = ATb

without actually forming them.

Computational Methods in Inverse Problems, Mat–1.3626 0-5

(7)

CGLS minimization problem The kth iterate solves the minimization problem

xk = arg min

x∈Kk(ATA,ATb)kb Axk.

The kth iterate xk of CGLS method (x0 = 0) is characterized by Φ(xk) = min

x∈Kk(ATA,ATb)Φ(x) where

Φ(x) := 1

2xTATAx xTATb.

Computational Methods in Inverse Problems, Mat–1.3626 0-6

(8)

Determination of the minimizer

Perform sequential linear searches along ATA-conjugate directions p0, p1, . . . , pk−1

that span Kk(ATA, ATb).

Determine xk from xk−1 and pk−1 according to

xk := xk−1 + αk−1pk−1 where αk−1 R solves

minα∈R Φ(xk−1 + αpk−1).

Computational Methods in Inverse Problems, Mat–1.3626 0-7

(9)

Residual Error Introduce the residual error associated with xk:

rk := ATb ATAxk. Then

pk := rk + βk−1pk−1

Choose βk−1 so that pk is ATA-conjugate to the previous search directions:

pTk ATApj = 0, 1 j k 1.

Computational Methods in Inverse Problems, Mat–1.3626 0-8

(10)

Discrepancy The discrepancy associated with x is

dk = b Axk. Then

rk = ATdk It was shown by Hestenes and Stiefel that

kdk+1k ≤ kdkk; kxk+1k ≥ kxkk.

Computational Methods in Inverse Problems, Mat–1.3626 0-9

(11)

Algorithm (CGLS) x0 := 0; d0 = b; r0 = ATb;

p0 = r0; t0 = Ap0;

for k = 1,2, . . . until stopping criterion is satisfied αk = krk−1k2/ktk−1k2

xk = xk−1 + αkpk−1; dk = dk−1 αktk−1; rk = ATdk;

βk = krkk2/krk−1k2; pk = rk + βkpk−1; tk = Apk;

end

Computational Methods in Inverse Problems, Mat–1.3626 0-10

(12)

Example: a Toy Problem An invertible 2 × 2-matrix A,

yj = Ax + εj, j = 1,2.

Preimages,

xj = A−1yj, j = 1,2,

Computational Methods in Inverse Problems, Mat–1.3626 0-11

(13)

x*

x1

x2

A

y*

y1

y2

A−1

Computational Methods in Inverse Problems, Mat–1.3626 0-12

(14)

solution by iterative methods: semiconvergence.

Write

B = Ax + E, E ∼ N(0, σ2I), and generate a sample of data vectors, b1, b2, . . . , bn Solve with CG

Computational Methods in Inverse Problems, Mat–1.3626 0-13

(15)

Computational Methods in Inverse Problems, Mat–1.3626 0-14

(16)

When should one stop iterating?

Let

Ax = b + ε = Ax + ε = b, Approximate information

kεk ≈ η, where η > 0 is known. Write

kA(x x)k = kεk ≈ η Any solution satisfying

kAx bk ≤ τ η is reasonable.

Morozov discrepancy principle

Computational Methods in Inverse Problems, Mat–1.3626 0-15

(17)

Example: numerical differentiation Let f : [0,1] R be a differentiable function, f(0) = 0.

Data = f(tj)+ noise, tj = j

n, j = 1,2, . . . n.

Problem: Estimate f0(tj).

Direct numerical differentiation by, e.g., finite difference formula does not work: the noise takes over.

Where is the inverse problem?

Computational Methods in Inverse Problems, Mat–1.3626 0-16

(18)

Data

−3 −2 −1 0 1 2 3

−0.5 0 0.5 1 1.5 2 2.5

Noise level 5%

Computational Methods in Inverse Problems, Mat–1.3626 0-17

(19)

Solution by finite difference

−3 −2 −1 0 1 2 3

−1.5

−1

−0.5 0 0.5 1 1.5 2 2.5

Computational Methods in Inverse Problems, Mat–1.3626 0-18

(20)

Formulation as an inverse problem Denote g(t) = f0(t). Then,

f(t) = Z t

0

g(τ)dτ.

Linear model:

Data = yj = f(tj) + ej =

Z tj

0

g(τ)dτ + ej, where ej is the noise.

Computational Methods in Inverse Problems, Mat–1.3626 0-19

(21)

Discretization Write

Z tj

0

g(τ)dτ 1 n

Xj

k=1

g(tk).

By denoting g(tk) = xk,

y = Ax + e, where

A = 1 n



 1 1 1

... . ..

1 1



.

Computational Methods in Inverse Problems, Mat–1.3626 0-20

Viittaukset

LIITTYVÄT TIEDOSTOT

The inverse problem: estimate the density of the bacteria from some indirect measurements. Computational Methods in Inverse Problems,

(8) Model for an inverse problem: z is the true physical quantity that in the ideal case is related to the observable x 0 through the linear model (8).. Computational Methods in

Prior information: “The signal is almost constant (the slope of the order 0.1, say) outside the interval [0.4, 0, 6], while within this interval, the slope can be of order

(b) What is the conditional probability of her having a malignant tumor, considering the fact that the mammogram resulted positive2. (c) What problems are there with her selection

Updated timetable: Thursday, 7 June 2018 Mini-symposium on Magic squares, prime numbers and postage stamps organized by Ka Lok Chu, Simo Puntanen. &

The work is conducted by (a) by experimentally determining reflectance characteristics essential for the forward and inverse modelling of boreal landscapes and (b) by

In my own study referred to above I have argued along the Durk- heimian lines that the sacred and the ritual can be treated as corre- sponding scholarly categories and they can be

The overall leader of the RC on inverse problems is Professor Päivärinta. Professor Lassas is the leader of the Inverse Problems Graduate School and manages doctoral training in