Mathematics for Modelling (Log, Exp, Calculus)

Context: FIT2086_MOC · the algebra + calculus toolkit every derivation leans on · used to differentiate log-likelihoods when fitting models (MLE, coming weeks)

Quick Revision

  • 🎯 Objective: the log/exp identities that turn products into sums, plus the derivative rules (product, chain, partial) needed to maximise a function ➔ the mechanics behind every parameter estimate.
  • ⚡ Key Constraint: turns a product into a sum () — this is why we maximise the log-likelihood: the i.i.d. product becomes a differentiable sum .

📝 Logarithm identities

  • Convention ➔ in this unit means the natural log (, base ), the inverse of .
  • The key move — collapses a likelihood product into a sum.

📝 Exponential identities

  • Inverse pair and (for ).

📝 Derivative rules

📝 Partial derivatives

  • Definition differentiates w.r.t. while treating as a constant.
  • Worked example
  • Why it appears ➔ models have several parameters; maximising a log-likelihood means setting each partial derivative to zero.

⚠️ Common Mistakes

  • 💡 of a sum does not split; only products/quotients/powers simplify. This is why the likelihood product is what becomes a sum, not the density itself.
  • 💡 Chain rule is the usual omission ➔ differentiating gives , not — the inner derivative is essential.
  • 💡 Partial ⇒ freeze the others ➔ every variable except the one you differentiate is a constant; forgetting this drops terms.
  • 💡 Maximise the log, not the raw likelihood is monotincreasing, so the maximiser is unchanged, but the sum is far easier to differentiate than the product.

🧠 Active Recall