Hey @xfan, the two formulas are equivalent. In the slides, the formula is -y/a + (1-y)/(1-a). In the assignment, it is -(y/a - (1-y)/(1-a)) which simplifies to the same formula in the slides if you apply the minus operator to both terms in the bracket.