From e159073773d9702b4a04f0d9a3ced0b6160c9873 Mon Sep 17 00:00:00 2001 From: Alessandro Zocca Date: Mon, 19 Aug 2024 15:08:12 -0400 Subject: [PATCH] Fix minor typo in LAD notebook --- notebooks/02/02-lad-regression.ipynb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/notebooks/02/02-lad-regression.ipynb b/notebooks/02/02-lad-regression.ipynb index 30405e4f..4ff0d4d5 100644 --- a/notebooks/02/02-lad-regression.ipynb +++ b/notebooks/02/02-lad-regression.ipynb @@ -181,7 +181,10 @@ "$$\n", "\\begin{align}\n", " \\min \\quad & \\sum_{i=1}^n |e_i| \\\\\n", - " \\text{s.t.} \\quad & e_i = y^{(i)} - {m}^\\top {X}^{(i)} - b & \\forall\\, i=1,\\dots,n.\n", + " \\text{s.t.} \\quad & e_i = y^{(i)} - {m}^\\top {X}^{(i)} - b & \\forall\\, i=1,\\dots,n,\\\\\n", + " & e_i \\in \\mathbb{R} & \\forall\\, i=1,\\dots,n,\\\\\n", + " & m_j \\in \\mathbb{R} & \\forall\\, j=1,\\dots,k,\\\\\n", + " & b \\in \\mathbb{R}.\n", "\\end{align}\n", "$$\n", "\n", @@ -190,8 +193,10 @@ "$$\n", "\\begin{align}\n", " \\min \\quad & \\sum_{i=1}^n ( e_i^+ + e_i^-) \\\\\n", - " \\text{s.t.} \\quad & e_i^+ - e_i^- = y^{(i)} - {m}^\\top {X}^{(i)}-b & \\forall\\, i=1, \\dots, n \\\\\n", - " & e_i^+, e_i^- \\geq 0 & \\forall\\, i=1, \\dots, n\n", + " \\text{s.t.} \\quad & e_i^+ - e_i^- = y^{(i)} - {m}^\\top {X}^{(i)}-b & \\forall\\, i=1, \\dots, n,\\\\\n", + " & e_i^+, e_i^- \\geq 0 & \\forall\\, i=1, \\dots, n,\\\\\n", + " & m_j \\in \\mathbb{R} & \\forall\\, j=1,\\dots,k,\\\\\n", + " & b \\in \\mathbb{R}.\n", "\\end{align}\n", "$$\n", "\n",