06.09.2021 Views

Linear Algebra, 2020a

Linear Algebra, 2020a

Linear Algebra, 2020a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Topic<br />

Line of Best Fit<br />

This Topic requires the formulas from the subsections on Orthogonal Projection<br />

Into a Line and Projection Into a Subspace.<br />

Scientists are often presented with a system that has no solution and they<br />

must find an answer anyway. More precisely, they must find a best answer.<br />

For instance, this is the result of flipping a penny, including some intermediate<br />

numbers.<br />

number of flips 30 60 90<br />

number of heads 16 34 51<br />

Because of the randomness in this experiment we expect that the ratio of heads<br />

to flips will fluctuate around a penny’s long-term ratio of 50-50. So the system<br />

for such an experiment likely has no solution, and that’s what happened here.<br />

30m = 16<br />

60m = 34<br />

90m = 51<br />

That is, the vector of data that we collected is not in the subspace where ideally<br />

it would be.<br />

⎛<br />

⎜<br />

16<br />

⎞ ⎛<br />

⎟ ⎜<br />

30<br />

⎞<br />

⎟<br />

⎝34⎠ ∉ {m ⎝60⎠ | m ∈ R}<br />

51 90<br />

However, we have to do something so we look for the m that most nearly works.<br />

An orthogonal projection of the data vector into the line subspace gives a best<br />

guess, the vector in the subspace closest to the data vector.<br />

⎛<br />

⎜<br />

16<br />

⎞ ⎛ ⎞<br />

30<br />

⎟ ⎜ ⎟<br />

⎝34⎠ • ⎝60⎠<br />

⎛ ⎞ ⎛<br />

51 90<br />

30<br />

⎛<br />

⎜<br />

30<br />

⎞ ⎛ ⎞<br />

⎜ ⎟<br />

· ⎝60⎠ = 7110<br />

30<br />

12600 · ⎜<br />

30<br />

⎞<br />

⎟<br />

⎝60⎠<br />

⎟ ⎜ ⎟ 90<br />

90<br />

⎝60⎠ • ⎝60⎠<br />

90 90

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!