mml-book / mml-book.github.io

Companion webpage to the book "Mathematics For Machine Learning"
13.04k stars 2.41k forks source link

Mistake in figure 7.9 #637

Open CoveredInChocolate opened 3 years ago

CoveredInChocolate commented 3 years ago

Describe the mistake Error in figure 7.9 in example 7.5

Location Please provide the

  1. Draft (2021-01-14)
  2. Chapter 7
  3. Page 240
  4. Figure 7.9

Proposed solution The green line needs to be changed to: x_2 <= 2x_1 + 5 Which also means the image limits need to be changed.

Additional context From the linear programming problem right above, the third line gives: -2x_1 + x_2 <= 5 ==> x_2 <= 2x_1 + 5

Just a tiny error, and it doesn''t affect the outcome, but as it stands the displayed plot shows a slightly different problem than the example.