Solving Linear System of Equations The Undo button for Linear - - PowerPoint PPT Presentation

โ–ถ
solving linear system of equations the undo button for
SMART_READER_LITE
LIVE PREVIEW

Solving Linear System of Equations The Undo button for Linear - - PowerPoint PPT Presentation

Solving Linear System of Equations The Undo button for Linear Operations Matrix-vector multiplication: given the data and the operator , we can find such that = transformation What if we know


slide-1
SLIDE 1

Solving Linear System of Equations

slide-2
SLIDE 2

The โ€œUndoโ€ button for Linear Operations

Matrix-vector multiplication: given the data ๐’š and the operator ๐‘ฉ, we can find ๐’› such that ๐’› = ๐‘ฉ ๐’š What if we know ๐’› but not ๐’š? How can we โ€œundoโ€ the transformation?

๐’š ๐’› ๐‘ฉ

transformation

๐‘ฉ!๐Ÿ ๐’› ๐’š ?

Solve ๐‘ฉ ๐’š = ๐’› for ๐’š

slide-3
SLIDE 3

Image Blurring Example

  • Image is stored as a 2D array of real numbers between 0 and 1

(0 represents a white pixel, 1 represents a black pixel)

  • ๐’š๐’๐’ƒ๐’– has 40 rows of pixels and 100 columns of pixels
  • Flatten the 2D array as a 1D array
  • ๐’š contains the 1D data with dimension 4000,
  • Apply blurring operation to data ๐’š, i.e.

๐’› = ๐‘ฉ ๐’š where ๐‘ฉ is the blur operator and ๐’› is the blurred image

slide-4
SLIDE 4

Blur operator

๐’› = ๐‘ฉ ๐’š

"originalโ€ image (4000,) blurred image (4000,) Blur operator (4000,4000) Blur operator

๐’š ๐’›

๐‘ฉ

slide-5
SLIDE 5

โ€Undoโ€ Blur to recover original image

Solve ๐‘ฉ ๐’š = ๐’› for ๐’š Assumptions:

  • 1. we know the blur
  • perator ๐‘ฉ
  • 2. the data set ๐’› does not

have any noise (โ€œclean dataโ€ ๐’š ๐’›

slide-6
SLIDE 6

โ€Undoโ€ Blur to recover original image

Solve ๐‘ฉ ๐’š = ๐’› for ๐’š

๐’› + ๐‘ โˆ— 10!" (๐‘ โˆˆ 0,1 ) How much noise can we add and still be able to recover meaningful information from the original image? At which point this inverse transformation fails? We will talk about sensitivity of the โ€œundoโ€ operation later. ๐’› + ๐‘ โˆ— 10!# (๐‘ โˆˆ 0,1 )

slide-7
SLIDE 7

Linear System of Equations

We can start with an โ€œeasierโ€ system of equationsโ€ฆ How do we actually solve ๐‘ฉ ๐’š = ๐’„ ? Letโ€™s consider triangular matrices (lower and upper):

๐‘€!! ๐‘€"! ๐‘€"" โ€ฆ โ€ฆ โ‹ฎ โ‹ฎ ๐‘€#! ๐‘€#" โ‹ฑ โ‹ฎ โ€ฆ ๐‘€## ๐‘ฆ! ๐‘ฆ" โ‹ฎ ๐‘ฆ# = ๐‘ ๐‘" โ‹ฎ ๐‘# ๐‘‰!! ๐‘‰!" ๐‘‰"" โ€ฆ ๐‘‰!# โ€ฆ ๐‘‰"# โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ โ€ฆ ๐‘‰## ๐‘ฆ! ๐‘ฆ" โ‹ฎ ๐‘ฆ# = ๐‘ ๐‘" โ‹ฎ ๐‘#

slide-8
SLIDE 8

2 3 2 1 2 1 3 6 4 2 ๐‘ฆ! ๐‘ฆ" ๐‘ฆ# ๐‘ฆ$ = 2 2 6 4

Example: Forward-substitution for lower triangular systems

2 ๐‘ฆ$ = 2 โ†’ ๐‘ฆ$= 1 3 ๐‘ฆ$ + 2 ๐‘ฆ% = 2 โ†’ ๐‘ฆ%= 2 โˆ’ 3 2 = โˆ’0.5 1 ๐‘ฆ$ + 2 ๐‘ฆ% + 6 ๐‘ฆ& = 6 โ†’ ๐‘ฆ&= 6 โˆ’ 1 + 1 6 = 1.0 1 ๐‘ฆ$ + 3 ๐‘ฆ% + 4 ๐‘ฆ& + 2 ๐‘ฆ# = 4 โ†’ ๐‘ฆ&= 4 โˆ’ 1 + 1.5 โˆ’ 4 2 = 0.25

๐‘ฆ! ๐‘ฆ" ๐‘ฆ# ๐‘ฆ$ = 1 โˆ’0.5 1.0 0.25

slide-9
SLIDE 9

Triangular Matrices

๐‘‰!! ๐‘‰!" ๐‘‰"" โ€ฆ ๐‘‰!# โ€ฆ ๐‘‰"# โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ โ€ฆ ๐‘‰## ๐‘ฆ! ๐‘ฆ" โ‹ฎ ๐‘ฆ# = ๐‘ ๐‘" โ‹ฎ ๐‘#

๐‘ฆ! ๐• : , 1 + ๐‘ฆ" ๐• : , 2 + โ‹ฏ + ๐‘ฆ% ๐• : , ๐‘œ = ๐’„ Hence we can write the solution as

๐‘‰'' ๐‘ฆ' = ๐‘'

Recall that we can also write ๐‘ฝ ๐’š = ๐’„ as a linear combination of the columns of ๐‘ฝ

๐‘ฆ$ ๐• : , 1 + โ‹ฏ + ๐‘ฆ'!$ ๐• : , ๐‘œ โˆ’ 1 = ๐’„ โˆ’๐‘ฆ' ๐• : , ๐‘œ โ†’ ๐‘‰'!$,'!$ ๐‘ฆ'!$ = ๐‘'!$ โˆ’ ๐‘‰'!$,' ๐‘ฆ' ๐‘ฆ$ ๐• : , 1 + โ‹ฏ + ๐‘ฆ'!% ๐• : , ๐‘œ โˆ’ 2 = ๐’„ โˆ’๐‘ฆ' ๐• : , ๐‘œ โˆ’ ๐‘ฆ'!$ ๐• : , ๐‘œ โˆ’ 1

Or in general (backward-substitution for upper triangular systems): ๐‘ฆ&= ๐‘& โˆ’ โˆ‘'(&)!

%

๐‘‰&'๐‘ฆ' ๐‘‰&& , ๐‘— = ๐‘œ โˆ’ 1, ๐‘œ โˆ’ 2, โ€ฆ , 1 ๐‘ฆ% = ๐‘%/๐‘‰%%

slide-10
SLIDE 10

Forward-substitution for lower-triangular systems: ๐‘ฆ&= ๐‘& โˆ’ โˆ‘'(!

&*! ๐‘€&'๐‘ฆ'

๐‘€&& , ๐‘— = 2,3, โ€ฆ , ๐‘œ ๐‘ฆ! = ๐‘!/๐‘€!!

๐‘€!! ๐‘€"! ๐‘€"" โ€ฆ โ€ฆ โ‹ฎ โ‹ฎ ๐‘€#! ๐‘€#" โ‹ฑ โ‹ฎ โ€ฆ ๐‘€## ๐‘ฆ! ๐‘ฆ" โ‹ฎ ๐‘ฆ# = ๐‘ ๐‘" โ‹ฎ ๐‘#

Triangular Matrices

slide-11
SLIDE 11

Cost of solving triangular systems

๐‘ฆ&= ๐‘& โˆ’ โˆ‘'(&)!

%

๐‘‰&'๐‘ฆ' ๐‘‰&& , ๐‘— = ๐‘œ โˆ’ 1, ๐‘œ โˆ’ 2, โ€ฆ , 1 ๐‘ฆ% = ๐‘%/๐‘‰%%

๐‘œ divisions ๐‘œ ๐‘œ โˆ’ 1 /2 subtractions/additions ๐‘œ ๐‘œ โˆ’ 1 /2 multiplications

Computational complexity is ๐‘ƒ(๐‘œ")

๐‘œ divisions ๐‘œ ๐‘œ โˆ’ 1 /2 subtractions/additions ๐‘œ ๐‘œ โˆ’ 1 /2 multiplications

Computational complexity is ๐‘ƒ(๐‘œ")

๐‘ฆ&= ๐‘& โˆ’ โˆ‘'(!

&*! ๐‘€&'๐‘ฆ'

๐‘€&& , ๐‘— = 2,3, โ€ฆ , ๐‘œ ๐‘ฆ! = ๐‘!/๐‘€!!

slide-12
SLIDE 12

Linear System of Equations

How do we solve ๐‘ฉ ๐’š = ๐’„ when ๐‘ฉ is a non-triangular matrix? We can perform LU factorization: given a ๐‘œร—๐‘œ matrix ๐‘ฉ,

  • btain lower triangular matrix ๐‘ด and upper triangular matrix

๐‘ฝ such that where we set the diagonal entries of ๐‘ด to be equal to 1.

๐‘ฉ = ๐‘ด๐‘ฝ

1 ๐‘€"! 1 โ€ฆ โ€ฆ โ‹ฎ โ‹ฎ ๐‘€#! ๐‘€#" โ‹ฑ โ‹ฎ โ€ฆ 1 ๐‘‰!! ๐‘‰!" ๐‘‰"" โ€ฆ ๐‘‰!# โ€ฆ ๐‘‰"# โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ โ€ฆ ๐‘‰## = ๐ต!! ๐ต!" ๐ต"! ๐ต"" โ€ฆ ๐ต!# โ€ฆ ๐ต"# โ‹ฎ โ‹ฎ ๐ต#! ๐ต#" โ‹ฑ โ‹ฎ โ€ฆ ๐ต##

slide-13
SLIDE 13

LU Factorization

1 ๐‘€"! 1 โ€ฆ โ€ฆ โ‹ฎ โ‹ฎ ๐‘€#! ๐‘€#" โ‹ฑ โ‹ฎ โ€ฆ 1 ๐‘‰!! ๐‘‰!" ๐‘‰"" โ€ฆ ๐‘‰!# โ€ฆ ๐‘‰"# โ‹ฎ โ‹ฎ โ‹ฑ โ‹ฎ โ€ฆ ๐‘‰## = ๐ต!! ๐ต!" ๐ต"! ๐ต"" โ€ฆ ๐ต!# โ€ฆ ๐ต"# โ‹ฎ โ‹ฎ ๐ต#! ๐ต#" โ‹ฑ โ‹ฎ โ€ฆ ๐ต##

๐‘ด๐‘ฝ ๐’š = ๐’„ ๐‘ด ๐’› = ๐’„

Forward-substitution with complexity ๐‘ƒ(๐‘œ")

๐‘ฝ ๐’š = ๐’›

Solve for ๐’› Backward-substitution with complexity ๐‘ƒ(๐‘œ") Solve for ๐’š Assuming the LU factorization is know, we can solve the general system By solving two triangular systems: But what is the cost of the LU factorization? Is it beneficial?

slide-14
SLIDE 14

2x2 LU Factorization (simple example)

๐ต!! ๐ต!" ๐ต"! ๐ต"" = 1 ๐‘€"! 1 ๐‘‰!! ๐‘‰!" ๐‘‰""

๐ต!! ๐ต!" ๐ต"! ๐ต"" = ๐‘‰!! ๐‘‰!" ๐‘€"!๐‘‰!! ๐‘€"!๐‘‰!" + ๐‘‰""

2) ๐‘€=> = ๐ต=>/๐‘‰>> 3) ๐‘‰== = ๐ต== โˆ’ ๐‘€=>๐‘‰>= Seems quite simple! Can we generalize this for a ๐‘œร—๐‘œ matrix ๐‘ฉ? ๐‘‰>> = ๐ต=>/๐‘‰>>

slide-15
SLIDE 15
slide-16
SLIDE 16

LU Factorization

๐ต!! ๐ต!" ๐ต"! ๐ต"" โ€ฆ ๐ต!# โ€ฆ ๐ต"# โ‹ฎ โ‹ฎ ๐ต#! ๐ต#" โ‹ฑ โ‹ฎ โ€ฆ ๐ต## = ๐‘!! ๐’ƒ!" ๐’ƒ"! ๐‘ฉ"" = 1 ๐Ÿ ๐’Ž"! ๐‘ด"" ๐‘ฃ!! ๐’—!" ๐Ÿ ๐‘ฝ""

๐‘$$ ๐’ƒ$% ๐’ƒ%$ ๐‘ฉ%% ๐‘$$: scalar ๐’ƒ$%: row vector (1ร—(๐‘œ โˆ’ 1)) ๐’ƒ%$: column vector (๐‘œ โˆ’ 1)ร—1 ๐‘ฉ%%: matrix (๐‘œ โˆ’ 1)ร—(๐‘œ โˆ’ 1)

๐‘!! ๐’ƒ!" ๐’ƒ"! ๐‘ฉ"" = ๐‘ฃ!! ๐’—!" ๐‘ฃ!! ๐’Ž"! ๐’Ž"!๐’—!" + ๐‘ด""๐‘ฝ""

1) First row of ๐‘ฝ is the first row of ๐‘ฉ ๐’Ž=> = >

+!! ๐’ƒ=>

3) ๐‘ด""๐‘ฝ"" = ๐‘ฉ"" โˆ’ ๐’Ž"!๐’—!" Need another factorization!

Known!

2) First column of ๐‘ด is the first column of ๐‘ฉ/ ๐‘ฃ>>

๐‘ฉ"" = ๐’Ž"!๐’—!" + ๐‘ด""๐‘ฝ""

slide-17
SLIDE 17

LU Factorization

๐ต!! ๐ต!" ๐ต"! ๐ต"" โ€ฆ ๐ต!# โ€ฆ ๐ต"# โ‹ฎ โ‹ฎ ๐ต#! ๐ต#" โ‹ฑ โ‹ฎ โ€ฆ ๐ต## = ๐‘!! ๐’ƒ!" ๐’ƒ"! ๐‘ฉ"" = 1 ๐Ÿ ๐’Ž"! ๐‘ด"" ๐‘ฃ!! ๐’—!" ๐Ÿ ๐‘ฝ""

๐‘$$ ๐’ƒ$% ๐’ƒ%$ ๐‘ฉ%% ๐‘$$: scalar ๐’ƒ$%: row vector (1ร—(๐‘œ โˆ’ 1)) ๐’ƒ%$: column vector (๐‘œ โˆ’ 1)ร—1 ๐‘ฉ%%: matrix (๐‘œ โˆ’ 1)ร—(๐‘œ โˆ’ 1)

๐‘!! ๐’ƒ!" ๐’ƒ"! ๐‘ฉ"" = ๐‘ฃ!! ๐’—!" ๐‘ฃ!! ๐’Ž"! ๐’Ž"!๐’—!" + ๐‘ด""๐‘ฝ""

1) First row of ๐‘ฝ is the first row of ๐‘ฉ 2) ๐’Ž=> = >

+!! ๐’ƒ=>

3) ๐‘ต = ๐‘ด""๐‘ฝ"" = ๐‘ฉ"" โˆ’ ๐’Ž"!๐’—!" Need another factorization!

Known!

First column of ๐‘ด is the first column of ๐‘ฉ/ ๐‘ฃ>>

slide-18
SLIDE 18

Example

๐‘ต = 2 8 1 2 4 1 3 3 1 2 1 3 6 2 4 2

1) First row of ๐‘ฝ is the first row of ๐‘ฉ 2) First column of ๐‘ด is the first column of ๐‘ฉ/ ๐‘ฃ>>

3) ๐‘ด""๐‘ฝ"" = ๐‘ฉ"" โˆ’ ๐’Ž"!๐’—!"

slide-19
SLIDE 19

Example

๐‘ต = 2 8 1 2 4 1 3 3 1 2 1 3 6 2 4 2 ๐‘ฝ = 2 8 4 1 ๐‘ด = 1 0.5 0.5 0.5 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’2 1 โˆ’1 4 1.5 2 1.5 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 ๐‘ด = 1 0.5 1 0.5 1 0.5 0.5 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’2 1 โˆ’1 3 โˆ’1 1.5 0.25 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 3 โˆ’1 ๐‘ด = 1 0.5 1 0.5 1 0.5 0.5 1 0.5 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 3 โˆ’1 0.75 ๐‘ด = 1 0.5 1 0.5 1 0.5 0.5 1 0.5 1 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’2 1 โˆ’1 3 โˆ’1 1.5 0.75

slide-20
SLIDE 20

Algorithm: LU Factorization of matrix A

slide-21
SLIDE 21

Cost of LU factorization

$

"#$ %

๐‘— = 1 2 ๐‘› ๐‘› + 1 $

"#$ %

๐‘—& = 1 6 ๐‘› ๐‘› + 1 2๐‘› + 1

Side note:

slide-22
SLIDE 22

Cost of LU factorization

Number of divisions: ๐‘œ โˆ’ 1 + ๐‘œ โˆ’ 2 + โ‹ฏ + 1 = ๐‘œ ๐‘œ โˆ’ 1 /2 Number of multiplications ๐‘œ โˆ’ 1 % + ๐‘œ โˆ’ 2 % + โ€ฆ + 1 % =

'! & โˆ’ '" % + ' "

Number of subtractions: ๐‘œ โˆ’ 1 % + ๐‘œ โˆ’ 2 % + โ€ฆ + 1 % =

'! & โˆ’ '" % + ' "

Computational complexity is ๐‘ƒ(๐‘œ,)

$

"#$ %

๐‘— = 1 2 ๐‘› ๐‘› + 1 $

"#$ %

๐‘—& = 1 6 ๐‘› ๐‘› + 1 2๐‘› + 1

Side note: Demo โ€œComplexity of Mat-Mat multiplication and LUโ€

slide-23
SLIDE 23

Solving linear systems

In general, we can solve a linear system of equations following the steps: 1) Factorize the matrix ๐‘ฉ : ๐‘ฉ = ๐‘ด๐‘ฝ (complexity ๐‘ƒ(๐‘œC))

2) Solve ๐‘ด ๐’› = ๐’„ (complexity ๐‘ƒ(๐‘œ=))

3) Solve ๐‘ฝ ๐’š = ๐’› (complexity ๐‘ƒ(๐‘œ=))

But why should we decouple the factorization from the actual solve? (Remember from Linear Algebra, Gaussian Elimination does not decouple these two stepsโ€ฆ)

slide-24
SLIDE 24

Example: Optimization of automotive control arm

Find the distribution of material inside the design space (๐’†) that maximizes the stiffness, i.e., min ๐‘ฝ,๐‘ฎ where ๐‘ณ ๐’† ๐‘ฝ = ๐‘ฎ (๐‘ฝ: displacement vector, ๐‘ฎ: load vector, ๐‘ณ: stiffness matrix) Solve the linear system of equations ๐‘ณ ๐‘ฝ = ๐‘ฎ for the load vector ๐‘ฎ. What if we have many different loading conditions (pothole, hitting a curb, breaking, etc)?

slide-25
SLIDE 25

Iclicker question

Letโ€™s assume that when solving the system of equations ๐‘ณ ๐‘ฝ = ๐‘ฎ, we observe the following:

  • When the stiffness matrix has dimensions (100,100), computing the LU factorization

takes about 1 second and each solve (forward + backward substitution) takes about 0.01 seconds. Estimate the total time it will take to find the displacement response corresponding to 10 different load vectors ๐‘ฎ when the stiffness matrix has dimensions (1000,1000)? ๐ต) ~10 ๐‘ก๐‘“๐‘‘๐‘๐‘œ๐‘’๐‘ก ๐ถ) ~10" ๐‘ก๐‘“๐‘‘๐‘๐‘œ๐‘’๐‘ก ๐ท) ~10# ๐‘ก๐‘“๐‘‘๐‘๐‘œ๐‘’๐‘ก ๐ธ) ~10$ ๐‘ก๐‘“๐‘‘๐‘๐‘œ๐‘’๐‘ก ๐น) ~10- ๐‘ก๐‘“๐‘‘๐‘๐‘œ๐‘’๐‘ก

slide-26
SLIDE 26

What can go wrong with the previous algorithm?

If division by zero occurs, LU factorization fails. What can we do to get something like an LU factorization?

slide-27
SLIDE 27

What can go wrong with the previous algorithm?

๐‘ต = 2 8 1 ๐Ÿ“ 4 1 3 3 1 2 1 3 6 2 4 2 ๐‘ฝ = 2 8 4 1 ๐‘ด = 1 0.5 0.5 0.5 ๐‘ต โˆ’ ๐’Ž"!๐’—!" = 2 8 1 ๐Ÿ 4 1 1 2.5 1 โˆ’2 1 โˆ’1 4 1.5 2 1.5 ๐’Ž"!๐’—!" = 4 2 0.5 4 2 0.5 4 2 0.5

The next update for the lower triangular matrix will result in a division by zero! LU factorization fails. What can we do to get something like an LU factorization?

Demo โ€œLittle cโ€

slide-28
SLIDE 28

Pivoting

Approach:

  • 1. Swap rows if there is a zero entry in the diagonal
  • 2. Even better idea: Find the largest entry (by absolute value) and

swap it to the top row. The entry we divide by is called the pivot. Swapping rows to get a bigger pivot is called (partial) pivoting.

๐‘!! ๐’ƒ!" ๐’ƒ"! ๐‘ฉ"" = ๐‘ฃ!! ๐’—!" ๐‘ฃ!! ๐’Ž"! ๐’Ž"!๐’—!" + ๐‘ด""๐‘ฝ"" Find the largest entry (in magnitude)

slide-29
SLIDE 29

LU Factorization with Partial Pivoting

  • LU factorization with partial pivoting can be completed for any matrix A

Suppose you are at stage k and there is no non-zero entry on or below the diagonal in column k. At this point, there is nothing else you can do, so the algorithm leaves a zero in the diagonal entry of U. Note that the matrix U is singular, and so is the matrix A. Subsequent backward substitutions using U will fail, but the LU factorization itself is still completed.

slide-30
SLIDE 30

LU Factorization with Partial Pivoting

where ๐‘ธ is a permutation matrix Then solve two triangular systems:

๐‘ฉ = ๐‘ธ๐‘ด๐‘ฝ ๐‘ด ๐’› = ๐‘ธ#๐’„ ๐‘ฝ ๐’š = ๐’›

(Solve for ๐’›) (Solve for ๐’š)

๐‘ฉ ๐’š = ๐’„ โ†’ ๐‘ธ๐‘ด๐‘ฝ ๐’š = ๐’„ โ†’ ๐‘ด๐‘ฝ ๐’š = ๐‘ธ#๐’„

slide-31
SLIDE 31

Example

๐‘ฉ = ๐‘ต = 2 8 1 2 4 1 3 3 1 2 1 3 3 2 4 2 ๐‘ฝ = 2 8 4 1 ๐‘ด = 1 0.5 0.5 0.5 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’2 1 โˆ’1 1 1.5 2 1.5 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 ๐‘ด = 1 0.5 1 0.5 1 0.5 0.5 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’2 1 โˆ’1 โˆ’1 1.5 0.25 ๐‘ต = 2 8 1 โˆ’2 4 1 1 2.5 1 โˆ’1 1 โˆ’2 1.5 0.25 โˆ’1 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 1.5 0.25 โˆ’1 ๐‘ฝ = 2 8 โˆ’2 4 1 1 2.5 ๐‘ด = 1 0.5 1 0.5 0.5 0.5 1.0 ๐‘ด = 1 0.5 1 0.5 0.5 0.5 1.0 1.0 1.0

slide-32
SLIDE 32

Demo โ€œPivoting exampleโ€

๐‘ฉ = 2 1 4 3 1 3 1 8 7 6 7 9 5 9 8 ๐‘ฝ = 8 7 9 5 ๐‘ด = 1 0.5 0.25 0.75 Y ๐‘ฉ = ๐‘ธ๐‘ฉ = 1 1 1 1 2 1 4 3 1 3 1 8 7 6 7 9 5 9 8 = 8 7 4 3 9 5 3 1 2 1 6 7 1 9 8

D ๐‘ฉ โˆ’ ๐’Ž%$๐’—$% = 8 7 4 โˆ’0.5 9 5 โˆ’1.5 โˆ’1.5 2 โˆ’0.75 6 1.75 โˆ’1.25 โˆ’1.25 2.25 4.25 ๐’Ž%$๐’—$% = 3.5 4.5 2.5 1.75 2.25 1.25 5.25 6.75 3.75

slide-33
SLIDE 33

Demo โ€œPivoting exampleโ€

๐‘ฝ = 8 7 1.75 9 5 2.25 4.25 ๐‘ด = 1 0.75 1 0.25 โˆ’0.428 0.5 โˆ’0.285 7 ๐‘ฉ = ๐‘ธ7 ๐‘ฉ = 1 1 1 1 8 7 6 1.75 9 5 2.25 4.25 2 โˆ’0.75 4 โˆ’0.5 โˆ’1.25 โˆ’1.25 โˆ’1.5 โˆ’1.5 = 8 7 6 1.75 9 5 2.25 4.25 2 โˆ’0.75 4 โˆ’0.5 โˆ’1.25 โˆ’1.25 โˆ’1.5 โˆ’1.5 7 ๐‘ฉ = 7 ๐‘ฉ โˆ’ ๐’Ž&$๐’—$& = 8 7 4 โˆ’0.5 9 5 โˆ’1.5 โˆ’1.5 2 โˆ’0.75 6 1.75 โˆ’1.25 โˆ’1.25 2.25 4.25 ๐’Ž&$๐’—$& = โˆ’0.963 โˆ’1.819 โˆ’0.6412 โˆ’1.2112 7 ๐‘ฉ = 7 ๐‘ฉ โˆ’ ๐’Ž&$๐’—$& = 8 7 6 1.75 9 5 2.25 4.25 2 โˆ’0.75 4 โˆ’0.5 โˆ’0.287 0.569 โˆ’0.8587 โˆ’0.2887

slide-34
SLIDE 34

Demo โ€œPivoting exampleโ€

๐‘ฝ = 8 7 1.75 9 5 2.25 4.25 โˆ’0.86 โˆ’0.29 ๐‘ด = 1 0.75 1 0.5 โˆ’0.285 0.25 โˆ’0.428 1 0.334 7 ๐‘ฉ = ๐‘ธ7 ๐‘ฉ = 1 1 1 1 8 7 6 1.75 9 5 2.25 4.25 2 โˆ’0.75 4 โˆ’0.5 โˆ’0.287 0.569 โˆ’0.8587 โˆ’0.2887 = 8 7 6 1.75 9 5 2.25 4.25 4 โˆ’0.5 2 โˆ’0.75 โˆ’0.8587 โˆ’0.2887 โˆ’0.287 0.569 7 ๐‘ฉ = 7 ๐‘ฉ โˆ’ ๐’Ž&$๐’—$& = 8 7 6 1.75 9 5 2.25 4.25 2 โˆ’0.75 4 โˆ’0.5 โˆ’0.287 0.569 โˆ’0.8587 โˆ’0.2887 ๐‘ฝ = 8 7 1.75 9 5 2.25 4.25 โˆ’0.86 โˆ’0.29 0.67 ๐‘ด = 1 0.75 1 0.5 โˆ’0.285 0.25 โˆ’0.428 1 0.334 1

๐‘ธ = 1 1 1 1