Error producing PDF. ! Missing $ inserted. $ l.169 ..._i) = \frac{\max_{j} N(x_i, y_j)}{N(x_i)}