Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,9 @@
"source": [
"To minimize the cost function, we need to know in which direction to adjust our parameters. This is where partial derivatives come in. We calculate the partial derivative of the cost function with respect to each parameter:\n",
"\n",
"$$ \\frac{\\partial J}{\\partial \\beta_0} = -\\frac{1}{n} \\sum_{i=1}^n x_i(y_i - (\\beta_0 + \\beta_1 x_i)) $$\n",
"$$ \\frac{\\partial J}{\\partial \\beta_0} = -\\frac{1}{n} \\sum_{i=1}^n (y_i - (\\beta_0 + \\beta_1 x_i)) $$\n",
"\n",
"$$ \\frac{\\partial J}{\\partial \\beta_1} = -\\frac{1}{n} \\sum_{i=1}^n (y_i - (\\beta_0 + \\beta_1 x_i)) $$\n"
"$$ \\frac{\\partial J}{\\partial \\beta_1} = -\\frac{1}{n} \\sum_{i=1}^n x_i(y_i - (\\beta_0 + \\beta_1 x_i)) $$\n"
]
},
{
Expand Down