Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/tanishy7777/bambi
Browse files Browse the repository at this point in the history
  • Loading branch information
tanishy7777 committed Dec 4, 2024
2 parents abd45c8 + bf73aff commit f5fd4d7
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 f5fd4d7

Please sign in to comment.