my question actually revolves around applying the secant method (optimization) to find the maximum likelihood estimator for $\theta$ where $$ \begin{align} p_1 &= (2+\theta)/4,\\p_2 &= (1-\theta)/4,\\p_3 &= (1-\theta)/4,\\ p_4 &= \theta/4 \end{align} $$
I don't want to ruin this exercise for myself, but I'm stumped on how to find the gradient of the pdf, $$ \begin{align} f(x) = \binom{m}{x_1,x_2,x_2,x_4}p_1^{x_1}p_2^{x_2}p_3^{x_3}p_4^{x_4} \end{align} $$ Does anyone know how to do this without using advanced methods only known to experienced statisticians (No gaussian methods or anything)?Maybe I'm forgetting something basic from calculus, but I'm not sure how to approach this.Thank you for any assistance.