Skip to content

Commit

Permalink
Updated notebooks/negative_binomial.html to correct the formula given…
Browse files Browse the repository at this point in the history
…, from log(Yi) = RHS to log(E(Yi) = RHS where RHS is a linear relationship of features. (#859)
  • Loading branch information
tanishy7777 authored Nov 29, 2024
1 parent 3a30784 commit bf73aff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/notebooks/negative_binomial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -561,13 +561,13 @@
"### Model 1 \n",
"\n",
"$$\n",
"\\log{Y_i} = \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i\n",
"\\log(\\mathbb{E}[Y_i]) = \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i\n",
"$$\n",
"\n",
"### Model 2\n",
"\n",
"$$\n",
"\\log{Y_i} = \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i\n",
"\\log(\\mathbb{E}[Y_i]) = \\beta_1 \\text{Academic}_i + \\beta_2 \\text{General}_i + \\beta_3 \\text{Vocational}_i + \\beta_4 \\text{Math\\_std}_i\n",
" + \\beta_5 \\text{General}_i \\cdot \\text{Math\\_std}_i + \\beta_6 \\text{Vocational}_i \\cdot \\text{Math\\_std}_i\n",
"$$\n",
"\n",
Expand Down Expand Up @@ -605,7 +605,7 @@
"\n",
"So, for example, the first model for a student under the Vocational program reduces to\n",
"$$\n",
"\\log{Y_i} = \\beta_3 + \\beta_4 \\text{Math\\_std}_i\n",
"\\log(\\mathbb{E}[Y_i]) = \\beta_3 + \\beta_4 \\text{Math\\_std}_i\n",
"$$\n",
"\n",
"And one last thing to note is we've decided not to inclide an intercept term, that's why you don't see any $\\beta_0$ above. This choice allows us to represent the effect of each program directly with $\\beta_1$, $\\beta_2$, and $\\beta_3$."
Expand Down

0 comments on commit bf73aff

Please sign in to comment.